| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 } | 47 } |
| 48 | 48 |
| 49 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { | 49 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { |
| 50 return false; | 50 return false; |
| 51 } | 51 } |
| 52 | 52 |
| 53 bool FakeCompositorDependencies::UseSingleThreadScheduler() { | 53 bool FakeCompositorDependencies::UseSingleThreadScheduler() { |
| 54 return use_single_thread_scheduler_; | 54 return use_single_thread_scheduler_; |
| 55 } | 55 } |
| 56 | 56 |
| 57 bool FakeCompositorDependencies::IsThreadedGpuRasterizationEnabled() { |
| 58 return false; |
| 59 } |
| 60 |
| 57 uint32 FakeCompositorDependencies::GetImageTextureTarget() { | 61 uint32 FakeCompositorDependencies::GetImageTextureTarget() { |
| 58 return GL_TEXTURE_2D; | 62 return GL_TEXTURE_2D; |
| 59 } | 63 } |
| 60 | 64 |
| 61 scoped_refptr<base::SingleThreadTaskRunner> | 65 scoped_refptr<base::SingleThreadTaskRunner> |
| 62 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() { | 66 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() { |
| 63 return base::MessageLoopProxy::current(); | 67 return base::MessageLoopProxy::current(); |
| 64 } | 68 } |
| 65 | 69 |
| 66 scoped_refptr<base::SingleThreadTaskRunner> | 70 scoped_refptr<base::SingleThreadTaskRunner> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 87 return nullptr; | 91 return nullptr; |
| 88 } | 92 } |
| 89 | 93 |
| 90 scoped_ptr<cc::BeginFrameSource> | 94 scoped_ptr<cc::BeginFrameSource> |
| 91 FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) { | 95 FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) { |
| 92 double refresh_rate = 200.0; | 96 double refresh_rate = 200.0; |
| 93 return make_scoped_ptr(new cc::FakeExternalBeginFrameSource(refresh_rate)); | 97 return make_scoped_ptr(new cc::FakeExternalBeginFrameSource(refresh_rate)); |
| 94 } | 98 } |
| 95 | 99 |
| 96 } // namespace content | 100 } // namespace content |
| OLD | NEW |