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

Side by Side Diff: cc/picture_layer_tiling_set.h

Issue 11706003: cc: Remove now-unused impl-side painting function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 11 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 | « no previous file | cc/picture_layer_tiling_set.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_PICTURE_LAYER_TILING_SET_H_ 5 #ifndef CC_PICTURE_LAYER_TILING_SET_H_
6 #define CC_PICTURE_LAYER_TILING_SET_H_ 6 #define CC_PICTURE_LAYER_TILING_SET_H_
7 7
8 #include "cc/picture_layer_tiling.h" 8 #include "cc/picture_layer_tiling.h"
9 #include "cc/region.h" 9 #include "cc/region.h"
10 #include "cc/scoped_ptr_vector.h" 10 #include "cc/scoped_ptr_vector.h"
11 #include "ui/gfx/size.h" 11 #include "ui/gfx/size.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 class CC_EXPORT PictureLayerTilingSet { 15 class CC_EXPORT PictureLayerTilingSet {
16 public: 16 public:
17 PictureLayerTilingSet(PictureLayerTilingClient* client); 17 PictureLayerTilingSet(PictureLayerTilingClient* client);
18 ~PictureLayerTilingSet(); 18 ~PictureLayerTilingSet();
19 19
20 // Shallow copies all data (except client and bounds from other). 20 // Shallow copies all data (except client and bounds from other).
21 void CloneAll( 21 void CloneAll(
22 const PictureLayerTilingSet& other, 22 const PictureLayerTilingSet& other,
23 const Region& invalidation); 23 const Region& invalidation);
24 void Clone(const PictureLayerTiling* tiling, const Region& invalidation); 24 void Clone(const PictureLayerTiling* tiling, const Region& invalidation);
25 25
26 // TODO(enne): Remove this once syncing happens to the pending tree.
27 void Invalidate(const Region& invalidation);
28
29 void SetLayerBounds(gfx::Size layer_bounds); 26 void SetLayerBounds(gfx::Size layer_bounds);
30 gfx::Size LayerBounds() const; 27 gfx::Size LayerBounds() const;
31 28
32 const PictureLayerTiling* AddTiling( 29 const PictureLayerTiling* AddTiling(
33 float contents_scale, 30 float contents_scale,
34 gfx::Size tile_size); 31 gfx::Size tile_size);
35 size_t num_tilings() const { return tilings_.size(); } 32 size_t num_tilings() const { return tilings_.size(); }
36 33
37 void Reset(); 34 void Reset();
38 35
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 gfx::Size layer_bounds_; 85 gfx::Size layer_bounds_;
89 ScopedPtrVector<PictureLayerTiling> tilings_; 86 ScopedPtrVector<PictureLayerTiling> tilings_;
90 Region invalidation_; 87 Region invalidation_;
91 88
92 friend class Iterator; 89 friend class Iterator;
93 }; 90 };
94 91
95 } // namespace cc 92 } // namespace cc
96 93
97 #endif // CC_PICTURE_LAYER_TILING_SET_H_ 94 #endif // CC_PICTURE_LAYER_TILING_SET_H_
OLDNEW
« no previous file with comments | « no previous file | cc/picture_layer_tiling_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698