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

Unified Diff: cc/surfaces/direct_compositor_frame_sink.cc

Issue 2386183003: Revert of cc: Remove frame queuing from the scheduler. (patchset #14 id:400001 of https://coderevie… (Closed)
Patch Set: fix revert Created 4 years, 2 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 | « cc/scheduler/scheduler_unittest.cc ('k') | cc/test/scheduler_test_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7a75fe182f511ebdb0842884ca5280fe95652d98..727c374e7e919fdafae238fa195a6df4a88bbbc0 100644
--- a/cc/surfaces/direct_compositor_frame_sink.cc
+++ b/cc/surfaces/direct_compositor_frame_sink.cc
@@ -79,7 +79,6 @@ 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(
@@ -147,7 +146,9 @@ void DirectCompositorFrameSink::DisplayDidDrawAndSwap() {
}
void DirectCompositorFrameSink::DidDrawCallback() {
- CompositorFrameSink::PostSwapBuffersComplete();
+ // TODO(danakj): Why the lost check?
+ if (!is_lost_)
+ client_->DidSwapBuffersComplete();
}
} // namespace cc
« no previous file with comments | « cc/scheduler/scheduler_unittest.cc ('k') | cc/test/scheduler_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698