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/single_thread_task_runner.h" | 7 #include "base/single_thread_task_runner.h" |
8 #include "base/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
9 #include "cc/test/fake_external_begin_frame_source.h" | 9 #include "cc/test/fake_external_begin_frame_source.h" |
10 #include "third_party/khronos/GLES2/gl2.h" | 10 #include "third_party/khronos/GLES2/gl2.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 FakeCompositorDependencies::FakeCompositorDependencies() { | 14 FakeCompositorDependencies::FakeCompositorDependencies() { |
15 } | 15 } |
16 | 16 |
17 FakeCompositorDependencies::~FakeCompositorDependencies() { | 17 FakeCompositorDependencies::~FakeCompositorDependencies() { |
18 } | 18 } |
19 | 19 |
20 bool FakeCompositorDependencies::IsImplSidePaintingEnabled() { | |
21 return true; | |
22 } | |
23 | |
24 bool FakeCompositorDependencies::IsGpuRasterizationForced() { | 20 bool FakeCompositorDependencies::IsGpuRasterizationForced() { |
25 return false; | 21 return false; |
26 } | 22 } |
27 | 23 |
28 bool FakeCompositorDependencies::IsGpuRasterizationEnabled() { | 24 bool FakeCompositorDependencies::IsGpuRasterizationEnabled() { |
29 return false; | 25 return false; |
30 } | 26 } |
31 | 27 |
32 int FakeCompositorDependencies::GetGpuRasterizationMSAASampleCount() { | 28 int FakeCompositorDependencies::GetGpuRasterizationMSAASampleCount() { |
33 return 0; | 29 return 0; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 91 |
96 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() { | 92 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() { |
97 return &task_graph_runner_; | 93 return &task_graph_runner_; |
98 } | 94 } |
99 | 95 |
100 bool FakeCompositorDependencies::IsGatherPixelRefsEnabled() { | 96 bool FakeCompositorDependencies::IsGatherPixelRefsEnabled() { |
101 return false; | 97 return false; |
102 } | 98 } |
103 | 99 |
104 } // namespace content | 100 } // namespace content |
OLD | NEW |