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

Side by Side Diff: cc/layers/picture_layer_impl.h

Issue 566023004: cc: Stop using contents_scale_x() in PictureLayerImpl since it's 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contentscale: . Created 6 years, 3 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 | « no previous file | cc/layers/picture_layer_impl.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_LAYERS_PICTURE_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_PICTURE_LAYER_IMPL_H_
6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_ 6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 virtual void RecalculateRasterScales(); 165 virtual void RecalculateRasterScales();
166 void CleanUpTilingsOnActiveLayer( 166 void CleanUpTilingsOnActiveLayer(
167 std::vector<PictureLayerTiling*> used_tilings); 167 std::vector<PictureLayerTiling*> used_tilings);
168 float MinimumContentsScale() const; 168 float MinimumContentsScale() const;
169 float SnappedContentsScale(float new_contents_scale); 169 float SnappedContentsScale(float new_contents_scale);
170 void ResetRasterScale(); 170 void ResetRasterScale();
171 void MarkVisibleResourcesAsRequired() const; 171 void MarkVisibleResourcesAsRequired() const;
172 bool MarkVisibleTilesAsRequired( 172 bool MarkVisibleTilesAsRequired(
173 PictureLayerTiling* tiling, 173 PictureLayerTiling* tiling,
174 const PictureLayerTiling* optional_twin_tiling, 174 const PictureLayerTiling* optional_twin_tiling,
175 float contents_scale,
176 const gfx::Rect& rect, 175 const gfx::Rect& rect,
177 const Region& missing_region) const; 176 const Region& missing_region) const;
178 gfx::Rect GetViewportForTilePriorityInContentSpace() const; 177 gfx::Rect GetViewportForTilePriorityInContentSpace() const;
179 PictureLayerImpl* GetRecycledTwinLayer(); 178 PictureLayerImpl* GetRecycledTwinLayer();
180 179
181 void DoPostCommitInitializationIfNeeded() { 180 void DoPostCommitInitializationIfNeeded() {
182 if (needs_post_commit_initialization_) 181 if (needs_post_commit_initialization_)
183 DoPostCommitInitialization(); 182 DoPostCommitInitialization();
184 } 183 }
185 void DoPostCommitInitialization(); 184 void DoPostCommitInitialization();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 gfx::Rect viewport_rect_for_tile_priority_; 228 gfx::Rect viewport_rect_for_tile_priority_;
230 gfx::Transform screen_space_transform_for_tile_priority_; 229 gfx::Transform screen_space_transform_for_tile_priority_;
231 230
232 friend class PictureLayer; 231 friend class PictureLayer;
233 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 232 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
234 }; 233 };
235 234
236 } // namespace cc 235 } // namespace cc
237 236
238 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 237 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698