diff options
author | Mathias Agopian <mathias@google.com> | 2011-04-18 19:05:29 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2011-04-18 19:05:29 -0700 |
commit | 97c7c40b73329ee86ce2abe5c320dd82d117ea14 (patch) | |
tree | 48b6c5e68fc5424890d336ca9c207f05fcd399a3 /include | |
parent | c9881d8c5631faa85ff24668df9cb82921528d69 (diff) | |
download | hardware_libhardware-97c7c40b73329ee86ce2abe5c320dd82d117ea14.zip hardware_libhardware-97c7c40b73329ee86ce2abe5c320dd82d117ea14.tar.gz hardware_libhardware-97c7c40b73329ee86ce2abe5c320dd82d117ea14.tar.bz2 |
add a method to blank/unblank the screen
Change-Id: I3874654248826c29e57bb62bb5217184bdfb4263
Diffstat (limited to 'include')
-rw-r--r-- | include/hardware/gralloc.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/hardware/gralloc.h b/include/hardware/gralloc.h index 5eefe79..03281bf 100644 --- a/include/hardware/gralloc.h +++ b/include/hardware/gralloc.h @@ -345,7 +345,15 @@ typedef struct framebuffer_device_t { */ void (*dump)(struct framebuffer_device_t* dev, char *buff, int buff_len); - void* reserved_proc[7]; + /* + * (*enableScreen)() is used to either blank (enable=0) or + * unblank (enable=1) the screen this framebuffer is attached to. + * + * Returns 0 on success or -errno on error. + */ + int (*enableScreen)(struct framebuffer_device_t* dev, int enable); + + void* reserved_proc[6]; } framebuffer_device_t; |