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/raster_source.h" | 10 #include "cc/resources/raster_source.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 131 |
132 void set_tiling_index(int i, int j) { | 132 void set_tiling_index(int i, int j) { |
133 tiling_i_index_ = i; | 133 tiling_i_index_ = i; |
134 tiling_j_index_ = j; | 134 tiling_j_index_ = j; |
135 } | 135 } |
136 int tiling_i_index() const { return tiling_i_index_; } | 136 int tiling_i_index() const { return tiling_i_index_; } |
137 int tiling_j_index() const { return tiling_j_index_; } | 137 int tiling_j_index() const { return tiling_j_index_; } |
138 | 138 |
139 private: | 139 private: |
140 friend class TileManager; | 140 friend class TileManager; |
| 141 friend class GpuRasterizer; |
141 friend class PrioritizedTileSet; | 142 friend class PrioritizedTileSet; |
142 friend class FakeTileManager; | 143 friend class FakeTileManager; |
143 friend class BinComparator; | 144 friend class BinComparator; |
144 friend class FakePictureLayerImpl; | 145 friend class FakePictureLayerImpl; |
145 | 146 |
146 // Methods called by by tile manager. | 147 // Methods called by by tile manager. |
147 Tile(TileManager* tile_manager, | 148 Tile(TileManager* tile_manager, |
148 RasterSource* raster_source, | 149 RasterSource* raster_source, |
149 const gfx::Size& tile_size, | 150 const gfx::Size& tile_size, |
150 const gfx::Rect& content_rect, | 151 const gfx::Rect& content_rect, |
(...skipping 29 matching lines...) Expand all Loading... |
180 unsigned scheduled_priority_; | 181 unsigned scheduled_priority_; |
181 | 182 |
182 scoped_refptr<RasterTask> raster_task_; | 183 scoped_refptr<RasterTask> raster_task_; |
183 | 184 |
184 DISALLOW_COPY_AND_ASSIGN(Tile); | 185 DISALLOW_COPY_AND_ASSIGN(Tile); |
185 }; | 186 }; |
186 | 187 |
187 } // namespace cc | 188 } // namespace cc |
188 | 189 |
189 #endif // CC_RESOURCES_TILE_H_ | 190 #endif // CC_RESOURCES_TILE_H_ |
OLD | NEW |