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