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

Unified Diff: cc/test/fake_remote_compositor_bridge.cc

Issue 2493523003: cc: Remove unused proto conversion code. (Closed)
Patch Set: test Created 4 years, 1 month 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/test/fake_remote_compositor_bridge.h ('k') | cc/test/push_properties_counting_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_remote_compositor_bridge.cc
diff --git a/cc/test/fake_remote_compositor_bridge.cc b/cc/test/fake_remote_compositor_bridge.cc
index a6750ec4f363f191e0b64b8bc42c41d6bfd4f378..9288c3fb7b4f1e74d365955793e37e0acb214b41 100644
--- a/cc/test/fake_remote_compositor_bridge.cc
+++ b/cc/test/fake_remote_compositor_bridge.cc
@@ -26,12 +26,18 @@ void FakeRemoteCompositorBridge::BindToClient(
}
void FakeRemoteCompositorBridge::ScheduleMainFrame() {
+ DCHECK(!has_pending_update_);
+ has_pending_update_ = true;
+
compositor_main_task_runner_->PostTask(
FROM_HERE, base::Bind(&FakeRemoteCompositorBridge::BeginMainFrame,
weak_factory_.GetWeakPtr()));
}
void FakeRemoteCompositorBridge::BeginMainFrame() {
+ DCHECK(has_pending_update_);
+ has_pending_update_ = false;
+
client_->BeginMainFrame();
}
« no previous file with comments | « cc/test/fake_remote_compositor_bridge.h ('k') | cc/test/push_properties_counting_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698