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

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: trybots 4 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
« no previous file with comments | « cc/picture_layer_impl.h ('k') | cc/rate_limiter.h » ('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_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"
(...skipping 13 matching lines...) Expand all
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 virtual gfx::Size CalculateTileSize( 31 virtual gfx::Size CalculateTileSize(
32 gfx::Size current_tile_size, 32 gfx::Size current_tile_size,
33 gfx::Size content_bounds) = 0; 33 gfx::Size content_bounds) = 0;
34
35 protected:
36 virtual ~PictureLayerTilingClient() { }
34 }; 37 };
35 38
36 class CC_EXPORT PictureLayerTiling { 39 class CC_EXPORT PictureLayerTiling {
37 public: 40 public:
38 ~PictureLayerTiling(); 41 ~PictureLayerTiling();
39 42
40 // Create a tiling with no tiles. CreateTiles must be called to add some. 43 // Create a tiling with no tiles. CreateTiles must be called to add some.
41 static scoped_ptr<PictureLayerTiling> Create(float contents_scale); 44 static scoped_ptr<PictureLayerTiling> Create(float contents_scale);
42 scoped_ptr<PictureLayerTiling> Clone() const; 45 scoped_ptr<PictureLayerTiling> Clone() const;
43 46
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 TileResolution resolution_; 159 TileResolution resolution_;
157 int last_source_frame_number_; 160 int last_source_frame_number_;
158 double last_impl_frame_time_; 161 double last_impl_frame_time_;
159 162
160 friend class Iterator; 163 friend class Iterator;
161 }; 164 };
162 165
163 } // namespace cc 166 } // namespace cc
164 167
165 #endif // CC_PICTURE_LAYER_TILING_H_ 168 #endif // CC_PICTURE_LAYER_TILING_H_
OLDNEW
« no previous file with comments | « cc/picture_layer_impl.h ('k') | cc/rate_limiter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698