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

Unified Diff: cc/trees/layer_tree_host_unittest_scroll.cc

Issue 2429953002: Implement compositor thread VSync aligned event queue (Closed)
Patch Set: dtapuska&enne's review: Call |Now()| once per loop; Chromium style; Remove parameterized 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/trees/layer_tree_host_impl_unittest.cc ('k') | content/common/input/event_with_latency_info.h » ('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 473d5285e4342d38cb249793f7ac90161be552bb..248877ffe82b09e665b3cfc401af02a44ce93695 100644
--- a/cc/trees/layer_tree_host_unittest_scroll.cc
+++ b/cc/trees/layer_tree_host_unittest_scroll.cc
@@ -1287,6 +1287,12 @@ class ThreadCheckingInputHandlerClient : public InputHandlerClient {
}
}
+ void DeliverInputForBeginFrame() override {
+ if (!task_runner_->BelongsToCurrentThread()) {
+ ADD_FAILURE() << "DeliverInputForBeginFrame called on wrong thread";
+ }
+ }
+
private:
base::SingleThreadTaskRunner* task_runner_;
bool* received_stop_flinging_;
@@ -1821,6 +1827,7 @@ class MockInputHandlerClient : public InputHandlerClient {
float page_scale_factor,
float min_page_scale_factor,
float max_page_scale_factor) override {}
+ void DeliverInputForBeginFrame() override {}
};
// This is a regression test, see crbug.com/639046.
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | content/common/input/event_with_latency_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698