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

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

Issue 13726013: Smart layer invalidation for LCD text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed compile error Created 7 years, 8 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/resources/picture_layer_tiling.cc ('k') | cc/resources/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_RESOURCES_PICTURE_LAYER_TILING_SET_H_ 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_
6 #define CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_
7 7
8 #include "cc/base/region.h" 8 #include "cc/base/region.h"
9 #include "cc/base/scoped_ptr_vector.h" 9 #include "cc/base/scoped_ptr_vector.h"
10 #include "cc/resources/picture_layer_tiling.h" 10 #include "cc/resources/picture_layer_tiling.h"
(...skipping 12 matching lines...) Expand all
23 void CloneAll( 23 void CloneAll(
24 const PictureLayerTilingSet& other, 24 const PictureLayerTilingSet& other,
25 const Region& invalidation, 25 const Region& invalidation,
26 float minimum_contents_scale); 26 float minimum_contents_scale);
27 void Clone(const PictureLayerTiling* tiling, const Region& invalidation); 27 void Clone(const PictureLayerTiling* tiling, const Region& invalidation);
28 28
29 void SetLayerBounds(gfx::Size layer_bounds); 29 void SetLayerBounds(gfx::Size layer_bounds);
30 gfx::Size LayerBounds() const; 30 gfx::Size LayerBounds() const;
31 31
32 void Invalidate(const Region& layer_invalidation); 32 void Invalidate(const Region& layer_invalidation);
33 void InvalidateTilesWithText();
33 34
34 PictureLayerTiling* AddTiling(float contents_scale); 35 PictureLayerTiling* AddTiling(float contents_scale);
35 size_t num_tilings() const { return tilings_.size(); } 36 size_t num_tilings() const { return tilings_.size(); }
36 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; } 37 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; }
37 const PictureLayerTiling* tiling_at(size_t idx) const { 38 const PictureLayerTiling* tiling_at(size_t idx) const {
38 return tilings_[idx]; 39 return tilings_[idx];
39 } 40 }
40 41
41 // Remove all tilings. 42 // Remove all tilings.
42 void RemoveAllTilings(); 43 void RemoveAllTilings();
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 gfx::Size layer_bounds_; 119 gfx::Size layer_bounds_;
119 ScopedPtrVector<PictureLayerTiling> tilings_; 120 ScopedPtrVector<PictureLayerTiling> tilings_;
120 121
121 friend class Iterator; 122 friend class Iterator;
122 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); 123 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet);
123 }; 124 };
124 125
125 } // namespace cc 126 } // namespace cc
126 127
127 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ 128 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling.cc ('k') | cc/resources/picture_layer_tiling_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698