uiaccelerator_plat/alf_visual_api/inc/goommonitor/goommonitorsession.h
changeset 53 5ba07f7750a9
parent 13 8f67d927ea57
equal deleted inserted replaced
46:180438f24a1e 53:5ba07f7750a9
    18 
    18 
    19 #ifndef R_GOOMMONITORSESSION_H
    19 #ifndef R_GOOMMONITORSESSION_H
    20 #define R_GOOMMONITORSESSION_H
    20 #define R_GOOMMONITORSESSION_H
    21 
    21 
    22 #include <e32std.h>
    22 #include <e32std.h>
       
    23 
       
    24 // Goom Events through Window Server
       
    25 #define KGoomMemoryLowEvent 0x10282DBF
       
    26 #define KGoomMemoryGoodEvent 0x20026790
    23 
    27 
    24 /**
    28 /**
    25  *  The maximum amount of memory that can be allocated without permission.
    29  *  The maximum amount of memory that can be allocated without permission.
    26  */
    30  */
    27 const TInt KGOomMaxAllocationWithoutPermission = 1048576;
    31 const TInt KGOomMaxAllocationWithoutPermission = 1048576;
   172     
   176     
   173     /**
   177     /**
   174     * Notify the GOOM monitor that this application has finished allocating memory.  
   178     * Notify the GOOM monitor that this application has finished allocating memory.  
   175     */
   179     */
   176     IMPORT_C void MemoryAllocationsComplete();
   180     IMPORT_C void MemoryAllocationsComplete();
       
   181     
       
   182     /**
       
   183      * Request GOOM monitor to switch to HW rendering mnode
       
   184      * returns KErrNone if succeeds , else KErrNoMemory
       
   185      */
       
   186     IMPORT_C TInt RequestHWRendering();
   177 
   187 
   178 private://data 
   188 private://data 
   179     TInt iFlags;
   189     TInt iFlags;
   180     };
   190     };
   181     
   191