| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 } | 50 } |
| 51 | 51 |
| 52 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { | 52 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { |
| 53 return false; | 53 return false; |
| 54 } | 54 } |
| 55 | 55 |
| 56 bool FakeCompositorDependencies::UseSingleThreadScheduler() { | 56 bool FakeCompositorDependencies::UseSingleThreadScheduler() { |
| 57 return use_single_thread_scheduler_; | 57 return use_single_thread_scheduler_; |
| 58 } | 58 } |
| 59 | 59 |
| 60 uint32 FakeCompositorDependencies::GetImageTextureTarget() { | 60 uint32 FakeCompositorDependencies::GetMapImageTextureTarget() { |
| 61 return GL_TEXTURE_2D; | 61 return GL_TEXTURE_2D; |
| 62 } | 62 } |
| 63 | 63 |
| 64 uint32 FakeCompositorDependencies::GetPersistentMapImageTextureTarget() { |
| 65 return GL_TEXTURE_2D; |
| 66 } |
| 67 |
| 64 scoped_refptr<base::SingleThreadTaskRunner> | 68 scoped_refptr<base::SingleThreadTaskRunner> |
| 65 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() { | 69 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() { |
| 66 return base::MessageLoopProxy::current(); | 70 return base::MessageLoopProxy::current(); |
| 67 } | 71 } |
| 68 | 72 |
| 69 scoped_refptr<base::SingleThreadTaskRunner> | 73 scoped_refptr<base::SingleThreadTaskRunner> |
| 70 FakeCompositorDependencies::GetCompositorImplThreadTaskRunner() { | 74 FakeCompositorDependencies::GetCompositorImplThreadTaskRunner() { |
| 71 return nullptr; // Currently never threaded compositing in unit tests. | 75 return nullptr; // Currently never threaded compositing in unit tests. |
| 72 } | 76 } |
| 73 | 77 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 99 | 103 |
| 100 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() { | 104 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() { |
| 101 return &task_graph_runner_; | 105 return &task_graph_runner_; |
| 102 } | 106 } |
| 103 | 107 |
| 104 bool FakeCompositorDependencies::IsGatherPixelRefsEnabled() { | 108 bool FakeCompositorDependencies::IsGatherPixelRefsEnabled() { |
| 105 return false; | 109 return false; |
| 106 } | 110 } |
| 107 | 111 |
| 108 } // namespace content | 112 } // namespace content |
| OLD | NEW |