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

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: More clean-ups. Created 6 years, 1 month 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 Occlusion(gfx::Transform(), 198 Occlusion(gfx::Transform(),
199 SimpleEnclosedRegion(viewport_in_layer_space), 199 SimpleEnclosedRegion(viewport_in_layer_space),
200 SimpleEnclosedRegion(viewport_in_layer_space)); 200 SimpleEnclosedRegion(viewport_in_layer_space));
201 } 201 }
202 202
203 const gfx::Rect& GetCurrentVisibleRectForTesting() const { 203 const gfx::Rect& GetCurrentVisibleRectForTesting() const {
204 return current_visible_rect_; 204 return current_visible_rect_;
205 } 205 }
206 206
207 bool IsTileOccluded(const Tile* tile) const; 207 bool IsTileOccluded(const Tile* tile) const;
208 bool IsTileRequiredForActivation(const Tile* tile) const; 208 bool IsTileRequiredForActivationIfVisible(const Tile* tile) const;
209 bool IsTileRequiredForDrawIfVisible(const Tile* tile) const;
209 210
210 // Iterate over all tiles to fill content_rect. Even if tiles are invalid 211 // Iterate over all tiles to fill content_rect. Even if tiles are invalid
211 // (i.e. no valid resource) this tiling should still iterate over them. 212 // (i.e. no valid resource) this tiling should still iterate over them.
212 // The union of all geometry_rect calls for each element iterated over should 213 // The union of all geometry_rect calls for each element iterated over should
213 // exactly equal content_rect and no two geometry_rects should intersect. 214 // exactly equal content_rect and no two geometry_rects should intersect.
214 class CC_EXPORT CoverageIterator { 215 class CC_EXPORT CoverageIterator {
215 public: 216 public:
216 CoverageIterator(); 217 CoverageIterator();
217 CoverageIterator(const PictureLayerTiling* tiling, 218 CoverageIterator(const PictureLayerTiling* tiling,
218 float dest_scale, 219 float dest_scale,
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 380
380 private: 381 private:
381 DISALLOW_ASSIGN(PictureLayerTiling); 382 DISALLOW_ASSIGN(PictureLayerTiling);
382 383
383 RectExpansionCache expansion_cache_; 384 RectExpansionCache expansion_cache_;
384 }; 385 };
385 386
386 } // namespace cc 387 } // namespace cc
387 388
388 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ 389 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698