Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(564)

Unified Diff: ui/compositor/layer.cc

Issue 2776973004: Remove CompositorObserver::OnCompositingEnded() (Closed)
Patch Set: Rename commited_frame_number_ to activated_frame_count_ and move increments back to DidReceiveCompo… Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/compositor/compositor_unittest.cc ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index 3467b0ebf1ef6b217fd970bde12a032ebe89caed..c235821bf6ae9a4e778f73442b8a7988169fae50 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -1084,7 +1084,7 @@ LayerAnimatorCollection* Layer::GetLayerAnimatorCollection() {
int Layer::GetFrameNumber() const {
const Compositor* compositor = GetCompositor();
- return compositor ? compositor->committed_frame_number() : 0;
+ return compositor ? compositor->activated_frame_count() : 0;
}
float Layer::GetRefreshRate() const {
« no previous file with comments | « ui/compositor/compositor_unittest.cc ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698