equal
deleted
inserted
replaced
37 #include <glxthumbnailutility.h> |
37 #include <glxthumbnailutility.h> |
38 #include <mglxcache.h> |
38 #include <mglxcache.h> |
39 #include <glxresolutionutility.h> |
39 #include <glxresolutionutility.h> |
40 #include <glxlog.h> |
40 #include <glxlog.h> |
41 #include <glxtracer.h> |
41 #include <glxtracer.h> |
|
42 #include <glxuiutility.h> |
42 #include "mglxtextureobserver.h" |
43 #include "mglxtextureobserver.h" |
43 |
44 |
44 namespace |
45 namespace |
45 { |
46 { |
46 const TInt KGlxFirstAlfThumbnailTextureId = 0x10000001; |
47 const TInt KGlxFirstAlfThumbnailTextureId = 0x10000001; |
1234 //check if the image is decoded |
1235 //check if the image is decoded |
1235 if ( aBitmap ) |
1236 if ( aBitmap ) |
1236 { |
1237 { |
1237 iZoomedList[aThumbnailIndex].iBitmap = aBitmap; |
1238 iZoomedList[aThumbnailIndex].iBitmap = aBitmap; |
1238 |
1239 |
|
1240 CGlxUiUtility* uiUtility = CGlxUiUtility::UtilityL(); |
|
1241 CleanupClosePushL(*uiUtility); |
|
1242 TBool foregroundStatus = uiUtility->GetForegroundStatus(); |
|
1243 CleanupStack::PopAndDestroy(uiUtility); |
|
1244 |
|
1245 // Photos not in foreground; do not create zoom texture |
|
1246 if (!foregroundStatus) |
|
1247 { |
|
1248 GLX_LOG_INFO("CGlxTextureManagerImpl HandleBitmapDecodedL - Not in foreground; do not create zoom texture"); |
|
1249 return; |
|
1250 } |
|
1251 |
1239 //if we already have a texture then dont unload the texture before creating |
1252 //if we already have a texture then dont unload the texture before creating |
1240 //the next one. It might happen that because of low memory we might not be able |
1253 //the next one. It might happen that because of low memory we might not be able |
1241 //to create a new texture. |
1254 //to create a new texture. |
1242 if(iZoomedList[aThumbnailIndex].iTexture) |
1255 if(iZoomedList[aThumbnailIndex].iTexture) |
1243 { |
1256 { |