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

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

Issue 503953003: wip: not for commit (update twin relationship) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 float contents_scale, 172 float contents_scale,
173 const gfx::Rect& rect, 173 const gfx::Rect& rect,
174 const Region& missing_region) const; 174 const Region& missing_region) const;
175 gfx::Rect GetViewportForTilePriorityInContentSpace() const; 175 gfx::Rect GetViewportForTilePriorityInContentSpace() const;
176 176
177 void DoPostCommitInitializationIfNeeded() { 177 void DoPostCommitInitializationIfNeeded() {
178 if (needs_post_commit_initialization_) 178 if (needs_post_commit_initialization_)
179 DoPostCommitInitialization(); 179 DoPostCommitInitialization();
180 } 180 }
181 void DoPostCommitInitialization(); 181 void DoPostCommitInitialization();
182 void UpdateTwinRelationship();
182 183
183 bool CanHaveTilings() const; 184 bool CanHaveTilings() const;
184 bool CanHaveTilingWithScale(float contents_scale) const; 185 bool CanHaveTilingWithScale(float contents_scale) const;
185 void SanityCheckTilingState() const; 186 void SanityCheckTilingState() const;
186 187
187 bool ShouldAdjustRasterScaleDuringScaleAnimations() const; 188 bool ShouldAdjustRasterScaleDuringScaleAnimations() const;
188 189
189 virtual void GetDebugBorderProperties( 190 virtual void GetDebugBorderProperties(
190 SkColor* color, float* width) const OVERRIDE; 191 SkColor* color, float* width) const OVERRIDE;
191 virtual void AsValueInto(base::debug::TracedValue* dict) const OVERRIDE; 192 virtual void AsValueInto(base::debug::TracedValue* dict) const OVERRIDE;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 gfx::Rect viewport_rect_for_tile_priority_; 226 gfx::Rect viewport_rect_for_tile_priority_;
226 gfx::Transform screen_space_transform_for_tile_priority_; 227 gfx::Transform screen_space_transform_for_tile_priority_;
227 228
228 friend class PictureLayer; 229 friend class PictureLayer;
229 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 230 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
230 }; 231 };
231 232
232 } // namespace cc 233 } // namespace cc
233 234
234 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 235 #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