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

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

Issue 820703002: c:: Give the raster source to the PictureLayerTilings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rastersource: . Created 6 years 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
« no previous file with comments | « cc/resources/picture_layer_tiling_perftest.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 <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 const PictureLayerTilingClient* client() const { return client_; } 48 const PictureLayerTilingClient* client() const { return client_; }
49 49
50 void CleanUpTilings(float min_acceptable_high_res_scale, 50 void CleanUpTilings(float min_acceptable_high_res_scale,
51 float max_acceptable_high_res_scale, 51 float max_acceptable_high_res_scale,
52 const std::vector<PictureLayerTiling*>& needed_tilings, 52 const std::vector<PictureLayerTiling*>& needed_tilings,
53 bool should_have_low_res, 53 bool should_have_low_res,
54 PictureLayerTilingSet* twin_set, 54 PictureLayerTilingSet* twin_set,
55 PictureLayerTilingSet* recycled_twin_set); 55 PictureLayerTilingSet* recycled_twin_set);
56 void RemoveNonIdealTilings(); 56 void RemoveNonIdealTilings();
57 57
58 void UpdateTilingsToCurrentRasterSource(RasterSource* raster_source, 58 void UpdateTilingsToCurrentRasterSource(
59 const PictureLayerTilingSet* twin_set, 59 scoped_refptr<RasterSource> raster_source,
60 const Region& layer_invalidation, 60 const PictureLayerTilingSet* twin_set,
61 float minimum_contents_scale, 61 const Region& layer_invalidation,
62 float maximum_contents_scale); 62 float minimum_contents_scale,
63 float maximum_contents_scale);
63 64
64 PictureLayerTiling* AddTiling(float contents_scale, 65 PictureLayerTiling* AddTiling(float contents_scale,
65 const gfx::Size& layer_bounds); 66 scoped_refptr<RasterSource> raster_source);
66 size_t num_tilings() const { return tilings_.size(); } 67 size_t num_tilings() const { return tilings_.size(); }
67 int NumHighResTilings() const; 68 int NumHighResTilings() const;
68 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; } 69 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; }
69 const PictureLayerTiling* tiling_at(size_t idx) const { 70 const PictureLayerTiling* tiling_at(size_t idx) const {
70 return tilings_[idx]; 71 return tilings_[idx];
71 } 72 }
72 73
73 PictureLayerTiling* FindTilingWithScale(float scale) const; 74 PictureLayerTiling* FindTilingWithScale(float scale) const;
74 PictureLayerTiling* FindTilingWithResolution(TileResolution resolution) const; 75 PictureLayerTiling* FindTilingWithResolution(TileResolution resolution) const;
75 76
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 const int skewport_extrapolation_limit_in_content_pixels_; 175 const int skewport_extrapolation_limit_in_content_pixels_;
175 PictureLayerTilingClient* client_; 176 PictureLayerTilingClient* client_;
176 177
177 friend class Iterator; 178 friend class Iterator;
178 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); 179 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet);
179 }; 180 };
180 181
181 } // namespace cc 182 } // namespace cc
182 183
183 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ 184 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_perftest.cc ('k') | cc/resources/picture_layer_tiling_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698