equal
deleted
inserted
replaced
54 if (IsConnected()) |
54 if (IsConnected()) |
55 { |
55 { |
56 TIpcArgs p(aBytesRequested,0); |
56 TIpcArgs p(aBytesRequested,0); |
57 return SendReceive(EGOomMonitorRequestFreeMemory, p); |
57 return SendReceive(EGOomMonitorRequestFreeMemory, p); |
58 } |
58 } |
59 return KErrNone; |
59 return KErrCouldNotConnect; |
60 } |
60 } |
61 |
61 |
62 EXPORT_C void RGOomMonitorSession::MemoryAllocationsComplete() |
62 EXPORT_C void RGOomMonitorSession::MemoryAllocationsComplete() |
63 { |
63 { |
64 FUNC_LOG; |
64 FUNC_LOG; |
81 ret = KErrNone; |
81 ret = KErrNone; |
82 } |
82 } |
83 |
83 |
84 return ret; |
84 return ret; |
85 } |
85 } |
86 return KErrNone; |
86 return KErrCouldNotConnect; |
87 } |
87 } |
88 |
88 |
89 EXPORT_C void RGOomMonitorSession::RequestOptionalRam(TInt aBytesRequested, TInt aMinimumBytesNeeded, TInt aPluginId, TRequestStatus& aStatus) |
89 EXPORT_C void RGOomMonitorSession::RequestOptionalRam(TInt aBytesRequested, TInt aMinimumBytesNeeded, TInt aPluginId, TRequestStatus& aStatus) |
90 { |
90 { |
91 FUNC_LOG; |
91 FUNC_LOG; |
221 #else |
221 #else |
222 SendReceive(EGOomMonitorRequestFreeMemory, TIpcArgs(0,aAppUid.iUid), aStatus); |
222 SendReceive(EGOomMonitorRequestFreeMemory, TIpcArgs(0,aAppUid.iUid), aStatus); |
223 #endif |
223 #endif |
224 } |
224 } |
225 } |
225 } |
|
226 |
|
227 EXPORT_C TInt RGOomMonitorSession::RequestHWRendering() |
|
228 { |
|
229 FUNC_LOG; |
|
230 if (IsConnected()) |
|
231 { |
|
232 RDebug::Printf("RAN_DEBUG : GOOM RGOomMonitorSession::RequestHWRendering"); |
|
233 return SendReceive(EGOomMonitorRequestHWRendering); |
|
234 } |
|
235 return KErrCouldNotConnect; |
|
236 } |