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

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

Issue 394113002: Tiling priorities in Android Webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better fix Created 6 years, 4 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/output/output_surface_client.h ('k') | cc/surfaces/display.h » ('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 <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 const TilingData& TilingDataForTesting() const { return tiling_data_; } 155 const TilingData& TilingDataForTesting() const { return tiling_data_; }
156 156
157 std::vector<Tile*> AllTilesForTesting() const { 157 std::vector<Tile*> AllTilesForTesting() const {
158 std::vector<Tile*> all_tiles; 158 std::vector<Tile*> all_tiles;
159 for (TileMap::const_iterator it = tiles_.begin(); 159 for (TileMap::const_iterator it = tiles_.begin();
160 it != tiles_.end(); ++it) 160 it != tiles_.end(); ++it)
161 all_tiles.push_back(it->second.get()); 161 all_tiles.push_back(it->second.get());
162 return all_tiles; 162 return all_tiles;
163 } 163 }
164 164
165 const gfx::Rect& GetCurrentVisibleRectForTesting() const {
166 return current_visible_rect_;
167 }
168
165 // Iterate over all tiles to fill content_rect. Even if tiles are invalid 169 // 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. 170 // (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 171 // 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. 172 // exactly equal content_rect and no two geometry_rects should intersect.
169 class CC_EXPORT CoverageIterator { 173 class CC_EXPORT CoverageIterator {
170 public: 174 public:
171 CoverageIterator(); 175 CoverageIterator();
172 CoverageIterator(const PictureLayerTiling* tiling, 176 CoverageIterator(const PictureLayerTiling* tiling,
173 float dest_scale, 177 float dest_scale,
174 const gfx::Rect& rect); 178 const gfx::Rect& rect);
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 325
322 private: 326 private:
323 DISALLOW_ASSIGN(PictureLayerTiling); 327 DISALLOW_ASSIGN(PictureLayerTiling);
324 328
325 RectExpansionCache expansion_cache_; 329 RectExpansionCache expansion_cache_;
326 }; 330 };
327 331
328 } // namespace cc 332 } // namespace cc
329 333
330 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ 334 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_
OLDNEW
« no previous file with comments | « cc/output/output_surface_client.h ('k') | cc/surfaces/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698