| 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_TILES_PICTURE_LAYER_TILING_H_ | 5 #ifndef CC_TILES_PICTURE_LAYER_TILING_H_ |
| 6 #define CC_TILES_PICTURE_LAYER_TILING_H_ | 6 #define CC_TILES_PICTURE_LAYER_TILING_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 virtual ScopedTilePtr CreateTile(const Tile::CreateInfo& info) = 0; | 39 virtual ScopedTilePtr CreateTile(const Tile::CreateInfo& info) = 0; |
| 40 virtual gfx::Size CalculateTileSize( | 40 virtual gfx::Size CalculateTileSize( |
| 41 const gfx::Size& content_bounds) const = 0; | 41 const gfx::Size& content_bounds) const = 0; |
| 42 // This invalidation region defines the area (if any, it can by null) that | 42 // This invalidation region defines the area (if any, it can by null) that |
| 43 // tiles can not be shared between pending and active trees. | 43 // tiles can not be shared between pending and active trees. |
| 44 virtual const Region* GetPendingInvalidation() = 0; | 44 virtual const Region* GetPendingInvalidation() = 0; |
| 45 virtual const PictureLayerTiling* GetPendingOrActiveTwinTiling( | 45 virtual const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
| 46 const PictureLayerTiling* tiling) const = 0; | 46 const PictureLayerTiling* tiling) const = 0; |
| 47 virtual bool HasValidTilePriorities() const = 0; | 47 virtual bool HasValidTilePriorities() const = 0; |
| 48 virtual bool RequiresHighResToDraw() const = 0; | 48 virtual bool RequiresHighResToDraw() const = 0; |
| 49 virtual bool EnablePartialRaster() const = 0; |
| 49 | 50 |
| 50 protected: | 51 protected: |
| 51 virtual ~PictureLayerTilingClient() {} | 52 virtual ~PictureLayerTilingClient() {} |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 struct TileMapKey { | 55 struct TileMapKey { |
| 55 TileMapKey(int x, int y) : index_x(x), index_y(y) {} | 56 TileMapKey(int x, int y) : index_x(x), index_y(y) {} |
| 56 explicit TileMapKey(const std::pair<int, int>& index) | 57 explicit TileMapKey(const std::pair<int, int>& index) |
| 57 : index_x(index.first), index_y(index.second) {} | 58 : index_x(index.first), index_y(index.second) {} |
| 58 | 59 |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 bool has_eventually_rect_tiles_; | 407 bool has_eventually_rect_tiles_; |
| 407 bool all_tiles_done_; | 408 bool all_tiles_done_; |
| 408 | 409 |
| 409 private: | 410 private: |
| 410 DISALLOW_ASSIGN(PictureLayerTiling); | 411 DISALLOW_ASSIGN(PictureLayerTiling); |
| 411 }; | 412 }; |
| 412 | 413 |
| 413 } // namespace cc | 414 } // namespace cc |
| 414 | 415 |
| 415 #endif // CC_TILES_PICTURE_LAYER_TILING_H_ | 416 #endif // CC_TILES_PICTURE_LAYER_TILING_H_ |
| OLD | NEW |