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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 blink::scheduler::RendererScheduler* | 74 blink::scheduler::RendererScheduler* |
75 FakeCompositorDependencies::GetRendererScheduler() { | 75 FakeCompositorDependencies::GetRendererScheduler() { |
76 return &renderer_scheduler_; | 76 return &renderer_scheduler_; |
77 } | 77 } |
78 | 78 |
79 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() { | 79 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() { |
80 return &task_graph_runner_; | 80 return &task_graph_runner_; |
81 } | 81 } |
82 | 82 |
83 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() { | |
84 return false; | |
85 } | |
86 | |
87 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() { | 83 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() { |
88 return true; | 84 return true; |
89 } | 85 } |
90 | 86 |
91 bool FakeCompositorDependencies::IsScrollAnimatorEnabled() { | 87 bool FakeCompositorDependencies::IsScrollAnimatorEnabled() { |
92 return false; | 88 return false; |
93 } | 89 } |
94 | 90 |
95 bool FakeCompositorDependencies::IsSurfaceSynchronizationEnabled() { | 91 bool FakeCompositorDependencies::IsSurfaceSynchronizationEnabled() { |
96 return false; | 92 return false; |
97 } | 93 } |
98 | 94 |
99 } // namespace content | 95 } // namespace content |
OLD | NEW |