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

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

Issue 666273002: cc: Added raster source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « cc/resources/one_copy_raster_worker_pool.cc ('k') | cc/resources/picture_layer_tiling.cc » ('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 <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 20 matching lines...) Expand all
31 class PictureLayerTiling; 31 class PictureLayerTiling;
32 class PicturePileImpl; 32 class PicturePileImpl;
33 33
34 class CC_EXPORT PictureLayerTilingClient { 34 class CC_EXPORT PictureLayerTilingClient {
35 public: 35 public:
36 // Create a tile at the given content_rect (in the contents scale of the 36 // Create a tile at the given content_rect (in the contents scale of the
37 // tiling) This might return null if the client cannot create such a tile. 37 // tiling) This might return null if the client cannot create such a tile.
38 virtual scoped_refptr<Tile> CreateTile( 38 virtual scoped_refptr<Tile> CreateTile(
39 PictureLayerTiling* tiling, 39 PictureLayerTiling* tiling,
40 const gfx::Rect& content_rect) = 0; 40 const gfx::Rect& content_rect) = 0;
41 virtual PicturePileImpl* GetPile() = 0; 41 virtual RasterSource* GetRasterSource() = 0;
42 virtual gfx::Size CalculateTileSize( 42 virtual gfx::Size CalculateTileSize(
43 const gfx::Size& content_bounds) const = 0; 43 const gfx::Size& content_bounds) const = 0;
44 // This invalidation region defines the area (if any, it can by null) that 44 // This invalidation region defines the area (if any, it can by null) that
45 // tiles can not be shared between pending and active trees. 45 // tiles can not be shared between pending and active trees.
46 virtual const Region* GetPendingInvalidation() = 0; 46 virtual const Region* GetPendingInvalidation() = 0;
47 virtual const PictureLayerTiling* GetPendingOrActiveTwinTiling( 47 virtual const PictureLayerTiling* GetPendingOrActiveTwinTiling(
48 const PictureLayerTiling* tiling) const = 0; 48 const PictureLayerTiling* tiling) const = 0;
49 virtual PictureLayerTiling* GetRecycledTwinTiling( 49 virtual PictureLayerTiling* GetRecycledTwinTiling(
50 const PictureLayerTiling* tiling) = 0; 50 const PictureLayerTiling* tiling) = 0;
51 virtual size_t GetMaxTilesForInterestArea() const = 0; 51 virtual size_t GetMaxTilesForInterestArea() const = 0;
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 379
380 private: 380 private:
381 DISALLOW_ASSIGN(PictureLayerTiling); 381 DISALLOW_ASSIGN(PictureLayerTiling);
382 382
383 RectExpansionCache expansion_cache_; 383 RectExpansionCache expansion_cache_;
384 }; 384 };
385 385
386 } // namespace cc 386 } // namespace cc
387 387
388 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ 388 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_
OLDNEW
« no previous file with comments | « cc/resources/one_copy_raster_worker_pool.cc ('k') | cc/resources/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698