summaryrefslogtreecommitdiffstats
path: root/include/hardware/hwcomposer.h
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2012-07-12 17:54:59 -0700
committerColin Cross <ccross@android.com>2012-07-13 15:49:04 -0700
commit38fccf483b19a0dd2431cb8515e7a2cc5546b373 (patch)
treea2e45f45d53691d759beeb2d3d13e929bcefa1c9 /include/hardware/hwcomposer.h
parenta635449697a2df5de98e72cfc24e926b641d5544 (diff)
downloadhardware_libhardware-38fccf483b19a0dd2431cb8515e7a2cc5546b373.zip
hardware_libhardware-38fccf483b19a0dd2431cb8515e7a2cc5546b373.tar.gz
hardware_libhardware-38fccf483b19a0dd2431cb8515e7a2cc5546b373.tar.bz2
hwcomposer: add a new blank operation
Add a new blank operation to be called by surfaceflinger when the screen turns on or off. Also rev the API version to 1.1 for the new field. Change-Id: I266fb33f66184538e34cfc319f63cf809dcb2f18
Diffstat (limited to 'include/hardware/hwcomposer.h')
-rw-r--r--include/hardware/hwcomposer.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/hardware/hwcomposer.h b/include/hardware/hwcomposer.h
index 4af5c69..a036da3 100644
--- a/include/hardware/hwcomposer.h
+++ b/include/hardware/hwcomposer.h
@@ -79,6 +79,21 @@ typedef struct hwc_methods_1 {
int (*eventControl)(
struct hwc_composer_device_1* dev, int event, int enabled);
+ /*
+ * This field is OPTIONAL and can be NULL.
+ *
+ * blank(..., blank)
+ * Blanks or unblanks the screen.
+ *
+ * Turns the screen off when blank is nonzero, on when blank is zero.
+ * Blanking may also be triggered by a call to set..., 0, 0, 0). Multiple
+ * sequential calls with the same blank value must be supported.
+ *
+ * returns 0 on success, negative on error.
+ */
+
+ int (*blank)(struct hwc_composer_device_1* dev, int blank);
+
} hwc_methods_1_t;
typedef struct hwc_rect {