workaround: don't reset compositionType to HWC_FRAMEBUFFER [DO NOT MERGE]

This workaround a HWC HAL issue in Nexus 7, which causes videos and live
wallpapers to animate slowly.

Bug: 7563862
Change-Id: I16ad85317e3e7f47f005e7397357c14186b0a13d
This commit is contained in:
Mathias Agopian 2012-11-19 15:07:33 -08:00
parent 2a8c49eb5d
commit 3e095b2515

View File

@ -804,7 +804,7 @@ public:
getLayer()->acquireFenceFd = fenceFd; getLayer()->acquireFenceFd = fenceFd;
} }
virtual void setPerFrameDefaultState() { virtual void setPerFrameDefaultState() {
getLayer()->compositionType = HWC_FRAMEBUFFER; //getLayer()->compositionType = HWC_FRAMEBUFFER;
} }
virtual void setDefaultState() { virtual void setDefaultState() {
getLayer()->compositionType = HWC_FRAMEBUFFER; getLayer()->compositionType = HWC_FRAMEBUFFER;