OSDN Git Service

added a new hint to tell SF it should clear the FB for some layers
authorMathias Agopian <mathias@google.com>
Thu, 12 Aug 2010 22:04:58 +0000 (15:04 -0700)
committerMathias Agopian <mathias@google.com>
Thu, 12 Aug 2010 22:04:58 +0000 (15:04 -0700)
Change-Id: I784e7c5be2eab84c321773dc53b4cb657ca9a457

include/hardware/hwcomposer.h

index 9d6a760..b790fe8 100644 (file)
@@ -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
 };
 
 /*