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

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

Issue 18581004: cc: Remove tile ref counting in tile manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ut compile fix Created 7 years, 5 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
« no previous file with comments | « cc/layers/picture_layer_impl.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 <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 11 matching lines...) Expand all
22 22
23 class PictureLayerTiling; 23 class PictureLayerTiling;
24 24
25 class CC_EXPORT PictureLayerTilingClient { 25 class CC_EXPORT PictureLayerTilingClient {
26 public: 26 public:
27 // Create a tile at the given content_rect (in the contents scale of the 27 // Create a tile at the given content_rect (in the contents scale of the
28 // tiling) This might return null if the client cannot create such a tile. 28 // tiling) This might return null if the client cannot create such a tile.
29 virtual scoped_refptr<Tile> CreateTile( 29 virtual scoped_refptr<Tile> CreateTile(
30 PictureLayerTiling* tiling, 30 PictureLayerTiling* tiling,
31 gfx::Rect content_rect) = 0; 31 gfx::Rect content_rect) = 0;
32 virtual void DestroyTile(Tile* tile) = 0;
33 virtual void UpdatePile(Tile* tile) = 0; 32 virtual void UpdatePile(Tile* tile) = 0;
34 virtual gfx::Size CalculateTileSize( 33 virtual gfx::Size CalculateTileSize(
35 gfx::Size content_bounds) const = 0; 34 gfx::Size content_bounds) const = 0;
36 virtual const Region* GetInvalidation() = 0; 35 virtual const Region* GetInvalidation() = 0;
37 virtual const PictureLayerTiling* GetTwinTiling( 36 virtual const PictureLayerTiling* GetTwinTiling(
38 const PictureLayerTiling* tiling) = 0; 37 const PictureLayerTiling* tiling) = 0;
39 38
40 protected: 39 protected:
41 virtual ~PictureLayerTilingClient() {} 40 virtual ~PictureLayerTilingClient() {}
42 }; 41 };
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 192
194 friend class CoverageIterator; 193 friend class CoverageIterator;
195 194
196 private: 195 private:
197 DISALLOW_ASSIGN(PictureLayerTiling); 196 DISALLOW_ASSIGN(PictureLayerTiling);
198 }; 197 };
199 198
200 } // namespace cc 199 } // namespace cc
201 200
202 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ 201 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/resources/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698