OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 | 5 |
6 #include "config.h" | |
7 | |
8 #include "cc/layer_tiling_data.h" | 6 #include "cc/layer_tiling_data.h" |
9 | 7 |
10 #include "base/logging.h" | 8 #include "base/logging.h" |
11 | 9 |
12 using namespace std; | 10 using namespace std; |
13 | 11 |
14 namespace cc { | 12 namespace cc { |
15 | 13 |
16 scoped_ptr<LayerTilingData> LayerTilingData::create(const gfx::Size& tileSize, B
orderTexelOption border) | 14 scoped_ptr<LayerTilingData> LayerTilingData::create(const gfx::Size& tileSize, B
orderTexelOption border) |
17 { | 15 { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 for (size_t i = 0; i < invalidTileKeys.size(); ++i) | 140 for (size_t i = 0; i < invalidTileKeys.size(); ++i) |
143 m_tiles.erase(invalidTileKeys[i]); | 141 m_tiles.erase(invalidTileKeys[i]); |
144 } | 142 } |
145 | 143 |
146 gfx::Size LayerTilingData::bounds() const | 144 gfx::Size LayerTilingData::bounds() const |
147 { | 145 { |
148 return m_tilingData.total_size(); | 146 return m_tilingData.total_size(); |
149 } | 147 } |
150 | 148 |
151 } // namespace cc | 149 } // namespace cc |
OLD | NEW |