uiaccelerator_plat/alf_visual_api/inc/alf/alfdrawer.h
branchRCL_3
changeset 6 10534483575f
parent 3 d8a3531bc6b8
equal deleted inserted replaced
5:433cbbb6a04b 6:10534483575f
    16 */
    16 */
    17 #ifndef __ALFDRAWER_H__
    17 #ifndef __ALFDRAWER_H__
    18 #define __ALFDRAWER_H__
    18 #define __ALFDRAWER_H__
    19 
    19 
    20 #include <e32base.h>
    20 #include <e32base.h>
       
    21 
       
    22 class CWsScreenDevice;
       
    23 class CFbsBitmap;
    21 
    24 
    22 /**
    25 /**
    23  * This provides additional alf drawing synchronization.
    26  * This provides additional alf drawing synchronization.
    24  * 
    27  * 
    25  * This class requires application environment (CCoeEnv) to exist.
    28  * This class requires application environment (CCoeEnv) to exist.
    45      * and then wait for all pending drawing to be finished.
    48      * and then wait for all pending drawing to be finished.
    46      * @return error code, KErrNone upon success.
    49      * @return error code, KErrNone upon success.
    47      */
    50      */
    48     IMPORT_C TInt Finish();
    51     IMPORT_C TInt Finish();
    49 
    52 
       
    53     /**
       
    54      * Fallback copy screen to bitmap. This copies pixels from UI surface.
       
    55      * This is similar to @c CWsScreenDevice::CopyScreenToBitmap. That method
       
    56      * may use GPU memory and so cannot be guaranteed to succeed always.
       
    57      * 
       
    58      * @param aDevice screendevice.
       
    59      * @param aBitmap bitmap to which pixels ought to be copied.
       
    60      * @param aRect rect to copy.
       
    61      * @return error code.
       
    62      */
       
    63     IMPORT_C static TInt FallbackCopyScreenToBitmap(
       
    64         CWsScreenDevice& aDevice,
       
    65         CFbsBitmap* aBitmap, 
       
    66         const TRect& aRect);
       
    67 
    50 private:
    68 private:
    51     CAlfDrawer();
    69     CAlfDrawer();
    52     void ConstructL();
    70     void ConstructL();
    53 
    71 
    54 private:
    72 private: