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/tiled_layer_test_common.h" | 5 #include "cc/test/tiled_layer_test_common.h" |
6 | 6 |
7 using cc::LayerTilingData; | 7 using cc::LayerTilingData; |
8 using cc::LayerUpdater; | 8 using cc::LayerUpdater; |
9 using cc::PriorityCalculator; | 9 using cc::PriorityCalculator; |
10 using cc::PrioritizedResource; | 10 using cc::PrioritizedResource; |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 *contentsScaleX = static_cast<float>(m_forcedContentBounds.width()) / bounds
().width(); | 163 *contentsScaleX = static_cast<float>(m_forcedContentBounds.width()) / bounds
().width(); |
164 *contentsScaleY = static_cast<float>(m_forcedContentBounds.height()) / bound
s().height(); | 164 *contentsScaleY = static_cast<float>(m_forcedContentBounds.height()) / bound
s().height(); |
165 *contentBounds = m_forcedContentBounds; | 165 *contentBounds = m_forcedContentBounds; |
166 } | 166 } |
167 | 167 |
168 void FakeTiledLayerWithScaledBounds::didUpdateBounds() | 168 void FakeTiledLayerWithScaledBounds::didUpdateBounds() |
169 { | 169 { |
170 drawProperties().content_bounds = m_forcedContentBounds; | 170 drawProperties().content_bounds = m_forcedContentBounds; |
171 } | 171 } |
172 | 172 |
173 } // namespace | 173 } // namespace cc |
OLD | NEW |