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

Unified Diff: cc/test/layer_tree_test.cc

Issue 672283003: cc: ReadyToDraw notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add unit test. Created 6 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
Index: cc/test/layer_tree_test.cc
diff --git a/cc/test/layer_tree_test.cc b/cc/test/layer_tree_test.cc
index d1d196267ffc8c702da95a3fb6ec34401246d297..ca5916e23cf220570820d64eee280f80e95a4147 100644
--- a/cc/test/layer_tree_test.cc
+++ b/cc/test/layer_tree_test.cc
@@ -214,10 +214,17 @@ class LayerTreeHostImplForTesting : public LayerTreeHostImpl {
}
void NotifyReadyToActivate() override {
- if (block_notify_ready_to_activate_for_testing_)
+ if (block_notify_ready_to_activate_for_testing_) {
notify_ready_to_activate_was_blocked_ = true;
- else
+ } else {
client_->NotifyReadyToActivate();
+ test_hooks_->NotifyReadyToActivateOnThread(this);
+ }
+ }
+
+ void NotifyReadyToDraw() override {
+ client_->NotifyReadyToDraw();
+ test_hooks_->NotifyReadyToDrawOnThread(this);
}
void BlockNotifyReadyToActivateForTesting(bool block) override {

Powered by Google App Engine
This is Rietveld 408576698