OLD | NEW |
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 bool FakeCompositorDependencies::IsImplSidePaintingEnabled() { | 17 bool FakeCompositorDependencies::IsImplSidePaintingEnabled() { |
18 return true; | 18 return true; |
19 } | 19 } |
20 | 20 |
21 bool FakeCompositorDependencies::IsGpuRasterizationForced() { | 21 bool FakeCompositorDependencies::IsGpuRasterizationForced() { |
22 return false; | 22 return false; |
23 } | 23 } |
24 | 24 |
25 bool FakeCompositorDependencies::IsGpuRasterizationEnabled() { | 25 bool FakeCompositorDependencies::IsGpuRasterizationEnabled() { |
26 return false; | 26 return false; |
27 } | 27 } |
28 | 28 |
| 29 bool FakeCompositorDependencies::IsThreadedGpuRasterizationEnabled() { |
| 30 return false; |
| 31 } |
| 32 |
29 int FakeCompositorDependencies::GetGpuRasterizationMSAASampleCount() { | 33 int FakeCompositorDependencies::GetGpuRasterizationMSAASampleCount() { |
30 return 0; | 34 return 0; |
31 } | 35 } |
32 | 36 |
33 bool FakeCompositorDependencies::IsLcdTextEnabled() { | 37 bool FakeCompositorDependencies::IsLcdTextEnabled() { |
34 return false; | 38 return false; |
35 } | 39 } |
36 | 40 |
37 bool FakeCompositorDependencies::IsDistanceFieldTextEnabled() { | 41 bool FakeCompositorDependencies::IsDistanceFieldTextEnabled() { |
38 return false; | 42 return false; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 return nullptr; | 91 return nullptr; |
88 } | 92 } |
89 | 93 |
90 scoped_ptr<cc::BeginFrameSource> | 94 scoped_ptr<cc::BeginFrameSource> |
91 FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) { | 95 FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) { |
92 double refresh_rate = 200.0; | 96 double refresh_rate = 200.0; |
93 return make_scoped_ptr(new cc::FakeExternalBeginFrameSource(refresh_rate)); | 97 return make_scoped_ptr(new cc::FakeExternalBeginFrameSource(refresh_rate)); |
94 } | 98 } |
95 | 99 |
96 } // namespace content | 100 } // namespace content |
OLD | NEW |