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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 437163007: Revert of Implement scroll handler latency tracking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/thread_proxy.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.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index 14f113fed4ddad5f6207eb0bcc12504e6e77b155..5c69225993170b1277045e0fce6bab3677863e5e 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -4460,8 +4460,6 @@
result_->reason = reason;
}
- virtual int64 TraceId() const OVERRIDE { return 0; }
-
private:
// Not owned.
TestSwapPromiseResult* result_;
@@ -4592,7 +4590,8 @@
int* set_needs_commit_count,
int* set_needs_redraw_count)
: SwapPromiseMonitor(layer_tree_host, layer_tree_host_impl),
- set_needs_commit_count_(set_needs_commit_count) {}
+ set_needs_commit_count_(set_needs_commit_count),
+ set_needs_redraw_count_(set_needs_redraw_count) {}
virtual ~SimpleSwapPromiseMonitor() {}
@@ -4601,15 +4600,12 @@
}
virtual void OnSetNeedsRedrawOnImpl() OVERRIDE {
- ADD_FAILURE() << "Should not get called on main thread.";
- }
-
- virtual void OnForwardScrollUpdateToMainThreadOnImpl() OVERRIDE {
- ADD_FAILURE() << "Should not get called on main thread.";
+ (*set_needs_redraw_count_)++;
}
private:
int* set_needs_commit_count_;
+ int* set_needs_redraw_count_;
};
class LayerTreeHostTestSimpleSwapPromiseMonitor : public LayerTreeHostTest {
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698