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 23 matching lines...) Expand all Loading... |
34 } | 34 } |
35 | 35 |
36 bool FakeCompositorDependencies::IsDistanceFieldTextEnabled() { | 36 bool FakeCompositorDependencies::IsDistanceFieldTextEnabled() { |
37 return false; | 37 return false; |
38 } | 38 } |
39 | 39 |
40 bool FakeCompositorDependencies::IsZeroCopyEnabled() { | 40 bool FakeCompositorDependencies::IsZeroCopyEnabled() { |
41 return true; | 41 return true; |
42 } | 42 } |
43 | 43 |
44 bool FakeCompositorDependencies::IsOneCopyEnabled() { | |
45 return false; | |
46 } | |
47 | |
48 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { | 44 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { |
49 return false; | 45 return false; |
50 } | 46 } |
51 | 47 |
52 uint32 FakeCompositorDependencies::GetImageTextureTarget() { | 48 uint32 FakeCompositorDependencies::GetImageTextureTarget() { |
53 return GL_TEXTURE_2D; | 49 return GL_TEXTURE_2D; |
54 } | 50 } |
55 | 51 |
56 scoped_refptr<base::SingleThreadTaskRunner> | 52 scoped_refptr<base::SingleThreadTaskRunner> |
57 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() { | 53 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 87 |
92 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() { | 88 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() { |
93 return &task_graph_runner_; | 89 return &task_graph_runner_; |
94 } | 90 } |
95 | 91 |
96 bool FakeCompositorDependencies::IsGatherPixelRefsEnabled() { | 92 bool FakeCompositorDependencies::IsGatherPixelRefsEnabled() { |
97 return false; | 93 return false; |
98 } | 94 } |
99 | 95 |
100 } // namespace content | 96 } // namespace content |
OLD | NEW |