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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 | 45 |
46 FakeLayerTreeHostImpl::~FakeLayerTreeHostImpl() { | 46 FakeLayerTreeHostImpl::~FakeLayerTreeHostImpl() { |
47 ReleaseCompositorFrameSink(); | 47 ReleaseCompositorFrameSink(); |
48 } | 48 } |
49 | 49 |
50 void FakeLayerTreeHostImpl::CreatePendingTree() { | 50 void FakeLayerTreeHostImpl::CreatePendingTree() { |
51 LayerTreeHostImpl::CreatePendingTree(); | 51 LayerTreeHostImpl::CreatePendingTree(); |
52 float arbitrary_large_page_scale = 100000.f; | 52 float arbitrary_large_page_scale = 100000.f; |
53 pending_tree()->PushPageScaleFromMainThread( | 53 pending_tree()->PushPageScaleFromMainThread( |
54 1.f, 1.f / arbitrary_large_page_scale, arbitrary_large_page_scale); | 54 1.f, 1.f, 1.f / arbitrary_large_page_scale, arbitrary_large_page_scale); |
55 } | 55 } |
56 | 56 |
57 void FakeLayerTreeHostImpl::NotifyTileStateChanged(const Tile* tile) { | 57 void FakeLayerTreeHostImpl::NotifyTileStateChanged(const Tile* tile) { |
58 LayerTreeHostImpl::NotifyTileStateChanged(tile); | 58 LayerTreeHostImpl::NotifyTileStateChanged(tile); |
59 notify_tile_state_changed_called_ = true; | 59 notify_tile_state_changed_called_ = true; |
60 } | 60 } |
61 | 61 |
62 BeginFrameArgs FakeLayerTreeHostImpl::CurrentBeginFrameArgs() const { | 62 BeginFrameArgs FakeLayerTreeHostImpl::CurrentBeginFrameArgs() const { |
63 return current_begin_frame_tracker_.DangerousMethodCurrentOrLast(); | 63 return current_begin_frame_tracker_.DangerousMethodCurrentOrLast(); |
64 } | 64 } |
(...skipping 30 matching lines...) Expand all Loading... |
95 layerTree->BuildLayerListAndPropertyTreesForTesting(); | 95 layerTree->BuildLayerListAndPropertyTreesForTesting(); |
96 layerTree->UpdateDrawProperties(update_lcd_text, | 96 layerTree->UpdateDrawProperties(update_lcd_text, |
97 force_skip_verify_visible_rect_calculations); | 97 force_skip_verify_visible_rect_calculations); |
98 } | 98 } |
99 | 99 |
100 AnimationHost* FakeLayerTreeHostImpl::animation_host() const { | 100 AnimationHost* FakeLayerTreeHostImpl::animation_host() const { |
101 return static_cast<AnimationHost*>(mutator_host()); | 101 return static_cast<AnimationHost*>(mutator_host()); |
102 } | 102 } |
103 | 103 |
104 } // namespace cc | 104 } // namespace cc |
OLD | NEW |