| 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_PICTURE_LAYER_TILING_SET_H_ | 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ |
| 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ | 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ |
| 7 | 7 |
| 8 #include "cc/base/region.h" | 8 #include "cc/base/region.h" |
| 9 #include "cc/base/scoped_ptr_vector.h" | 9 #include "cc/base/scoped_ptr_vector.h" |
| 10 #include "cc/resources/picture_layer_tiling.h" | 10 #include "cc/resources/picture_layer_tiling.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // regardless of the relative contents scale of the tiling. | 88 // regardless of the relative contents scale of the tiling. |
| 89 gfx::Rect geometry_rect() const; | 89 gfx::Rect geometry_rect() const; |
| 90 // Texture rect (in texels) for geometry_rect | 90 // Texture rect (in texels) for geometry_rect |
| 91 gfx::RectF texture_rect() const; | 91 gfx::RectF texture_rect() const; |
| 92 // Texture size in texels | 92 // Texture size in texels |
| 93 gfx::Size texture_size() const; | 93 gfx::Size texture_size() const; |
| 94 | 94 |
| 95 Tile* operator->() const; | 95 Tile* operator->() const; |
| 96 Tile* operator*() const; | 96 Tile* operator*() const; |
| 97 | 97 |
| 98 TilePriority priority(); | |
| 99 | |
| 100 CoverageIterator& operator++(); | 98 CoverageIterator& operator++(); |
| 101 operator bool() const; | 99 operator bool() const; |
| 102 | 100 |
| 103 PictureLayerTiling* CurrentTiling(); | 101 PictureLayerTiling* CurrentTiling(); |
| 104 | 102 |
| 105 private: | 103 private: |
| 106 int NextTiling() const; | 104 int NextTiling() const; |
| 107 | 105 |
| 108 const PictureLayerTilingSet* set_; | 106 const PictureLayerTilingSet* set_; |
| 109 float contents_scale_; | 107 float contents_scale_; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 125 gfx::Size layer_bounds_; | 123 gfx::Size layer_bounds_; |
| 126 ScopedPtrVector<PictureLayerTiling> tilings_; | 124 ScopedPtrVector<PictureLayerTiling> tilings_; |
| 127 | 125 |
| 128 friend class Iterator; | 126 friend class Iterator; |
| 129 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); | 127 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); |
| 130 }; | 128 }; |
| 131 | 129 |
| 132 } // namespace cc | 130 } // namespace cc |
| 133 | 131 |
| 134 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ | 132 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ |
| OLD | NEW |