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

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

Issue 1058873010: Move blink scheduler implementation into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 8 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 "base/message_loop/message_loop_proxy.h" 7 #include "base/message_loop/message_loop_proxy.h"
8 #include "cc/test/fake_external_begin_frame_source.h" 8 #include "cc/test/fake_external_begin_frame_source.h"
9 #include "third_party/khronos/GLES2/gl2.h" 9 #include "third_party/khronos/GLES2/gl2.h"
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 cc::SharedBitmapManager* FakeCompositorDependencies::GetSharedBitmapManager() { 74 cc::SharedBitmapManager* FakeCompositorDependencies::GetSharedBitmapManager() {
75 return &shared_bitmap_manager_; 75 return &shared_bitmap_manager_;
76 } 76 }
77 77
78 gpu::GpuMemoryBufferManager* 78 gpu::GpuMemoryBufferManager*
79 FakeCompositorDependencies::GetGpuMemoryBufferManager() { 79 FakeCompositorDependencies::GetGpuMemoryBufferManager() {
80 return &gpu_memory_buffer_manager_; 80 return &gpu_memory_buffer_manager_;
81 } 81 }
82 82
83 RendererScheduler* FakeCompositorDependencies::GetRendererScheduler() { 83 scheduler::RendererScheduler*
84 FakeCompositorDependencies::GetRendererScheduler() {
84 return &renderer_scheduler_; 85 return &renderer_scheduler_;
85 } 86 }
86 87
87 cc::ContextProvider* 88 cc::ContextProvider*
88 FakeCompositorDependencies::GetSharedMainThreadContextProvider() { 89 FakeCompositorDependencies::GetSharedMainThreadContextProvider() {
89 NOTREACHED(); 90 NOTREACHED();
90 return nullptr; 91 return nullptr;
91 } 92 }
92 93
93 scoped_ptr<cc::BeginFrameSource> 94 scoped_ptr<cc::BeginFrameSource>
94 FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) { 95 FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) {
95 double refresh_rate = 200.0; 96 double refresh_rate = 200.0;
96 return make_scoped_ptr(new cc::FakeExternalBeginFrameSource(refresh_rate)); 97 return make_scoped_ptr(new cc::FakeExternalBeginFrameSource(refresh_rate));
97 } 98 }
98 99
99 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() { 100 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() {
100 return &task_graph_runner_; 101 return &task_graph_runner_;
101 } 102 }
102 103
103 bool FakeCompositorDependencies::IsGatherPixelRefsEnabled() { 104 bool FakeCompositorDependencies::IsGatherPixelRefsEnabled() {
104 return false; 105 return false;
105 } 106 }
106 107
107 } // namespace content 108 } // 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