| 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 "cc/base/ref_counted_managed.h" | 9 #include "cc/base/ref_counted_managed.h" |
| 10 #include "cc/resources/managed_tile_state.h" | 10 #include "cc/resources/managed_tile_state.h" |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 void set_tiling_index(int i, int j) { | 137 void set_tiling_index(int i, int j) { |
| 138 tiling_i_index_ = i; | 138 tiling_i_index_ = i; |
| 139 tiling_j_index_ = j; | 139 tiling_j_index_ = j; |
| 140 } | 140 } |
| 141 int tiling_i_index() const { return tiling_i_index_; } | 141 int tiling_i_index() const { return tiling_i_index_; } |
| 142 int tiling_j_index() const { return tiling_j_index_; } | 142 int tiling_j_index() const { return tiling_j_index_; } |
| 143 | 143 |
| 144 private: | 144 private: |
| 145 friend class TileManager; | 145 friend class TileManager; |
| 146 friend class GpuRasterizer; |
| 147 friend class SoftwareRasterizer; |
| 146 friend class PrioritizedTileSet; | 148 friend class PrioritizedTileSet; |
| 147 friend class FakeTileManager; | 149 friend class FakeTileManager; |
| 148 friend class BinComparator; | 150 friend class BinComparator; |
| 149 friend class FakePictureLayerImpl; | 151 friend class FakePictureLayerImpl; |
| 150 | 152 |
| 151 // Methods called by by tile manager. | 153 // Methods called by by tile manager. |
| 152 Tile(TileManager* tile_manager, | 154 Tile(TileManager* tile_manager, |
| 153 RasterSource* raster_source, | 155 RasterSource* raster_source, |
| 154 const gfx::Size& tile_size, | 156 const gfx::Size& tile_size, |
| 155 const gfx::Rect& content_rect, | 157 const gfx::Rect& content_rect, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 184 | 186 |
| 185 Id id_; | 187 Id id_; |
| 186 static Id s_next_id_; | 188 static Id s_next_id_; |
| 187 | 189 |
| 188 DISALLOW_COPY_AND_ASSIGN(Tile); | 190 DISALLOW_COPY_AND_ASSIGN(Tile); |
| 189 }; | 191 }; |
| 190 | 192 |
| 191 } // namespace cc | 193 } // namespace cc |
| 192 | 194 |
| 193 #endif // CC_RESOURCES_TILE_H_ | 195 #endif // CC_RESOURCES_TILE_H_ |
| OLD | NEW |