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

Unified Diff: cc/trees/layer_tree_host_unittest_scroll.cc

Issue 2158973002: cc: Clean up LayerTreeTest and TestHooks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: proxy-impls: test Created 4 years, 5 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/trees/layer_tree_host_unittest_proxy.cc ('k') | cc/trees/layer_tree_host_unittest_serialization.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_scroll.cc
diff --git a/cc/trees/layer_tree_host_unittest_scroll.cc b/cc/trees/layer_tree_host_unittest_scroll.cc
index b23df26210fca2e8af54aad154fba93b508478aa..484cbc0a9cb21bb658a3444e90e4b5ec616b5de8 100644
--- a/cc/trees/layer_tree_host_unittest_scroll.cc
+++ b/cc/trees/layer_tree_host_unittest_scroll.cc
@@ -1533,17 +1533,17 @@ class LayerTreeHostScrollTestScrollMFBA : public LayerTreeHostScrollTest {
PostSetNeedsCommitToMainThread();
}
- void StartCommitOnImpl() override {
+ void ReadyToCommitOnThread(LayerTreeHostImpl* impl) override {
switch (num_commits_) {
case 1:
// Ask for commit here because activation (and draw) will be blocked.
- GetProxyImplForTest()->SetNeedsCommitOnImpl();
+ impl->SetNeedsCommit();
// Block activation after second commit until third commit is ready.
- GetProxyImplForTest()->BlockNotifyReadyToActivateForTesting(true);
+ impl->BlockNotifyReadyToActivateForTesting(true);
break;
case 2:
// Unblock activation after third commit is ready.
- GetProxyImplForTest()->BlockNotifyReadyToActivateForTesting(false);
+ impl->BlockNotifyReadyToActivateForTesting(false);
break;
}
num_commits_++;
« no previous file with comments | « cc/trees/layer_tree_host_unittest_proxy.cc ('k') | cc/trees/layer_tree_host_unittest_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698