Bug 1150552 - Fix partial present bug with FPS counter. r=mattwoodrow

--HG--
extra : commitid : 9KkH0zuMbgj
extra : rebase_source : eb1df181c5320f299bab3aab66bd3bc2bc7f65a4
This commit is contained in:
Benoit Girard 2015-08-07 14:11:18 -04:00
parent 948094db6e
commit dd944c9f77

View File

@ -453,6 +453,9 @@ LayerManagerComposite::RenderDebugOverlay(const Rect& aBounds)
mUnusedApzTransformWarning = false;
SetDebugOverlayWantsNextFrame(true);
}
// Each frame is invalidate by the previous frame for simplicity
AddInvalidRegion(nsIntRect(0, 0, 256, 256));
} else {
mFPS = nullptr;
}
@ -467,6 +470,9 @@ LayerManagerComposite::RenderDebugOverlay(const Rect& aBounds)
effects,
1.0,
gfx::Matrix4x4());
// Each frame is invalidate by the previous frame for simplicity
AddInvalidRegion(nsIntRect(0, 0, sideRect.width, sideRect.height));
}
#ifdef MOZ_PROFILING
@ -509,6 +515,9 @@ LayerManagerComposite::RenderDebugOverlay(const Rect& aBounds)
}
}
}
// Each frame is invalidate by the previous frame for simplicity
AddInvalidRegion(nsIntRect(0, 0, 256, 256));
}
#endif