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

Side by Side Diff: cc/picture_layer_tiling.h

Issue 12086018: GTTF: Add missing virtual destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 10 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 | Annotate | Revision Log
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_PICTURE_LAYER_TILING_H_ 5 #ifndef CC_PICTURE_LAYER_TILING_H_
6 #define CC_PICTURE_LAYER_TILING_H_ 6 #define CC_PICTURE_LAYER_TILING_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "cc/cc_export.h" 11 #include "cc/cc_export.h"
12 #include "cc/hash_pair.h" 12 #include "cc/hash_pair.h"
13 #include "cc/region.h" 13 #include "cc/region.h"
14 #include "cc/tile.h" 14 #include "cc/tile.h"
15 #include "cc/tile_priority.h" 15 #include "cc/tile_priority.h"
16 #include "cc/tiling_data.h" 16 #include "cc/tiling_data.h"
17 #include "ui/gfx/rect.h" 17 #include "ui/gfx/rect.h"
18 18
19 namespace cc { 19 namespace cc {
20 20
21 class PictureLayerTiling; 21 class PictureLayerTiling;
22 22
23 class PictureLayerTilingClient { 23 class PictureLayerTilingClient {
24 public: 24 public:
25 // Create a tile at the given content_rect (in the contents scale of the 25 // Create a tile at the given content_rect (in the contents scale of the
26 // tiling) This might return null if the client cannot create such a tile. 26 // tiling) This might return null if the client cannot create such a tile.
27 virtual scoped_refptr<Tile> CreateTile( 27 virtual scoped_refptr<Tile> CreateTile(
28 PictureLayerTiling* tiling, 28 PictureLayerTiling* tiling,
29 gfx::Rect content_rect) = 0; 29 gfx::Rect content_rect) = 0;
30 virtual void UpdatePile(Tile* tile) = 0; 30 virtual void UpdatePile(Tile* tile) = 0;
31
32 protected:
33 virtual ~PictureLayerTilingClient() { }
31 }; 34 };
32 35
33 class CC_EXPORT PictureLayerTiling { 36 class CC_EXPORT PictureLayerTiling {
34 public: 37 public:
35 ~PictureLayerTiling(); 38 ~PictureLayerTiling();
36 39
37 // Create a tiling with no tiles. CreateTiles must be called to add some. 40 // Create a tiling with no tiles. CreateTiles must be called to add some.
38 static scoped_ptr<PictureLayerTiling> Create(float contents_scale, 41 static scoped_ptr<PictureLayerTiling> Create(float contents_scale,
39 gfx::Size tile_size); 42 gfx::Size tile_size);
40 scoped_ptr<PictureLayerTiling> Clone() const; 43 scoped_ptr<PictureLayerTiling> Clone() const;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 TileMap tiles_; 134 TileMap tiles_;
132 TilingData tiling_data_; 135 TilingData tiling_data_;
133 TileResolution resolution_; 136 TileResolution resolution_;
134 137
135 friend class Iterator; 138 friend class Iterator;
136 }; 139 };
137 140
138 } // namespace cc 141 } // namespace cc
139 142
140 #endif // CC_PICTURE_LAYER_TILING_H_ 143 #endif // CC_PICTURE_LAYER_TILING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698