am 02b95105: fix transitions from hwc to GLES composition

* commit '02b95105754b1859a97e234b79f41489a4677c20':
  fix transitions from hwc to GLES composition
This commit is contained in:
Mathias Agopian 2012-11-05 18:15:56 -08:00 committed by Android Git Automerger
commit e70fbe8b32

View File

@ -978,10 +978,10 @@ void SurfaceFlinger::doComposition() {
if (hw->canDraw()) {
// transform the dirty region into this screen's coordinate space
const Region dirtyRegion(hw->getDirtyRegion(repaintEverything));
if (!dirtyRegion.isEmpty()) {
// repaint the framebuffer (if needed)
doDisplayComposition(hw, dirtyRegion);
}
// repaint the framebuffer (if needed)
doDisplayComposition(hw, dirtyRegion);
hw->dirtyRegion.clear();
hw->flip(hw->swapRegion);
hw->swapRegion.clear();