uiaccelerator_plat/alf_visual_api/inc/alf/alfcompositionclient.h
branchRCL_3
changeset 7 88b23e2e82e1
parent 6 10534483575f
equal deleted inserted replaced
6:10534483575f 7:88b23e2e82e1
   292     /** 
   292     /** 
   293      * Constructor 
   293      * Constructor 
   294      **/
   294      **/
   295     IMPORT_C static CAlfCompositionPixelSource* NewL(MAlfBufferProvider& aProvider, RWindow* aWindow = NULL);
   295     IMPORT_C static CAlfCompositionPixelSource* NewL(MAlfBufferProvider& aProvider, RWindow* aWindow = NULL);
   296     
   296     
   297     /**
   297 
   298      *  Activate drawing for the first time or continue drawing if it is being paused or suspended
   298     /**
       
   299      * Constructor for application to decide AO priority
       
   300      */
       
   301     IMPORT_C static CAlfCompositionPixelSource* NewL(MAlfBufferProvider& aProvider, TInt aPriority = CActive::EPriorityIdle, RWindow* aWindow = NULL );
       
   302 
       
   303     
       
   304     /**
       
   305      * Activate drawing for the first time or continue drawing if it is being paused or suspended
   299      **/
   306      **/
   300     IMPORT_C void ActivateL();
   307     IMPORT_C void ActivateL();
       
   308     
       
   309     
       
   310     /*
       
   311      * An other option to activate/continue drawing. This activate method ensures that no saw-edged black area is seen if client
       
   312      * only wants to draw one frame. MAlfBufferProvider::ProduceNewFrameL is called from inside ActivateSyncL so that 
       
   313      * surface buffer can be updated before making surface visible.
       
   314      */
       
   315     IMPORT_C void ActivateSyncL();
   301     
   316     
   302     /**
   317     /**
   303      * Suspend drawing 
   318      * Suspend drawing 
   304      **/
   319      **/
   305     IMPORT_C void Suspend();
   320     IMPORT_C void Suspend();
   327      **/
   342      **/
   328     void HandleEventL(TInt aEventType, TAny* aEventData);                                          
   343     void HandleEventL(TInt aEventType, TAny* aEventData);                                          
   329 
   344 
   330 private: // Internal / utils
   345 private: // Internal / utils
   331     
   346     
   332     void ConstructL(MAlfBufferProvider& aProvider, RWindow* aWindow);
   347     void ConstructL(MAlfBufferProvider& aProvider, TInt aPriority, RWindow* aWindow);
   333     void ConstructSurfaceL(MAlfBufferProvider::TBufferCreationAttributes& aCreationAttributes);
   348     void ConstructSurfaceL(MAlfBufferProvider::TBufferCreationAttributes& aCreationAttributes);
   334     void FreeSurface();
   349     void FreeSurface();
   335     TUint8* Buffer(TInt aBufferNumber);
   350     TUint8* Buffer(TInt aBufferNumber);
   336 
   351 
   337     
   352