| 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 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 | 42 |
| 43 bool FakeCompositorDependencies::IsZeroCopyEnabled() { | 43 bool FakeCompositorDependencies::IsZeroCopyEnabled() { |
| 44 return true; | 44 return true; |
| 45 } | 45 } |
| 46 | 46 |
| 47 bool FakeCompositorDependencies::IsOneCopyEnabled() { | 47 bool FakeCompositorDependencies::IsOneCopyEnabled() { |
| 48 return false; | 48 return false; |
| 49 } | 49 } |
| 50 | 50 |
| 51 bool FakeCompositorDependencies::HavePersistentGpuMemoryBuffers() { |
| 52 return false; |
| 53 } |
| 54 |
| 51 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { | 55 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { |
| 52 return false; | 56 return false; |
| 53 } | 57 } |
| 54 | 58 |
| 55 uint32 FakeCompositorDependencies::GetImageTextureTarget() { | 59 uint32 FakeCompositorDependencies::GetImageTextureTarget() { |
| 56 return GL_TEXTURE_2D; | 60 return GL_TEXTURE_2D; |
| 57 } | 61 } |
| 58 | 62 |
| 59 scoped_refptr<base::SingleThreadTaskRunner> | 63 scoped_refptr<base::SingleThreadTaskRunner> |
| 60 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() { | 64 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 98 |
| 95 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() { | 99 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() { |
| 96 return &task_graph_runner_; | 100 return &task_graph_runner_; |
| 97 } | 101 } |
| 98 | 102 |
| 99 bool FakeCompositorDependencies::IsGatherPixelRefsEnabled() { | 103 bool FakeCompositorDependencies::IsGatherPixelRefsEnabled() { |
| 100 return false; | 104 return false; |
| 101 } | 105 } |
| 102 | 106 |
| 103 } // namespace content | 107 } // namespace content |
| OLD | NEW |