| 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" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 return managed_state_.tile_versions[mode]; | 104 return managed_state_.tile_versions[mode]; |
| 105 } | 105 } |
| 106 | 106 |
| 107 gfx::Size size() const { return tile_size_.size(); } | 107 gfx::Size size() const { return tile_size_.size(); } |
| 108 | 108 |
| 109 private: | 109 private: |
| 110 friend class TileManager; | 110 friend class TileManager; |
| 111 friend class PrioritizedTileSet; | 111 friend class PrioritizedTileSet; |
| 112 friend class FakeTileManager; | 112 friend class FakeTileManager; |
| 113 friend class BinComparator; | 113 friend class BinComparator; |
| 114 friend class GpuRasterizer; |
| 114 | 115 |
| 115 // Methods called by by tile manager. | 116 // Methods called by by tile manager. |
| 116 Tile(TileManager* tile_manager, | 117 Tile(TileManager* tile_manager, |
| 117 PicturePileImpl* picture_pile, | 118 PicturePileImpl* picture_pile, |
| 118 gfx::Size tile_size, | 119 gfx::Size tile_size, |
| 119 gfx::Rect content_rect, | 120 gfx::Rect content_rect, |
| 120 gfx::Rect opaque_rect, | 121 gfx::Rect opaque_rect, |
| 121 float contents_scale, | 122 float contents_scale, |
| 122 int layer_id, | 123 int layer_id, |
| 123 int source_frame_number, | 124 int source_frame_number, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 142 | 143 |
| 143 Id id_; | 144 Id id_; |
| 144 static Id s_next_id_; | 145 static Id s_next_id_; |
| 145 | 146 |
| 146 DISALLOW_COPY_AND_ASSIGN(Tile); | 147 DISALLOW_COPY_AND_ASSIGN(Tile); |
| 147 }; | 148 }; |
| 148 | 149 |
| 149 } // namespace cc | 150 } // namespace cc |
| 150 | 151 |
| 151 #endif // CC_RESOURCES_TILE_H_ | 152 #endif // CC_RESOURCES_TILE_H_ |
| OLD | NEW |