From 38fccf483b19a0dd2431cb8515e7a2cc5546b373 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 12 Jul 2012 17:54:59 -0700 Subject: 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 --- include/hardware/hwcomposer.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/hardware/hwcomposer.h') 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 { -- cgit v1.1