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

Side by Side Diff: content/test/fake_compositor_dependencies.cc

Issue 2061273002: cc: Make BackToBackBeginFrameSource a SyntheticBeginFrameSource. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: syntheticbeginframesource: no-more-bfs-base Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/test/fake_compositor_dependencies.h" 5 #include "content/test/fake_compositor_dependencies.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 85 }
86 86
87 scheduler::RendererScheduler* 87 scheduler::RendererScheduler*
88 FakeCompositorDependencies::GetRendererScheduler() { 88 FakeCompositorDependencies::GetRendererScheduler() {
89 return &renderer_scheduler_; 89 return &renderer_scheduler_;
90 } 90 }
91 91
92 std::unique_ptr<cc::BeginFrameSource> 92 std::unique_ptr<cc::BeginFrameSource>
93 FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) { 93 FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) {
94 double refresh_rate = 200.0; 94 double refresh_rate = 200.0;
95 return base::WrapUnique(new cc::FakeExternalBeginFrameSource(refresh_rate)); 95 bool tick_automatically = true;
96 return base::MakeUnique<cc::FakeExternalBeginFrameSource>(refresh_rate,
97 tick_automatically);
96 } 98 }
97 99
98 cc::ImageSerializationProcessor* 100 cc::ImageSerializationProcessor*
99 FakeCompositorDependencies::GetImageSerializationProcessor() { 101 FakeCompositorDependencies::GetImageSerializationProcessor() {
100 return nullptr; 102 return nullptr;
101 } 103 }
102 104
103 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() { 105 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() {
104 return &task_graph_runner_; 106 return &task_graph_runner_;
105 } 107 }
106 108
107 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() { 109 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() {
108 return false; 110 return false;
109 } 111 }
110 112
111 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() { 113 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() {
112 return true; 114 return true;
113 } 115 }
114 116
115 } // namespace content 117 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698