OSDN Git Service

workaround: don't reset compositionType to HWC_FRAMEBUFFER
authorMathias Agopian <mathias@google.com>
Mon, 19 Nov 2012 23:07:33 +0000 (15:07 -0800)
committerJesse Hall <jessehall@google.com>
Wed, 9 Jan 2013 23:37:21 +0000 (15:37 -0800)
This workaround a HWC HAL issue in Nexus 7, which causes videos and live
wallpapers to animate slowly.

Bug: 7563862
Change-Id: I87803aaad9751b1fd8392b9732304d4bccec659a

services/surfaceflinger/DisplayHardware/HWComposer.cpp

index 3280229..73794c4 100644 (file)
@@ -811,7 +811,7 @@ public:
         getLayer()->acquireFenceFd = fenceFd;
     }
     virtual void setPerFrameDefaultState() {
-        getLayer()->compositionType = HWC_FRAMEBUFFER;
+        //getLayer()->compositionType = HWC_FRAMEBUFFER;
     }
     virtual void setDefaultState() {
         getLayer()->compositionType = HWC_FRAMEBUFFER;