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 <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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 return false; | 53 return false; |
54 } | 54 } |
55 | 55 |
56 bool FakeCompositorDependencies::IsGpuMemoryBufferCompositorResourcesEnabled() { | 56 bool FakeCompositorDependencies::IsGpuMemoryBufferCompositorResourcesEnabled() { |
57 return false; | 57 return false; |
58 } | 58 } |
59 | 59 |
60 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { | 60 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { |
61 return true; | 61 return true; |
62 } | 62 } |
63 std::vector<unsigned> FakeCompositorDependencies::GetImageTextureTargets() { | 63 |
64 return std::vector<unsigned>(static_cast<size_t>(gfx::BufferFormat::LAST) + 1, | 64 const cc::RendererSettings::ImageTextureTargetsMap& |
65 GL_TEXTURE_2D); | 65 FakeCompositorDependencies::GetImageTextureTargets() { |
| 66 return image_texture_targets_; |
66 } | 67 } |
67 | 68 |
68 scoped_refptr<base::SingleThreadTaskRunner> | 69 scoped_refptr<base::SingleThreadTaskRunner> |
69 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() { | 70 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() { |
70 return base::ThreadTaskRunnerHandle::Get(); | 71 return base::ThreadTaskRunnerHandle::Get(); |
71 } | 72 } |
72 | 73 |
73 scoped_refptr<base::SingleThreadTaskRunner> | 74 scoped_refptr<base::SingleThreadTaskRunner> |
74 FakeCompositorDependencies::GetCompositorImplThreadTaskRunner() { | 75 FakeCompositorDependencies::GetCompositorImplThreadTaskRunner() { |
75 return nullptr; // Currently never threaded compositing in unit tests. | 76 return nullptr; // Currently never threaded compositing in unit tests. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 109 |
109 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() { | 110 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() { |
110 return false; | 111 return false; |
111 } | 112 } |
112 | 113 |
113 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() { | 114 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() { |
114 return true; | 115 return true; |
115 } | 116 } |
116 | 117 |
117 } // namespace content | 118 } // namespace content |
OLD | NEW |