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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 2854953006: Move disable_display_vsync out of RendererSettings (Closed)
Patch Set: Correct typo Created 3 years, 7 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_perftest.cc ('k') | content/browser/compositor/gpu_process_transport_factory.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.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index 9800f6aa0f015a153bbce79dd2cb4932d21decda..9a1163c4d13c15d82d2e9dad23a287b07447033f 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -3091,7 +3091,8 @@ class OnDrawCompositorFrameSink : public TestCompositorFrameSink {
gpu_memory_buffer_manager,
renderer_settings,
task_runner,
- synchronous_composite),
+ synchronous_composite,
+ false /* disable_display_vsync */),
invalidate_callback_(std::move(invalidate_callback)) {}
// TestCompositorFrameSink overrides.
@@ -5740,6 +5741,7 @@ class LayerTreeHostTestSynchronousCompositeSwapPromise
std::unique_ptr<TestCompositorFrameSink> CreateCompositorFrameSink(
scoped_refptr<ContextProvider> compositor_context_provider,
scoped_refptr<ContextProvider> worker_context_provider) override {
+ constexpr bool disable_display_vsync = false;
bool synchronous_composite =
!HasImplThread() &&
!layer_tree_host()->GetSettings().single_thread_proxy_scheduler;
@@ -5747,7 +5749,7 @@ class LayerTreeHostTestSynchronousCompositeSwapPromise
compositor_context_provider, std::move(worker_context_provider),
shared_bitmap_manager(), gpu_memory_buffer_manager(),
layer_tree_host()->GetSettings().renderer_settings,
- ImplThreadTaskRunner(), synchronous_composite);
+ ImplThreadTaskRunner(), synchronous_composite, disable_display_vsync);
}
void BeginTest() override {
« no previous file with comments | « cc/trees/layer_tree_host_perftest.cc ('k') | content/browser/compositor/gpu_process_transport_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698