| 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/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 bool FakeCompositorDependencies::IsPartialRasterEnabled() { | 47 bool FakeCompositorDependencies::IsPartialRasterEnabled() { |
| 48 return false; | 48 return false; |
| 49 } | 49 } |
| 50 | 50 |
| 51 bool FakeCompositorDependencies::IsGpuMemoryBufferCompositorResourcesEnabled() { | 51 bool FakeCompositorDependencies::IsGpuMemoryBufferCompositorResourcesEnabled() { |
| 52 return false; | 52 return false; |
| 53 } | 53 } |
| 54 | 54 |
| 55 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { | 55 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { |
| 56 return false; | 56 return true; |
| 57 } | 57 } |
| 58 std::vector<unsigned> FakeCompositorDependencies::GetImageTextureTargets() { | 58 std::vector<unsigned> FakeCompositorDependencies::GetImageTextureTargets() { |
| 59 return std::vector<unsigned>(static_cast<size_t>(gfx::BufferFormat::LAST) + 1, | 59 return std::vector<unsigned>(static_cast<size_t>(gfx::BufferFormat::LAST) + 1, |
| 60 GL_TEXTURE_2D); | 60 GL_TEXTURE_2D); |
| 61 } | 61 } |
| 62 | 62 |
| 63 scoped_refptr<base::SingleThreadTaskRunner> | 63 scoped_refptr<base::SingleThreadTaskRunner> |
| 64 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() { | 64 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() { |
| 65 return base::ThreadTaskRunnerHandle::Get(); | 65 return base::ThreadTaskRunnerHandle::Get(); |
| 66 } | 66 } |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() { | 108 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() { |
| 109 return false; | 109 return false; |
| 110 } | 110 } |
| 111 | 111 |
| 112 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() { | 112 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() { |
| 113 return true; | 113 return true; |
| 114 } | 114 } |
| 115 | 115 |
| 116 } // namespace content | 116 } // namespace content |
| OLD | NEW |