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

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

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/layers/picture_layer.cc ('k') | 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 void UpdateTilePriorities(const Occlusion& occlusion_in_content_space); 162 void UpdateTilePriorities(const Occlusion& occlusion_in_content_space);
163 virtual bool ShouldAdjustRasterScale() const; 163 virtual bool ShouldAdjustRasterScale() const;
164 virtual void RecalculateRasterScales(); 164 virtual void RecalculateRasterScales();
165 void CleanUpTilingsOnActiveLayer( 165 void CleanUpTilingsOnActiveLayer(
166 std::vector<PictureLayerTiling*> used_tilings); 166 std::vector<PictureLayerTiling*> used_tilings);
167 float MinimumContentsScale() const; 167 float MinimumContentsScale() const;
168 float SnappedContentsScale(float new_contents_scale); 168 float SnappedContentsScale(float new_contents_scale);
169 void ResetRasterScale(); 169 void ResetRasterScale();
170 gfx::Rect GetViewportForTilePriorityInContentSpace() const; 170 gfx::Rect GetViewportForTilePriorityInContentSpace() const;
171 PictureLayerImpl* GetRecycledTwinLayer() const; 171 PictureLayerImpl* GetRecycledTwinLayer() const;
172 void UpdatePile(scoped_refptr<PicturePileImpl> pile);
172 173
173 void DoPostCommitInitializationIfNeeded() { 174 void DoPostCommitInitializationIfNeeded() {
174 if (needs_post_commit_initialization_) 175 if (needs_post_commit_initialization_)
175 DoPostCommitInitialization(); 176 DoPostCommitInitialization();
176 } 177 }
177 void DoPostCommitInitialization(); 178 void DoPostCommitInitialization();
178 179
179 bool CanHaveTilings() const; 180 bool CanHaveTilings() const;
180 bool CanHaveTilingWithScale(float contents_scale) const; 181 bool CanHaveTilingWithScale(float contents_scale) const;
181 void SanityCheckTilingState() const; 182 void SanityCheckTilingState() const;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // frame that has a valid viewport for prioritizing tiles. 223 // frame that has a valid viewport for prioritizing tiles.
223 gfx::Rect visible_rect_for_tile_priority_; 224 gfx::Rect visible_rect_for_tile_priority_;
224 225
225 friend class PictureLayer; 226 friend class PictureLayer;
226 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 227 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
227 }; 228 };
228 229
229 } // namespace cc 230 } // namespace cc
230 231
231 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 232 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698