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

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: 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 Occlusion(gfx::Transform(), 196 Occlusion(gfx::Transform(),
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 IsTileRequiredForActivationIfVisible(const Tile* tile) const;
207 bool IsTileRequiredForDrawIfVisible(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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 378
378 private: 379 private:
379 DISALLOW_ASSIGN(PictureLayerTiling); 380 DISALLOW_ASSIGN(PictureLayerTiling);
380 381
381 RectExpansionCache expansion_cache_; 382 RectExpansionCache expansion_cache_;
382 }; 383 };
383 384
384 } // namespace cc 385 } // namespace cc
385 386
386 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ 387 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698