| 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 #ifndef CC_PICTURE_LAYER_TILING_H_ | 5 #ifndef CC_PICTURE_LAYER_TILING_H_ |
| 6 #define CC_PICTURE_LAYER_TILING_H_ | 6 #define CC_PICTURE_LAYER_TILING_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "cc/cc_export.h" | 11 #include "cc/cc_export.h" |
| 12 #include "cc/hash_pair.h" | 12 #include "cc/hash_pair.h" |
| 13 #include "cc/region.h" | 13 #include "cc/region.h" |
| 14 #include "cc/tile.h" | 14 #include "cc/tile.h" |
| 15 #include "cc/tile_priority.h" | 15 #include "cc/tile_priority.h" |
| 16 #include "cc/tiling_data.h" | 16 #include "cc/tiling_data.h" |
| 17 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/rect.h" |
| 18 | 18 |
| 19 namespace cc { | 19 namespace cc { |
| 20 | 20 |
| 21 class PictureLayerTiling; | 21 class PictureLayerTiling; |
| 22 | 22 |
| 23 class PictureLayerTilingClient { | 23 class PictureLayerTilingClient { |
| 24 public: | 24 public: |
| 25 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling*, gfx::Rect) = 0; | 25 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling*, gfx::Rect) = 0; |
| 26 virtual void UpdatePile(Tile* tile) = 0; |
| 26 }; | 27 }; |
| 27 | 28 |
| 28 class CC_EXPORT PictureLayerTiling { | 29 class CC_EXPORT PictureLayerTiling { |
| 29 public: | 30 public: |
| 30 ~PictureLayerTiling(); | 31 ~PictureLayerTiling(); |
| 31 | 32 |
| 32 static scoped_ptr<PictureLayerTiling> Create(float contents_scale, | 33 static scoped_ptr<PictureLayerTiling> Create(float contents_scale, |
| 33 gfx::Size tile_size); | 34 gfx::Size tile_size); |
| 34 scoped_ptr<PictureLayerTiling> Clone() const; | 35 scoped_ptr<PictureLayerTiling> Clone() const; |
| 35 | 36 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 TileMap tiles_; | 118 TileMap tiles_; |
| 118 TilingData tiling_data_; | 119 TilingData tiling_data_; |
| 119 TileResolution resolution_; | 120 TileResolution resolution_; |
| 120 | 121 |
| 121 friend class Iterator; | 122 friend class Iterator; |
| 122 }; | 123 }; |
| 123 | 124 |
| 124 } // namespace cc | 125 } // namespace cc |
| 125 | 126 |
| 126 #endif // CC_PICTURE_LAYER_TILING_H_ | 127 #endif // CC_PICTURE_LAYER_TILING_H_ |
| OLD | NEW |