| 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_RESOURCES_TILE_H_ | 5 #ifndef CC_RESOURCES_TILE_H_ |
| 6 #define CC_RESOURCES_TILE_H_ | 6 #define CC_RESOURCES_TILE_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | |
| 10 #include "base/memory/scoped_vector.h" | |
| 11 #include "cc/base/ref_counted_managed.h" | 9 #include "cc/base/ref_counted_managed.h" |
| 12 #include "cc/resources/managed_tile_state.h" | 10 #include "cc/resources/managed_tile_state.h" |
| 13 #include "cc/resources/picture_pile_impl.h" | 11 #include "cc/resources/picture_pile_impl.h" |
| 14 #include "cc/resources/tile_priority.h" | 12 #include "cc/resources/tile_priority.h" |
| 15 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
| 16 #include "ui/gfx/size.h" | 14 #include "ui/gfx/geometry/size.h" |
| 17 | 15 |
| 18 namespace cc { | 16 namespace cc { |
| 19 | 17 |
| 20 class CC_EXPORT Tile : public RefCountedManaged<Tile> { | 18 class CC_EXPORT Tile : public RefCountedManaged<Tile> { |
| 21 public: | 19 public: |
| 22 enum TileRasterFlags { USE_PICTURE_ANALYSIS = 1 << 0 }; | 20 enum TileRasterFlags { USE_PICTURE_ANALYSIS = 1 << 0 }; |
| 23 | 21 |
| 24 typedef uint64 Id; | 22 typedef uint64 Id; |
| 25 | 23 |
| 26 Id id() const { | 24 Id id() const { |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 181 |
| 184 Id id_; | 182 Id id_; |
| 185 static Id s_next_id_; | 183 static Id s_next_id_; |
| 186 | 184 |
| 187 DISALLOW_COPY_AND_ASSIGN(Tile); | 185 DISALLOW_COPY_AND_ASSIGN(Tile); |
| 188 }; | 186 }; |
| 189 | 187 |
| 190 } // namespace cc | 188 } // namespace cc |
| 191 | 189 |
| 192 #endif // CC_RESOURCES_TILE_H_ | 190 #endif // CC_RESOURCES_TILE_H_ |
| OLD | NEW |