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

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

Issue 1803863003: cc: Remove some unnecessary const scoped_refptr&. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/test/fake_video_frame_provider.h ('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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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<DisplayListRasterSource> 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 const scoped_refptr<DisplayListRasterSource>& raster_source, 76 scoped_refptr<DisplayListRasterSource> raster_source,
77 const Region& layer_invalidation); 77 const Region& layer_invalidation);
78 78
79 PictureLayerTiling* AddTiling( 79 PictureLayerTiling* AddTiling(
80 float contents_scale, 80 float contents_scale,
81 scoped_refptr<DisplayListRasterSource> raster_source); 81 scoped_refptr<DisplayListRasterSource> raster_source);
82 size_t num_tilings() const { return tilings_.size(); } 82 size_t num_tilings() const { return tilings_.size(); }
83 int NumHighResTilings() const; 83 int NumHighResTilings() const;
84 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx].get(); } 84 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx].get(); }
85 const PictureLayerTiling* tiling_at(size_t idx) const { 85 const PictureLayerTiling* tiling_at(size_t idx) const {
86 return tilings_[idx].get(); 86 return tilings_[idx].get();
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 private: 176 private:
177 explicit PictureLayerTilingSet( 177 explicit PictureLayerTilingSet(
178 WhichTree tree, 178 WhichTree tree,
179 PictureLayerTilingClient* client, 179 PictureLayerTilingClient* client,
180 size_t tiling_interest_area_padding, 180 size_t tiling_interest_area_padding,
181 float skewport_target_time_in_seconds, 181 float skewport_target_time_in_seconds,
182 int skewport_extrapolation_limit_in_content_pixels); 182 int skewport_extrapolation_limit_in_content_pixels);
183 183
184 void CopyTilingsAndPropertiesFromPendingTwin( 184 void CopyTilingsAndPropertiesFromPendingTwin(
185 const PictureLayerTilingSet* pending_twin_set, 185 const PictureLayerTilingSet* pending_twin_set,
186 const scoped_refptr<DisplayListRasterSource>& raster_source, 186 scoped_refptr<DisplayListRasterSource> raster_source,
187 const Region& layer_invalidation); 187 const Region& layer_invalidation);
188 188
189 // Remove one tiling. 189 // Remove one tiling.
190 void Remove(PictureLayerTiling* tiling); 190 void Remove(PictureLayerTiling* tiling);
191 void VerifyTilings(const PictureLayerTilingSet* pending_twin_set) const; 191 void VerifyTilings(const PictureLayerTilingSet* pending_twin_set) const;
192 192
193 std::vector<scoped_ptr<PictureLayerTiling>> tilings_; 193 std::vector<scoped_ptr<PictureLayerTiling>> tilings_;
194 194
195 const size_t tiling_interest_area_padding_; 195 const size_t tiling_interest_area_padding_;
196 const float skewport_target_time_in_seconds_; 196 const float skewport_target_time_in_seconds_;
197 const int skewport_extrapolation_limit_in_content_pixels_; 197 const int skewport_extrapolation_limit_in_content_pixels_;
198 WhichTree tree_; 198 WhichTree tree_;
199 PictureLayerTilingClient* client_; 199 PictureLayerTilingClient* client_;
200 200
201 friend class Iterator; 201 friend class Iterator;
202 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); 202 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet);
203 }; 203 };
204 204
205 } // namespace cc 205 } // namespace cc
206 206
207 #endif // CC_TILES_PICTURE_LAYER_TILING_SET_H_ 207 #endif // CC_TILES_PICTURE_LAYER_TILING_SET_H_
OLDNEW
« no previous file with comments | « cc/test/fake_video_frame_provider.h ('k') | cc/tiles/picture_layer_tiling_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698