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

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

Issue 672283003: cc: ReadyToDraw notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 SimpleEnclosedRegion(viewport_in_layer_space), 197 SimpleEnclosedRegion(viewport_in_layer_space),
198 SimpleEnclosedRegion(viewport_in_layer_space)); 198 SimpleEnclosedRegion(viewport_in_layer_space));
199 } 199 }
200 200
201 const gfx::Rect& GetCurrentVisibleRectForTesting() const { 201 const gfx::Rect& GetCurrentVisibleRectForTesting() const {
202 return current_visible_rect_; 202 return current_visible_rect_;
203 } 203 }
204 204
205 bool IsTileOccluded(const Tile* tile) const; 205 bool IsTileOccluded(const Tile* tile) const;
206 bool IsTileRequiredForActivation(const Tile* tile) const; 206 bool IsTileRequiredForActivation(const Tile* tile) const;
207 bool IsTileRequiredForDraw(const Tile* tile) const;
207 208
208 // Iterate over all tiles to fill content_rect. Even if tiles are invalid 209 // Iterate over all tiles to fill content_rect. Even if tiles are invalid
209 // (i.e. no valid resource) this tiling should still iterate over them. 210 // (i.e. no valid resource) this tiling should still iterate over them.
210 // The union of all geometry_rect calls for each element iterated over should 211 // The union of all geometry_rect calls for each element iterated over should
211 // exactly equal content_rect and no two geometry_rects should intersect. 212 // exactly equal content_rect and no two geometry_rects should intersect.
212 class CC_EXPORT CoverageIterator { 213 class CC_EXPORT CoverageIterator {
213 public: 214 public:
214 CoverageIterator(); 215 CoverageIterator();
215 CoverageIterator(const PictureLayerTiling* tiling, 216 CoverageIterator(const PictureLayerTiling* tiling,
216 float dest_scale, 217 float dest_scale,
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 374
374 private: 375 private:
375 DISALLOW_ASSIGN(PictureLayerTiling); 376 DISALLOW_ASSIGN(PictureLayerTiling);
376 377
377 RectExpansionCache expansion_cache_; 378 RectExpansionCache expansion_cache_;
378 }; 379 };
379 380
380 } // namespace cc 381 } // namespace cc
381 382
382 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ 383 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698