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

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

Issue 324483003: cc: Removed LCD text settings from the impl side. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 17 matching lines...) Expand all
28 // Returns true if we had at least one high res tiling synced. 28 // Returns true if we had at least one high res tiling synced.
29 bool SyncTilings(const PictureLayerTilingSet& other, 29 bool SyncTilings(const PictureLayerTilingSet& other,
30 const gfx::Size& new_layer_bounds, 30 const gfx::Size& new_layer_bounds,
31 const Region& layer_invalidation, 31 const Region& layer_invalidation,
32 float minimum_contents_scale); 32 float minimum_contents_scale);
33 33
34 void RemoveTilesInRegion(const Region& region); 34 void RemoveTilesInRegion(const Region& region);
35 35
36 gfx::Size layer_bounds() const { return layer_bounds_; } 36 gfx::Size layer_bounds() const { return layer_bounds_; }
37 37
38 void SetCanUseLCDText(bool can_use_lcd_text);
39
40 PictureLayerTiling* AddTiling(float contents_scale); 38 PictureLayerTiling* AddTiling(float contents_scale);
41 size_t num_tilings() const { return tilings_.size(); } 39 size_t num_tilings() const { return tilings_.size(); }
42 int NumHighResTilings() const; 40 int NumHighResTilings() const;
43 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; } 41 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; }
44 const PictureLayerTiling* tiling_at(size_t idx) const { 42 const PictureLayerTiling* tiling_at(size_t idx) const {
45 return tilings_[idx]; 43 return tilings_[idx];
46 } 44 }
47 45
48 PictureLayerTiling* TilingAtScale(float scale) const; 46 PictureLayerTiling* TilingAtScale(float scale) const;
49 47
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 gfx::Size layer_bounds_; 114 gfx::Size layer_bounds_;
117 ScopedPtrVector<PictureLayerTiling> tilings_; 115 ScopedPtrVector<PictureLayerTiling> tilings_;
118 116
119 friend class Iterator; 117 friend class Iterator;
120 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); 118 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet);
121 }; 119 };
122 120
123 } // namespace cc 121 } // namespace cc
124 122
125 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ 123 #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