| 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" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 } | 35 } |
| 36 | 36 |
| 37 bool FakeCompositorDependencies::IsDistanceFieldTextEnabled() { | 37 bool FakeCompositorDependencies::IsDistanceFieldTextEnabled() { |
| 38 return false; | 38 return false; |
| 39 } | 39 } |
| 40 | 40 |
| 41 bool FakeCompositorDependencies::IsZeroCopyEnabled() { | 41 bool FakeCompositorDependencies::IsZeroCopyEnabled() { |
| 42 return true; | 42 return true; |
| 43 } | 43 } |
| 44 | 44 |
| 45 bool FakeCompositorDependencies::IsPersistentGpuMemoryBufferEnabled() { | 45 bool FakeCompositorDependencies::IsPartialRasterEnabled() { |
| 46 return false; | 46 return false; |
| 47 } | 47 } |
| 48 | 48 |
| 49 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { | 49 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { |
| 50 return false; | 50 return false; |
| 51 } | 51 } |
| 52 std::vector<unsigned> FakeCompositorDependencies::GetImageTextureTargets() { | 52 std::vector<unsigned> FakeCompositorDependencies::GetImageTextureTargets() { |
| 53 return std::vector<unsigned>(static_cast<size_t>(gfx::BufferFormat::LAST) + 1, | 53 return std::vector<unsigned>(static_cast<size_t>(gfx::BufferFormat::LAST) + 1, |
| 54 GL_TEXTURE_2D); | 54 GL_TEXTURE_2D); |
| 55 } | 55 } |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() { | 97 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() { |
| 98 return false; | 98 return false; |
| 99 } | 99 } |
| 100 | 100 |
| 101 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() { | 101 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() { |
| 102 return true; | 102 return true; |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace content | 105 } // namespace content |
| OLD | NEW |