Bug 987563 - Set correct default composition type for fake layer in GPU composition. r=sotaro

This commit is contained in:
Sushil Chauhan 2014-03-28 11:05:43 -07:00
Родитель d86b77bad9
Коммит 4de78755cb
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -615,7 +615,7 @@ HwcComposer2D::Render(EGLDisplay dpy, EGLSurface sur)
} else {
mList->numHwLayers = 2;
mList->hwLayers[0].hints = 0;
mList->hwLayers[0].compositionType = HWC_BACKGROUND;
mList->hwLayers[0].compositionType = HWC_FRAMEBUFFER;
mList->hwLayers[0].flags = HWC_SKIP_LAYER;
mList->hwLayers[0].backgroundColor = {0};
mList->hwLayers[0].acquireFenceFd = -1;

Просмотреть файл

@ -234,7 +234,7 @@ GonkDisplayJB::Post(buffer_handle_t buf, int fence)
mList->retireFenceFd = -1;
mList->numHwLayers = 2;
mList->flags = HWC_GEOMETRY_CHANGED;
mList->hwLayers[0].compositionType = HWC_BACKGROUND;
mList->hwLayers[0].compositionType = HWC_FRAMEBUFFER;
mList->hwLayers[0].hints = 0;
/* Skip this layer so the hwc module doesn't complain about null handles */
mList->hwLayers[0].flags = HWC_SKIP_LAYER;