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

Unified Diff: ui/compositor/compositor.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.h ('k') | ui/compositor/compositor_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.cc
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index 81a934550879bc91ea2e3d17bc273a65b206dbe4..1bd45350f5053d5cb43d83881cd143adf9a02b89 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -82,7 +82,7 @@ Compositor::Compositor(const cc::FrameSinkId& frame_sink_id,
context_factory_private_(context_factory_private),
root_layer_(NULL),
widget_(gfx::kNullAcceleratedWidget),
- committed_frame_number_(0),
+ activated_frame_count_(0),
widget_valid_(false),
compositor_frame_sink_requested_(false),
frame_sink_id_(frame_sink_id),
@@ -530,9 +530,7 @@ void Compositor::DidCommit() {
}
void Compositor::DidReceiveCompositorFrameAck() {
- ++committed_frame_number_;
- for (auto& observer : observer_list_)
- observer.OnCompositingEnded(this);
+ ++activated_frame_count_;
}
void Compositor::DidSubmitCompositorFrame() {
« no previous file with comments | « ui/compositor/compositor.h ('k') | ui/compositor/compositor_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698