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

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

Issue 548223003: cc: Block drawing of tiles without twins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 gfx::Rect ExpandRectEquallyToAreaBoundedBy( 275 gfx::Rect ExpandRectEquallyToAreaBoundedBy(
276 const gfx::Rect& starting_rect, 276 const gfx::Rect& starting_rect,
277 int64 target_area, 277 int64 target_area,
278 const gfx::Rect& bounding_rect, 278 const gfx::Rect& bounding_rect,
279 RectExpansionCache* cache); 279 RectExpansionCache* cache);
280 280
281 bool has_ever_been_updated() const { 281 bool has_ever_been_updated() const {
282 return last_impl_frame_time_in_seconds_ != 0.0; 282 return last_impl_frame_time_in_seconds_ != 0.0;
283 } 283 }
284 284
285 int tiles_size() const;
286
285 protected: 287 protected:
286 friend class CoverageIterator; 288 friend class CoverageIterator;
287 friend class TilingRasterTileIterator; 289 friend class TilingRasterTileIterator;
288 friend class TilingEvictionTileIterator; 290 friend class TilingEvictionTileIterator;
289 291
290 typedef std::pair<int, int> TileMapKey; 292 typedef std::pair<int, int> TileMapKey;
291 typedef base::hash_map<TileMapKey, scoped_refptr<Tile> > TileMap; 293 typedef base::hash_map<TileMapKey, scoped_refptr<Tile> > TileMap;
292 294
293 PictureLayerTiling(float contents_scale, 295 PictureLayerTiling(float contents_scale,
294 const gfx::Size& layer_bounds, 296 const gfx::Size& layer_bounds,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 356
355 private: 357 private:
356 DISALLOW_ASSIGN(PictureLayerTiling); 358 DISALLOW_ASSIGN(PictureLayerTiling);
357 359
358 RectExpansionCache expansion_cache_; 360 RectExpansionCache expansion_cache_;
359 }; 361 };
360 362
361 } // namespace cc 363 } // namespace cc
362 364
363 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ 365 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698