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

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

Issue 422233008: Re-raster during scale animations for GPU-rasterized layers without text (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment 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 | Annotate | Revision Log
« 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 void DoPostCommitInitializationIfNeeded() { 176 void DoPostCommitInitializationIfNeeded() {
177 if (needs_post_commit_initialization_) 177 if (needs_post_commit_initialization_)
178 DoPostCommitInitialization(); 178 DoPostCommitInitialization();
179 } 179 }
180 void DoPostCommitInitialization(); 180 void DoPostCommitInitialization();
181 181
182 bool CanHaveTilings() const; 182 bool CanHaveTilings() const;
183 bool CanHaveTilingWithScale(float contents_scale) const; 183 bool CanHaveTilingWithScale(float contents_scale) const;
184 void SanityCheckTilingState() const; 184 void SanityCheckTilingState() const;
185 185
186 bool ShouldAdjustRasterScaleDuringScaleAnimations() const;
187
186 virtual void GetDebugBorderProperties( 188 virtual void GetDebugBorderProperties(
187 SkColor* color, float* width) const OVERRIDE; 189 SkColor* color, float* width) const OVERRIDE;
188 virtual void AsValueInto(base::debug::TracedValue* dict) const OVERRIDE; 190 virtual void AsValueInto(base::debug::TracedValue* dict) const OVERRIDE;
189 191
190 virtual void UpdateIdealScales(); 192 virtual void UpdateIdealScales();
191 float MaximumTilingContentsScale() const; 193 float MaximumTilingContentsScale() const;
192 194
193 PictureLayerImpl* twin_layer_; 195 PictureLayerImpl* twin_layer_;
194 196
195 scoped_ptr<PictureLayerTilingSet> tilings_; 197 scoped_ptr<PictureLayerTilingSet> tilings_;
(...skipping 26 matching lines...) Expand all
222 gfx::Rect viewport_rect_for_tile_priority_; 224 gfx::Rect viewport_rect_for_tile_priority_;
223 gfx::Transform screen_space_transform_for_tile_priority_; 225 gfx::Transform screen_space_transform_for_tile_priority_;
224 226
225 friend class PictureLayer; 227 friend class PictureLayer;
226 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 228 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
227 }; 229 };
228 230
229 } // namespace cc 231 } // namespace cc
230 232
231 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 233 #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