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" | 6 #include "config.h" |
7 | 7 |
8 #include "CCLayerTilingData.h" | 8 #include "cc/layer_tiling_data.h" |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 | 11 |
12 using namespace std; | 12 using namespace std; |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 | 15 |
16 scoped_ptr<CCLayerTilingData> CCLayerTilingData::create(const IntSize& tileSize,
BorderTexelOption border) | 16 scoped_ptr<CCLayerTilingData> CCLayerTilingData::create(const IntSize& tileSize,
BorderTexelOption border) |
17 { | 17 { |
18 return make_scoped_ptr(new CCLayerTilingData(tileSize, border)); | 18 return make_scoped_ptr(new CCLayerTilingData(tileSize, border)); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 for (size_t i = 0; i < invalidTileKeys.size(); ++i) | 142 for (size_t i = 0; i < invalidTileKeys.size(); ++i) |
143 m_tiles.erase(invalidTileKeys[i]); | 143 m_tiles.erase(invalidTileKeys[i]); |
144 } | 144 } |
145 | 145 |
146 IntSize CCLayerTilingData::bounds() const | 146 IntSize CCLayerTilingData::bounds() const |
147 { | 147 { |
148 return m_tilingData.totalSize(); | 148 return m_tilingData.totalSize(); |
149 } | 149 } |
150 | 150 |
151 } // namespace cc | 151 } // namespace cc |
OLD | NEW |