Bug 1025824 - Fix mHwcLayerMap handling r=sushil

This commit is contained in:
Sotaro Ikeda 2014-06-16 13:05:14 -07:00
parent d4746d1de5
commit 4534323bca

View File

@ -683,7 +683,7 @@ HwcComposer2D::Commit()
displays[HWC_DISPLAY_PRIMARY] = mList;
for (uint32_t j=0; j < (mList->numHwLayers - 1); j++) {
if (!mHwcLayerMap[j] ||
if (mHwcLayerMap.IsEmpty() ||
(mList->hwLayers[j].compositionType == HWC_FRAMEBUFFER)) {
continue;
}
@ -793,6 +793,7 @@ HwcComposer2D::TryRender(Layer* aRoot,
gfxMatrix(),
aGLWorldTransform))
{
mHwcLayerMap.Clear();
LOGD("Render aborted. Nothing was drawn to the screen");
return false;
}