Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: cc/resources/picture_layer_tiling.h

Issue 1041893003: cc: Separate tiling set functionality into explicit separate functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/resources/picture_layer_tiling.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_H_ 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_H_
6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_ 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_
7 7
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } 154 }
155 const gfx::Rect& current_skewport_rect() const { 155 const gfx::Rect& current_skewport_rect() const {
156 return current_skewport_rect_; 156 return current_skewport_rect_;
157 } 157 }
158 const gfx::Rect& current_soon_border_rect() const { 158 const gfx::Rect& current_soon_border_rect() const {
159 return current_soon_border_rect_; 159 return current_soon_border_rect_;
160 } 160 }
161 const gfx::Rect& current_eventually_rect() const { 161 const gfx::Rect& current_eventually_rect() const {
162 return current_eventually_rect_; 162 return current_eventually_rect_;
163 } 163 }
164 void VerifyAllTilesHaveCurrentRasterSource() const;
164 165
165 // Iterate over all tiles to fill content_rect. Even if tiles are invalid 166 // Iterate over all tiles to fill content_rect. Even if tiles are invalid
166 // (i.e. no valid resource) this tiling should still iterate over them. 167 // (i.e. no valid resource) this tiling should still iterate over them.
167 // The union of all geometry_rect calls for each element iterated over should 168 // The union of all geometry_rect calls for each element iterated over should
168 // exactly equal content_rect and no two geometry_rects should intersect. 169 // exactly equal content_rect and no two geometry_rects should intersect.
169 class CC_EXPORT CoverageIterator { 170 class CC_EXPORT CoverageIterator {
170 public: 171 public:
171 CoverageIterator(); 172 CoverageIterator();
172 CoverageIterator(const PictureLayerTiling* tiling, 173 CoverageIterator(const PictureLayerTiling* tiling,
173 float dest_scale, 174 float dest_scale,
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 341
341 private: 342 private:
342 DISALLOW_ASSIGN(PictureLayerTiling); 343 DISALLOW_ASSIGN(PictureLayerTiling);
343 344
344 RectExpansionCache expansion_cache_; 345 RectExpansionCache expansion_cache_;
345 }; 346 };
346 347
347 } // namespace cc 348 } // namespace cc
348 349
349 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ 350 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/resources/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698