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

Unified Diff: cc/test/test_compositor_frame_sink.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/test/test_compositor_frame_sink.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_compositor_frame_sink.cc
diff --git a/cc/test/test_compositor_frame_sink.cc b/cc/test/test_compositor_frame_sink.cc
index 8a856edabcef636826f040a6f7daee025a891ddc..dd0fd2adee3ab5d247af9abba7713555cb93bcb2 100644
--- a/cc/test/test_compositor_frame_sink.cc
+++ b/cc/test/test_compositor_frame_sink.cc
@@ -27,12 +27,14 @@ TestCompositorFrameSink::TestCompositorFrameSink(
gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
const RendererSettings& renderer_settings,
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
- bool synchronous_composite)
+ bool synchronous_composite,
+ bool disable_display_vsync)
: CompositorFrameSink(std::move(compositor_context_provider),
std::move(worker_context_provider),
gpu_memory_buffer_manager,
shared_bitmap_manager),
synchronous_composite_(synchronous_composite),
+ disable_display_vsync_(disable_display_vsync),
renderer_settings_(renderer_settings),
task_runner_(std::move(task_runner)),
frame_sink_id_(kCompositorFrameSinkId),
@@ -65,7 +67,7 @@ bool TestCompositorFrameSink::BindToClient(CompositorFrameSinkClient* client) {
std::unique_ptr<DisplayScheduler> scheduler;
if (!synchronous_composite_) {
- if (renderer_settings_.disable_display_vsync) {
+ if (disable_display_vsync_) {
begin_frame_source_.reset(new BackToBackBeginFrameSource(
base::MakeUnique<DelayBasedTimeSource>(task_runner_.get())));
} else {
« no previous file with comments | « cc/test/test_compositor_frame_sink.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698