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

Unified Diff: cc/trees/layer_tree_host_perftest.cc

Issue 2323123002: Make disable vsync run the renderer independently (Closed)
Patch Set: Rebase Created 4 years, 3 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/test/fake_external_begin_frame_source.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_perftest.cc
diff --git a/cc/trees/layer_tree_host_perftest.cc b/cc/trees/layer_tree_host_perftest.cc
index edf1213e0260976a36c8610598ade64a2038b57d..77f550fc91ba47980b846a554d345778e9262ca9 100644
--- a/cc/trees/layer_tree_host_perftest.cc
+++ b/cc/trees/layer_tree_host_perftest.cc
@@ -46,7 +46,10 @@ class LayerTreeHostPerfTest : public LayerTreeTest {
}
void InitializeSettings(LayerTreeSettings* settings) override {
- settings->wait_for_beginframe_interval = false;
+ // LayerTreeTests give the Display's BeginFrameSource directly to the
+ // LayerTreeHost like we do in the Browser process via
+ // TestDelegatingOutputSurface, so setting disable_display_vsync here
+ // unthrottles both the DisplayScheduler and the Scheduler.
settings->renderer_settings.disable_display_vsync = true;
}
« no previous file with comments | « cc/test/fake_external_begin_frame_source.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698