| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "cc/test/fake_layer_tree_host_impl.h" | 5 #include "cc/test/fake_layer_tree_host_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "cc/animation/animation_host.h" | 9 #include "cc/animation/animation_host.h" |
| 10 #include "cc/test/begin_frame_args_test.h" | 10 #include "cc/test/begin_frame_args_test.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl( | 24 FakeLayerTreeHostImpl::FakeLayerTreeHostImpl( |
| 25 const LayerTreeSettings& settings, | 25 const LayerTreeSettings& settings, |
| 26 TaskRunnerProvider* task_runner_provider, | 26 TaskRunnerProvider* task_runner_provider, |
| 27 TaskGraphRunner* task_graph_runner) | 27 TaskGraphRunner* task_graph_runner) |
| 28 : LayerTreeHostImpl(settings, | 28 : LayerTreeHostImpl(settings, |
| 29 &client_, | 29 &client_, |
| 30 task_runner_provider, | 30 task_runner_provider, |
| 31 &stats_instrumentation_, | 31 &stats_instrumentation_, |
| 32 task_graph_runner, | 32 task_graph_runner, |
| 33 AnimationHost::CreateForTesting(ThreadInstance::IMPL), | 33 AnimationHost::CreateForTesting(ThreadInstance::IMPL), |
| 34 0), | 34 0, |
| 35 nullptr), |
| 35 notify_tile_state_changed_called_(false) { | 36 notify_tile_state_changed_called_(false) { |
| 36 // Explicitly clear all debug settings. | 37 // Explicitly clear all debug settings. |
| 37 SetDebugState(LayerTreeDebugState()); | 38 SetDebugState(LayerTreeDebugState()); |
| 38 SetViewportSize(gfx::Size(100, 100)); | 39 SetViewportSize(gfx::Size(100, 100)); |
| 39 | 40 |
| 40 // Start an impl frame so tests have a valid frame_time to work with. | 41 // Start an impl frame so tests have a valid frame_time to work with. |
| 41 base::TimeTicks time_ticks = base::TimeTicks::FromInternalValue(1); | 42 base::TimeTicks time_ticks = base::TimeTicks::FromInternalValue(1); |
| 42 WillBeginImplFrame( | 43 WillBeginImplFrame( |
| 43 CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, 0, 1, time_ticks)); | 44 CreateBeginFrameArgsForTesting(BEGINFRAME_FROM_HERE, 0, 1, time_ticks)); |
| 44 } | 45 } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 layerTree->BuildLayerListAndPropertyTreesForTesting(); | 96 layerTree->BuildLayerListAndPropertyTreesForTesting(); |
| 96 layerTree->UpdateDrawProperties(update_lcd_text, | 97 layerTree->UpdateDrawProperties(update_lcd_text, |
| 97 force_skip_verify_visible_rect_calculations); | 98 force_skip_verify_visible_rect_calculations); |
| 98 } | 99 } |
| 99 | 100 |
| 100 AnimationHost* FakeLayerTreeHostImpl::animation_host() const { | 101 AnimationHost* FakeLayerTreeHostImpl::animation_host() const { |
| 101 return static_cast<AnimationHost*>(mutator_host()); | 102 return static_cast<AnimationHost*>(mutator_host()); |
| 102 } | 103 } |
| 103 | 104 |
| 104 } // namespace cc | 105 } // namespace cc |
| OLD | NEW |