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

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

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another GYP fix Created 4 years, 5 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 cc::SharedBitmapManager* FakeCompositorDependencies::GetSharedBitmapManager() { 78 cc::SharedBitmapManager* FakeCompositorDependencies::GetSharedBitmapManager() {
79 return &shared_bitmap_manager_; 79 return &shared_bitmap_manager_;
80 } 80 }
81 81
82 gpu::GpuMemoryBufferManager* 82 gpu::GpuMemoryBufferManager*
83 FakeCompositorDependencies::GetGpuMemoryBufferManager() { 83 FakeCompositorDependencies::GetGpuMemoryBufferManager() {
84 return &gpu_memory_buffer_manager_; 84 return &gpu_memory_buffer_manager_;
85 } 85 }
86 86
87 scheduler::RendererScheduler* 87 blink::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 bool tick_automatically = true; 95 bool tick_automatically = true;
96 return base::MakeUnique<cc::FakeExternalBeginFrameSource>(refresh_rate, 96 return base::MakeUnique<cc::FakeExternalBeginFrameSource>(refresh_rate,
97 tick_automatically); 97 tick_automatically);
(...skipping 10 matching lines...) Expand all
108 108
109 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() { 109 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() {
110 return false; 110 return false;
111 } 111 }
112 112
113 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() { 113 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() {
114 return true; 114 return true;
115 } 115 }
116 116
117 } // namespace content 117 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698