equal
deleted
inserted
replaced
16 /** |
16 /** |
17 @file |
17 @file |
18 */ |
18 */ |
19 |
19 |
20 #include <graphics/surfaceupdateclient.h> |
20 #include <graphics/surfaceupdateclient.h> |
21 #include <e32debug.h> |
|
22 #include "surfaceupdate.h" |
21 #include "surfaceupdate.h" |
23 |
22 |
24 inline void SurfaceUpdateAssert(TInt aCond) {__ASSERT_ALWAYS(aCond, User::Panic(_L("surfaceupdateclient.cpp; assertion failed"), __LINE__));} |
23 inline void SurfaceUpdateAssert(TInt aCond) {__ASSERT_ALWAYS(aCond, User::Panic(_L("surfaceupdateclient.cpp; assertion failed"), __LINE__));} |
25 |
24 |
26 EXPORT_C RSurfaceUpdateSession::RSurfaceUpdateSession() : |
25 EXPORT_C RSurfaceUpdateSession::RSurfaceUpdateSession() : |
27 RSessionBase(), |
26 RSessionBase(), |
28 iStatusAvailable(NULL), iStatusDisplayed(NULL), iStatusDisplayedXTimes(NULL), iTimeStamp(NULL), iCount(0) |
27 iStatusAvailable(NULL), iStatusDisplayed(NULL), iStatusDisplayedXTimes(NULL) |
29 { |
28 { |
30 } |
29 } |
31 |
30 |
32 EXPORT_C TInt RSurfaceUpdateSession::Connect(TInt aMessageSlots) |
31 EXPORT_C TInt RSurfaceUpdateSession::Connect(TInt aMessageSlots) |
33 { |
32 { |
60 |
59 |
61 EXPORT_C TInt RSurfaceUpdateSession::SubmitUpdate(TInt aScreen, const TSurfaceId& aSurfaceId, |
60 EXPORT_C TInt RSurfaceUpdateSession::SubmitUpdate(TInt aScreen, const TSurfaceId& aSurfaceId, |
62 TInt aBuffer, const TRegion* aDirtyRegion) |
61 TInt aBuffer, const TRegion* aDirtyRegion) |
63 { |
62 { |
64 SurfaceUpdateAssert(Handle() != KNullHandle); |
63 SurfaceUpdateAssert(Handle() != KNullHandle); |
65 |
64 |
66 #if defined _DEBUG |
|
67 if (aScreen != KAllScreens) |
|
68 RDebug::Printf("You should use KAllScreens as the argument for the screen: (other values OK for test)"); |
|
69 #endif |
|
70 |
|
71 if(aScreen < 0 || aBuffer < 0 || aSurfaceId.IsNull()) |
65 if(aScreen < 0 || aBuffer < 0 || aSurfaceId.IsNull()) |
72 { |
66 { |
73 IssueRequestComplete(KErrArgument); |
67 IssueRequestComplete(KErrArgument); |
74 return KErrArgument; |
68 return KErrArgument; |
75 } |
69 } |