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

Unified Diff: cc/surfaces/direct_compositor_frame_sink.cc

Issue 2339633003: Reland of cc: Remove frame queuing from the scheduler. (Closed)
Patch Set: prevent draw if commit is pending Created 4 years, 3 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
Index: cc/surfaces/direct_compositor_frame_sink.cc
diff --git a/cc/surfaces/direct_compositor_frame_sink.cc b/cc/surfaces/direct_compositor_frame_sink.cc
index b96cbbc93a327958a5e5940e418868020db009aa..2552a3c6030d9ef8f9a1d995242cbca50d3163ae 100644
--- a/cc/surfaces/direct_compositor_frame_sink.cc
+++ b/cc/surfaces/direct_compositor_frame_sink.cc
@@ -79,6 +79,7 @@ bool DirectCompositorFrameSink::BindToClient(
void DirectCompositorFrameSink::DetachFromClient() {
DCHECK(HasClient());
+
// Unregister the SurfaceFactoryClient here instead of the dtor so that only
// one client is alive for this namespace at any given time.
surface_manager_->UnregisterSurfaceFactoryClient(
@@ -146,9 +147,7 @@ void DirectCompositorFrameSink::DisplayDidDrawAndSwap() {
}
void DirectCompositorFrameSink::DidDrawCallback() {
- // TODO(danakj): Why the lost check?
- if (!is_lost_)
- client_->DidSwapBuffersComplete();
+ CompositorFrameSink::PostSwapBuffersComplete();
}
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698