equal
deleted
inserted
replaced
71 if (!iAlfClient.Handle()) |
71 if (!iAlfClient.Handle()) |
72 { |
72 { |
73 User::LeaveIfError(iAlfClient.Connect()); |
73 User::LeaveIfError(iAlfClient.Connect()); |
74 } |
74 } |
75 iLowOnMemWgs.Reset(); |
75 iLowOnMemWgs.Reset(); |
76 User::LeaveIfError(iAlfClient.GetListOfInactiveWindowGroupsWSurfaces(&iLowOnMemWgs)); |
76 RArray<TInt> inactiveSurfaces; |
77 |
77 |
78 RArray<TInt>& inactiveSurfaces = iLowOnMemWgs; |
78 User::LeaveIfError(iAlfClient.GetListOfInactiveWindowGroupsWSurfaces(&inactiveSurfaces)); |
|
79 User::LeaveIfError(iAlfClient.GetListOfWindowGroupsWSurfaces(&iLowOnMemWgs)); |
|
80 |
79 TRACES1("Inactive surfaces count %d", inactiveSurfaces.Count()); |
81 TRACES1("Inactive surfaces count %d", inactiveSurfaces.Count()); |
|
82 TRACES1("Windowgroups w/ surfaces count %d", iLowOnMemWgs.Count()); |
|
83 |
80 RArray<TUint64> processIds; |
84 RArray<TUint64> processIds; |
81 RArray<TUint> privMemUsed; |
85 RArray<TUint> privMemUsed; |
82 RArray<TUint64> sparedProcessIds; |
86 RArray<TUint64> sparedProcessIds; |
83 |
87 |
84 //if (inactiveSurfaces.Count() == 1) // ALF only |
88 //if (inactiveSurfaces.Count() == 1) // ALF only |
211 |
215 |
212 #ifdef SYMBIAN_GRAPHICS_WSERV_QT_EFFECTS |
216 #ifdef SYMBIAN_GRAPHICS_WSERV_QT_EFFECTS |
213 TWsEvent event; |
217 TWsEvent event; |
214 event.SetType(KGoomMemoryLowEvent); // naive |
218 event.SetType(KGoomMemoryLowEvent); // naive |
215 |
219 |
216 for (TInt i = inactiveSurfaces.Count()-1; i>=0; i--) |
220 for (TInt i = iLowOnMemWgs.Count()-1; i>=0; i--) |
217 { |
221 { |
218 iWs.SendEventToWindowGroup(inactiveSurfaces[i], event); |
222 iWs.SendEventToWindowGroup(iLowOnMemWgs[i], event); |
219 } |
223 } |
220 |
224 |
221 #endif |
225 #endif |
222 |
226 |
223 // Note the current foreground window ID (if there is one) |
227 // Note the current foreground window ID (if there is one) |