hardware: Power HAL: Add POWER_HINT_INTERACTION

Change-Id: I9b2c29eadc60e2bea2f01b3925ad6a8539ec2655
This commit is contained in:
Todd Poynor 2012-05-03 14:49:02 -07:00
parent 6b7adef0ef
commit bcdb4cd34b

View file

@ -39,10 +39,8 @@ __BEGIN_DECLS
*/
typedef enum {
/*
* VSYNC pulse request from SurfaceFlinger started or stopped.
*/
POWER_HINT_VSYNC = 0x00000001,
POWER_HINT_INTERACTION = 0x00000002,
} power_hint_t;
/**
@ -103,6 +101,13 @@ typedef struct power_module {
* non-zero to indicate VSYNC pulse is now requested, or zero for
* VSYNC pulse no longer requested.
*
* POWER_HINT_INTERACTION
*
* User is interacting with the device, for example, touchscreen
* events are incoming. CPU and GPU load may be expected soon,
* and it may be appropriate to raise speeds of CPU, memory bus,
* etc. The data parameter is unused.
*
* A particular platform may choose to ignore any hint.
*
* availability: version 0.2