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

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: fix & rebase 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 virtual ~PictureLayerTilingClient() { }
jamesr 2013/02/01 19:30:05 protected
26
25 // 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
26 // 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.
27 virtual scoped_refptr<Tile> CreateTile( 29 virtual scoped_refptr<Tile> CreateTile(
28 PictureLayerTiling* tiling, 30 PictureLayerTiling* tiling,
29 gfx::Rect content_rect) = 0; 31 gfx::Rect content_rect) = 0;
30 virtual void UpdatePile(Tile* tile) = 0; 32 virtual void UpdatePile(Tile* tile) = 0;
31 }; 33 };
32 34
33 class CC_EXPORT PictureLayerTiling { 35 class CC_EXPORT PictureLayerTiling {
34 public: 36 public:
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 TileResolution resolution_; 152 TileResolution resolution_;
151 int last_source_frame_number_; 153 int last_source_frame_number_;
152 double last_impl_frame_time_; 154 double last_impl_frame_time_;
153 155
154 friend class Iterator; 156 friend class Iterator;
155 }; 157 };
156 158
157 } // namespace cc 159 } // namespace cc
158 160
159 #endif // CC_PICTURE_LAYER_TILING_H_ 161 #endif // CC_PICTURE_LAYER_TILING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698