From: Mathias Agopian Date: Thu, 12 Aug 2010 22:04:58 +0000 (-0700) Subject: added a new hint to tell SF it should clear the FB for some layers X-Git-Tag: android-x86-4.4-r1~397^2~13^2~4 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=cdd44a0db36749af5036e903e4867b279ef420df;p=android-x86%2Fhardware-libhardware.git added a new hint to tell SF it should clear the FB for some layers Change-Id: I784e7c5be2eab84c321773dc53b4cb657ca9a457 --- diff --git a/include/hardware/hwcomposer.h b/include/hardware/hwcomposer.h index 9d6a760..b790fe8 100644 --- a/include/hardware/hwcomposer.h +++ b/include/hardware/hwcomposer.h @@ -48,13 +48,21 @@ enum { */ enum { /* - * HWC can set the HWC_TRIPLE_BUFFER hint to indicate to SurfaceFlinger + * HWC can set the HWC_HINT_TRIPLE_BUFFER hint to indicate to SurfaceFlinger * that it should triple buffer this layer. Typically HWC does this when * the layer will be unavailable for use for an extended period of time, * e.g. if the display will be fetching data directly from the layer and * the layer can not be modified until after the next set(). */ - HWC_TRIPLE_BUFFER_HINT = 0x00000001, + HWC_HINT_TRIPLE_BUFFER = 0x00000001, + + /* + * HWC sets HWC_HINT_CLEAR_FB to tell SurfaceFlinger that it should clear the + * framebuffer with transparent pixels where this layer would be. + * SurfaceFlinger will only honor this flag when the layer has no blending + * + */ + HWC_HINT_CLEAR_FB = 0x00000002 }; /*