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

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

Issue 999173004: cc: Move worker threads to content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment and webview fix Created 5 years, 9 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 "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
11 namespace content { 11 namespace content {
12 12
13 FakeCompositorDependencies::FakeCompositorDependencies() 13 FakeCompositorDependencies::FakeCompositorDependencies()
14 : use_single_thread_scheduler_(true) { 14 : use_single_thread_scheduler_(true) {
15 } 15 }
16 16
17 FakeCompositorDependencies::~FakeCompositorDependencies() {
18 }
19
17 bool FakeCompositorDependencies::IsImplSidePaintingEnabled() { 20 bool FakeCompositorDependencies::IsImplSidePaintingEnabled() {
18 return true; 21 return true;
19 } 22 }
20 23
21 bool FakeCompositorDependencies::IsGpuRasterizationForced() { 24 bool FakeCompositorDependencies::IsGpuRasterizationForced() {
22 return false; 25 return false;
23 } 26 }
24 27
25 bool FakeCompositorDependencies::IsGpuRasterizationEnabled() { 28 bool FakeCompositorDependencies::IsGpuRasterizationEnabled() {
26 return false; 29 return false;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 NOTREACHED(); 93 NOTREACHED();
91 return nullptr; 94 return nullptr;
92 } 95 }
93 96
94 scoped_ptr<cc::BeginFrameSource> 97 scoped_ptr<cc::BeginFrameSource>
95 FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) { 98 FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) {
96 double refresh_rate = 200.0; 99 double refresh_rate = 200.0;
97 return make_scoped_ptr(new cc::FakeExternalBeginFrameSource(refresh_rate)); 100 return make_scoped_ptr(new cc::FakeExternalBeginFrameSource(refresh_rate));
98 } 101 }
99 102
103 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() {
104 return &task_graph_runner_;
105 }
106
107 bool FakeCompositorDependencies::IsGatherPixelRefsEnabled() {
108 return false;
109 }
110
100 } // namespace content 111 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698