| 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 #ifndef CCLayerTilingData_h | 6 #ifndef CCLayerTilingData_h |
| 7 #define CCLayerTilingData_h | 7 #define CCLayerTilingData_h |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "cc/hash_pair.h" | 11 #include "cc/hash_pair.h" |
| 12 #include "cc/scoped_ptr_hash_map.h" | 12 #include "cc/scoped_ptr_hash_map.h" |
| 13 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
| 14 #include "IntRect.h" | |
| 15 #include "Region.h" | 14 #include "Region.h" |
| 16 #include "TilingData.h" | 15 #include "TilingData.h" |
| 17 | 16 |
| 18 namespace cc { | 17 namespace cc { |
| 18 class IntRect; |
| 19 | 19 |
| 20 class LayerTilingData { | 20 class LayerTilingData { |
| 21 public: | 21 public: |
| 22 enum BorderTexelOption { HasBorderTexels, NoBorderTexels }; | 22 enum BorderTexelOption { HasBorderTexels, NoBorderTexels }; |
| 23 | 23 |
| 24 ~LayerTilingData(); | 24 ~LayerTilingData(); |
| 25 | 25 |
| 26 static scoped_ptr<LayerTilingData> create(const gfx::Size& tileSize, BorderT
exelOption); | 26 static scoped_ptr<LayerTilingData> create(const gfx::Size& tileSize, BorderT
exelOption); |
| 27 | 27 |
| 28 bool hasEmptyBounds() const { return m_tilingData.hasEmptyBounds(); } | 28 bool hasEmptyBounds() const { return m_tilingData.hasEmptyBounds(); } |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 protected: | 83 protected: |
| 84 LayerTilingData(const gfx::Size& tileSize, BorderTexelOption); | 84 LayerTilingData(const gfx::Size& tileSize, BorderTexelOption); |
| 85 | 85 |
| 86 TileMap m_tiles; | 86 TileMap m_tiles; |
| 87 TilingData m_tilingData; | 87 TilingData m_tilingData; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } | 90 } |
| 91 | 91 |
| 92 #endif | 92 #endif |
| OLD | NEW |