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 namespace cc; | 7 using cc::LayerTilingData; |
| 8 using cc::LayerUpdater; |
| 9 using cc::PriorityCalculator; |
| 10 using cc::PrioritizedResource; |
| 11 using cc::PrioritizedResourceManager; |
| 12 using cc::RenderingStats; |
| 13 using cc::ResourceUpdate; |
| 14 using cc::ResourceUpdateQueue; |
8 | 15 |
9 namespace WebKitTests { | 16 namespace WebKitTests { |
10 | 17 |
11 FakeLayerUpdater::Resource::Resource(FakeLayerUpdater* layer, scoped_ptr<Priorit
izedResource> texture) | 18 FakeLayerUpdater::Resource::Resource(FakeLayerUpdater* layer, scoped_ptr<Priorit
izedResource> texture) |
12 : LayerUpdater::Resource(texture.Pass()) | 19 : LayerUpdater::Resource(texture.Pass()) |
13 , m_layer(layer) | 20 , m_layer(layer) |
14 { | 21 { |
15 m_bitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 10); | 22 m_bitmap.setConfig(SkBitmap::kARGB_8888_Config, 10, 10); |
16 m_bitmap.allocPixels(); | 23 m_bitmap.allocPixels(); |
17 } | 24 } |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 { | 153 { |
147 return static_cast<float>(m_forcedContentBounds.height()) / bounds().height(
); | 154 return static_cast<float>(m_forcedContentBounds.height()) / bounds().height(
); |
148 } | 155 } |
149 | 156 |
150 void FakeTiledLayerWithScaledBounds::setContentsScale(float) | 157 void FakeTiledLayerWithScaledBounds::setContentsScale(float) |
151 { | 158 { |
152 NOTREACHED(); | 159 NOTREACHED(); |
153 } | 160 } |
154 | 161 |
155 } // namespace | 162 } // namespace |
OLD | NEW |