diff options
Diffstat (limited to 'include/hardware/fb.h')
-rw-r--r-- | include/hardware/fb.h | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/include/hardware/fb.h b/include/hardware/fb.h index ba2f286d..79900af2 100644 --- a/include/hardware/fb.h +++ b/include/hardware/fb.h @@ -42,18 +42,18 @@ typedef struct framebuffer_device_t { const uint32_t flags; /* dimensions of the framebuffer in pixels */ - const uint32_t width; - const uint32_t height; + uint32_t width; + uint32_t height; /* frambuffer stride in pixels */ - const int stride; + int stride; /* framebuffer pixel format */ const int format; /* resolution of the framebuffer's display panel in pixel per inch*/ - const float xdpi; - const float ydpi; + float xdpi; + float ydpi; /* framebuffer's display panel refresh rate in frames per second */ const float fps; @@ -141,7 +141,26 @@ typedef struct framebuffer_device_t { */ int (*enableScreen)(struct framebuffer_device_t* dev, int enable); - void* reserved_proc[6]; + /* + * Sets the number of degrees ccw the framebuffer shall be rotated before + * being sent to the display. This call may change the framebuffer's + * dimensions. + */ + int (*rotate)(struct framebuffer_device_t* dev, unsigned int absolute_degree); + + /* + * Informs gralloc about the UI rotation. This is needed in the mirroring use + * case to get the correct orientation on the external device, e.g. HDMI. + */ + void (*UIRotationChange)(struct framebuffer_device_t* dev, int uiRotation); + + /* + * Enables the mirroring of the main display content to an external device, + * e.g. HDMI. + */ + void (*enableHDMIMirroring)(struct framebuffer_device_t* dev, int enable); + + void* reserved_proc[8]; } framebuffer_device_t; |