OSDN Git Service

use HAL_PIXEL_FORMAT_BGRA_8888 with hwc 1.1
authorTapani Pälli <tapani.palli@intel.com>
Thu, 16 May 2013 12:03:48 +0000 (15:03 +0300)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 9 Dec 2013 14:29:08 +0000 (22:29 +0800)
this is the format supported by our framebuffer

Change-Id: Ic2906f237e1141a970115a44078922c037224040
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Acked-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
services/surfaceflinger/DisplayHardware/HWComposer.cpp

index c7d1a90..abadf5e 100644 (file)
@@ -383,7 +383,7 @@ status_t HWComposer::queryDisplayProperties(int disp) {
     }
 
     // FIXME: what should we set the format to?
-    mDisplayData[disp].format = HAL_PIXEL_FORMAT_RGBA_8888;
+    mDisplayData[disp].format = HAL_PIXEL_FORMAT_BGRA_8888;
     mDisplayData[disp].connected = true;
     if (mDisplayData[disp].xdpi == 0.0f || mDisplayData[disp].ydpi == 0.0f) {
         float dpi = getDefaultDensity(h);
@@ -762,7 +762,7 @@ int HWComposer::getVisualID() const {
         // FIXME: temporary hack until HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED
         // is supported by the implementation. we can only be in this case
         // if we have HWC 1.1
-        return HAL_PIXEL_FORMAT_RGBA_8888;
+        return HAL_PIXEL_FORMAT_BGRA_8888;
         //return HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED;
     } else {
         return mFbDev->format;