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

Unified Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 16871016: cc: Use BeginFrameArgs (Closed) Base URL: http://git.chromium.org/chromium/src.git@bfargs2
Patch Set: Add an --enable-deadline-scheduler commandline flag. Created 7 years, 4 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/trees/layer_tree_host_impl_unittest.cc
diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
index 0c4fc352eb970af98e5aa15501e6382ac2f56abd..5e43192aa1afc55a316331c80b6987b42873b45a 100644
--- a/cc/trees/layer_tree_host_impl_unittest.cc
+++ b/cc/trees/layer_tree_host_impl_unittest.cc
@@ -68,6 +68,7 @@ class LayerTreeHostImplTest : public testing::Test,
always_main_thread_blocked_(&proxy_),
did_try_initialize_renderer_(false),
on_can_draw_state_changed_called_(false),
+ did_notify_ready_to_activate_(false),
has_pending_tree_(false),
did_request_commit_(false),
did_request_redraw_(false),
@@ -106,6 +107,10 @@ class LayerTreeHostImplTest : public testing::Test,
virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE {
on_can_draw_state_changed_called_ = true;
}
+ virtual void NotifyReadyToActivate() OVERRIDE {
+ did_notify_ready_to_activate_ = true;
+ host_impl_->ActivatePendingTree();
+ }
virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE {
has_pending_tree_ = has_pending_tree;
}
@@ -353,6 +358,7 @@ class LayerTreeHostImplTest : public testing::Test,
FakeRenderingStatsInstrumentation stats_instrumentation_;
bool did_try_initialize_renderer_;
bool on_can_draw_state_changed_called_;
+ bool did_notify_ready_to_activate_;
bool has_pending_tree_;
bool did_request_commit_;
bool did_request_redraw_;

Powered by Google App Engine
This is Rietveld 408576698