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

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

Issue 1837263005: cc: Rename DisplayListRasterSource to just RasterSource. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « cc/tiles/picture_layer_tiling_perftest.cc ('k') | cc/tiles/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_TILES_PICTURE_LAYER_TILING_SET_H_ 5 #ifndef CC_TILES_PICTURE_LAYER_TILING_SET_H_
6 #define CC_TILES_PICTURE_LAYER_TILING_SET_H_ 6 #define CC_TILES_PICTURE_LAYER_TILING_SET_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 const PictureLayerTilingClient* client() const { return client_; } 51 const PictureLayerTilingClient* client() const { return client_; }
52 52
53 void CleanUpTilings(float min_acceptable_high_res_scale, 53 void CleanUpTilings(float min_acceptable_high_res_scale,
54 float max_acceptable_high_res_scale, 54 float max_acceptable_high_res_scale,
55 const std::vector<PictureLayerTiling*>& needed_tilings, 55 const std::vector<PictureLayerTiling*>& needed_tilings,
56 PictureLayerTilingSet* twin_set); 56 PictureLayerTilingSet* twin_set);
57 void RemoveNonIdealTilings(); 57 void RemoveNonIdealTilings();
58 58
59 // This function is called on the active tree during activation. 59 // This function is called on the active tree during activation.
60 void UpdateTilingsToCurrentRasterSourceForActivation( 60 void UpdateTilingsToCurrentRasterSourceForActivation(
61 scoped_refptr<DisplayListRasterSource> raster_source, 61 scoped_refptr<RasterSource> raster_source,
62 const PictureLayerTilingSet* pending_twin_set, 62 const PictureLayerTilingSet* pending_twin_set,
63 const Region& layer_invalidation, 63 const Region& layer_invalidation,
64 float minimum_contents_scale, 64 float minimum_contents_scale,
65 float maximum_contents_scale); 65 float maximum_contents_scale);
66 66
67 // This function is called on the sync tree during commit. 67 // This function is called on the sync tree during commit.
68 void UpdateTilingsToCurrentRasterSourceForCommit( 68 void UpdateTilingsToCurrentRasterSourceForCommit(
69 scoped_refptr<DisplayListRasterSource> raster_source, 69 scoped_refptr<RasterSource> raster_source,
70 const Region& layer_invalidation, 70 const Region& layer_invalidation,
71 float minimum_contents_scale, 71 float minimum_contents_scale,
72 float maximum_contents_scale); 72 float maximum_contents_scale);
73 73
74 // This function is called on the sync tree right after commit. 74 // This function is called on the sync tree right after commit.
75 void UpdateRasterSourceDueToLCDChange( 75 void UpdateRasterSourceDueToLCDChange(
76 scoped_refptr<DisplayListRasterSource> raster_source, 76 scoped_refptr<RasterSource> raster_source,
77 const Region& layer_invalidation); 77 const Region& layer_invalidation);
78 78
79 PictureLayerTiling* AddTiling( 79 PictureLayerTiling* AddTiling(float contents_scale,
80 float contents_scale, 80 scoped_refptr<RasterSource> raster_source);
81 scoped_refptr<DisplayListRasterSource> raster_source);
82 size_t num_tilings() const { return tilings_.size(); } 81 size_t num_tilings() const { return tilings_.size(); }
83 int NumHighResTilings() const; 82 int NumHighResTilings() const;
84 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx].get(); } 83 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx].get(); }
85 const PictureLayerTiling* tiling_at(size_t idx) const { 84 const PictureLayerTiling* tiling_at(size_t idx) const {
86 return tilings_[idx].get(); 85 return tilings_[idx].get();
87 } 86 }
88 WhichTree tree() const { return tree_; } 87 WhichTree tree() const { return tree_; }
89 88
90 PictureLayerTiling* FindTilingWithScale(float scale) const; 89 PictureLayerTiling* FindTilingWithScale(float scale) const;
91 PictureLayerTiling* FindTilingWithResolution(TileResolution resolution) const; 90 PictureLayerTiling* FindTilingWithResolution(TileResolution resolution) const;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 private: 175 private:
177 explicit PictureLayerTilingSet( 176 explicit PictureLayerTilingSet(
178 WhichTree tree, 177 WhichTree tree,
179 PictureLayerTilingClient* client, 178 PictureLayerTilingClient* client,
180 size_t tiling_interest_area_padding, 179 size_t tiling_interest_area_padding,
181 float skewport_target_time_in_seconds, 180 float skewport_target_time_in_seconds,
182 int skewport_extrapolation_limit_in_content_pixels); 181 int skewport_extrapolation_limit_in_content_pixels);
183 182
184 void CopyTilingsAndPropertiesFromPendingTwin( 183 void CopyTilingsAndPropertiesFromPendingTwin(
185 const PictureLayerTilingSet* pending_twin_set, 184 const PictureLayerTilingSet* pending_twin_set,
186 scoped_refptr<DisplayListRasterSource> raster_source, 185 scoped_refptr<RasterSource> raster_source,
187 const Region& layer_invalidation); 186 const Region& layer_invalidation);
188 187
189 // Remove one tiling. 188 // Remove one tiling.
190 void Remove(PictureLayerTiling* tiling); 189 void Remove(PictureLayerTiling* tiling);
191 void VerifyTilings(const PictureLayerTilingSet* pending_twin_set) const; 190 void VerifyTilings(const PictureLayerTilingSet* pending_twin_set) const;
192 191
193 std::vector<scoped_ptr<PictureLayerTiling>> tilings_; 192 std::vector<scoped_ptr<PictureLayerTiling>> tilings_;
194 193
195 const size_t tiling_interest_area_padding_; 194 const size_t tiling_interest_area_padding_;
196 const float skewport_target_time_in_seconds_; 195 const float skewport_target_time_in_seconds_;
197 const int skewport_extrapolation_limit_in_content_pixels_; 196 const int skewport_extrapolation_limit_in_content_pixels_;
198 WhichTree tree_; 197 WhichTree tree_;
199 PictureLayerTilingClient* client_; 198 PictureLayerTilingClient* client_;
200 199
201 friend class Iterator; 200 friend class Iterator;
202 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); 201 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet);
203 }; 202 };
204 203
205 } // namespace cc 204 } // namespace cc
206 205
207 #endif // CC_TILES_PICTURE_LAYER_TILING_SET_H_ 206 #endif // CC_TILES_PICTURE_LAYER_TILING_SET_H_
OLDNEW
« no previous file with comments | « cc/tiles/picture_layer_tiling_perftest.cc ('k') | cc/tiles/picture_layer_tiling_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698