From 97c7c40b73329ee86ce2abe5c320dd82d117ea14 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 18 Apr 2011 19:05:29 -0700 Subject: [PATCH] add a method to blank/unblank the screen Change-Id: I3874654248826c29e57bb62bb5217184bdfb4263 --- include/hardware/gralloc.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/hardware/gralloc.h b/include/hardware/gralloc.h index 5eefe795..03281bfe 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;