mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Bug 1150552
- Fix partial present bug with FPS counter. r=mattwoodrow
--HG-- extra : commitid : 9KkH0zuMbgj extra : rebase_source : eb1df181c5320f299bab3aab66bd3bc2bc7f65a4
This commit is contained in:
parent
948094db6e
commit
dd944c9f77
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user