48 #include "AnimationDecoderWrapped.h" |
48 #include "AnimationDecoderWrapped.h" |
49 #include "MaskedBitmap.h" |
49 #include "MaskedBitmap.h" |
50 #include "ImageObserver.h" |
50 #include "ImageObserver.h" |
51 #include "SyncDecodeThread.h" |
51 #include "SyncDecodeThread.h" |
52 #include <Oma2Agent.h> |
52 #include <Oma2Agent.h> |
|
53 #include <Browser_Platform_Variant.hrh> |
53 using namespace ContentAccess; |
54 using namespace ContentAccess; |
54 |
55 |
55 namespace TBidirectionalState { |
56 namespace TBidirectionalState { |
56 class TRunInfo; |
57 class TRunInfo; |
57 }; |
58 }; |
627 iDestination->SetFrameIndex( iFrameIndex ); |
628 iDestination->SetFrameIndex( iFrameIndex ); |
628 iDestination->SetFrameDelay( 0 ); |
629 iDestination->SetFrameDelay( 0 ); |
629 //Compress non-animated images via FBServ (losslessly, idle priority) |
630 //Compress non-animated images via FBServ (losslessly, idle priority) |
630 //the 1x1 image is directly fetched before decompressing it which results in a crash in fbsserv and therefore a white background is displayed. |
631 //the 1x1 image is directly fetched before decompressing it which results in a crash in fbsserv and therefore a white background is displayed. |
631 //If the Image is of pixel (1,1) do not compress. |
632 //If the Image is of pixel (1,1) do not compress. |
|
633 #ifndef BRDO_PERF_IMPROVEMENTS_ENABLED_FF |
632 if( frameSize != TSize(1,1) ) |
634 if( frameSize != TSize(1,1) ) |
633 iDestination->CompressInBackground(); |
635 iDestination->CompressInBackground(); |
634 |
636 #endif |
635 // Normal image ready |
637 // Normal image ready |
636 //iDestination = NULL; |
638 //iDestination = NULL; |
637 iImageState = EInactive; |
639 iImageState = EInactive; |
638 iObserver->imageReady(sizeinBytes); |
640 iObserver->imageReady(sizeinBytes); |
639 delete iDecoder, iDecoder = NULL; |
641 delete iDecoder, iDecoder = NULL; |