| 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_RESOURCES_PICTURE_LAYER_TILING_H_ |
| 6 #define CC_PICTURE_LAYER_TILING_H_ | 6 #define CC_RESOURCES_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/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
| 12 #include "cc/base/hash_pair.h" | 12 #include "cc/base/hash_pair.h" |
| 13 #include "cc/base/region.h" | 13 #include "cc/base/region.h" |
| 14 #include "cc/base/tiling_data.h" | 14 #include "cc/base/tiling_data.h" |
| 15 #include "cc/tile.h" | 15 #include "cc/resources/tile.h" |
| 16 #include "cc/tile_priority.h" | 16 #include "cc/resources/tile_priority.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 // Create a tile at the given content_rect (in the contents scale of the | 25 // Create a tile at the given content_rect (in the contents scale of the |
| 26 // tiling) This might return null if the client cannot create such a tile. | 26 // tiling) This might return null if the client cannot create such a tile. |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 TilingData tiling_data_; | 166 TilingData tiling_data_; |
| 167 TileResolution resolution_; | 167 TileResolution resolution_; |
| 168 int last_source_frame_number_; | 168 int last_source_frame_number_; |
| 169 double last_impl_frame_time_; | 169 double last_impl_frame_time_; |
| 170 | 170 |
| 171 friend class Iterator; | 171 friend class Iterator; |
| 172 }; | 172 }; |
| 173 | 173 |
| 174 } // namespace cc | 174 } // namespace cc |
| 175 | 175 |
| 176 #endif // CC_PICTURE_LAYER_TILING_H_ | 176 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
| OLD | NEW |