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

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: Rebased Created 4 years, 4 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
« no previous file with comments | « content/test/fake_compositor_dependencies.h ('k') | content/test/fake_renderer_scheduler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 cc::SharedBitmapManager* FakeCompositorDependencies::GetSharedBitmapManager() { 79 cc::SharedBitmapManager* FakeCompositorDependencies::GetSharedBitmapManager() {
80 return &shared_bitmap_manager_; 80 return &shared_bitmap_manager_;
81 } 81 }
82 82
83 gpu::GpuMemoryBufferManager* 83 gpu::GpuMemoryBufferManager*
84 FakeCompositorDependencies::GetGpuMemoryBufferManager() { 84 FakeCompositorDependencies::GetGpuMemoryBufferManager() {
85 return &gpu_memory_buffer_manager_; 85 return &gpu_memory_buffer_manager_;
86 } 86 }
87 87
88 scheduler::RendererScheduler* 88 blink::scheduler::RendererScheduler*
89 FakeCompositorDependencies::GetRendererScheduler() { 89 FakeCompositorDependencies::GetRendererScheduler() {
90 return &renderer_scheduler_; 90 return &renderer_scheduler_;
91 } 91 }
92 92
93 std::unique_ptr<cc::BeginFrameSource> 93 std::unique_ptr<cc::BeginFrameSource>
94 FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) { 94 FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) {
95 double refresh_rate = 200.0; 95 double refresh_rate = 200.0;
96 bool tick_automatically = true; 96 bool tick_automatically = true;
97 return base::MakeUnique<cc::FakeExternalBeginFrameSource>(refresh_rate, 97 return base::MakeUnique<cc::FakeExternalBeginFrameSource>(refresh_rate,
98 tick_automatically); 98 tick_automatically);
(...skipping 10 matching lines...) Expand all
109 109
110 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() { 110 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() {
111 return false; 111 return false;
112 } 112 }
113 113
114 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() { 114 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() {
115 return true; 115 return true;
116 } 116 }
117 117
118 } // namespace content 118 } // namespace content
OLDNEW
« no previous file with comments | « content/test/fake_compositor_dependencies.h ('k') | content/test/fake_renderer_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698