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

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

Issue 2289123005: Don't adjust raster scale differently for SW/GPU during Animation (Closed)
Patch Set: unit test Created 4 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void RecalculateRasterScales(); 106 void RecalculateRasterScales();
107 void CleanUpTilingsOnActiveLayer( 107 void CleanUpTilingsOnActiveLayer(
108 const std::vector<PictureLayerTiling*>& used_tilings); 108 const std::vector<PictureLayerTiling*>& used_tilings);
109 float MinimumContentsScale() const; 109 float MinimumContentsScale() const;
110 float MaximumContentsScale() const; 110 float MaximumContentsScale() const;
111 void ResetRasterScale(); 111 void ResetRasterScale();
112 void UpdateViewportRectForTilePriorityInContentSpace(); 112 void UpdateViewportRectForTilePriorityInContentSpace();
113 PictureLayerImpl* GetRecycledTwinLayer() const; 113 PictureLayerImpl* GetRecycledTwinLayer() const;
114 114
115 void SanityCheckTilingState() const; 115 void SanityCheckTilingState() const;
116 bool ShouldAdjustRasterScaleDuringScaleAnimations() const;
117 116
118 void GetDebugBorderProperties(SkColor* color, float* width) const override; 117 void GetDebugBorderProperties(SkColor* color, float* width) const override;
119 void GetAllPrioritizedTilesForTracing( 118 void GetAllPrioritizedTilesForTracing(
120 std::vector<PrioritizedTile>* prioritized_tiles) const override; 119 std::vector<PrioritizedTile>* prioritized_tiles) const override;
121 void AsValueInto(base::trace_event::TracedValue* dict) const override; 120 void AsValueInto(base::trace_event::TracedValue* dict) const override;
122 121
123 void UpdateIdealScales(); 122 void UpdateIdealScales();
124 float MaximumTilingContentsScale() const; 123 float MaximumTilingContentsScale() const;
125 std::unique_ptr<PictureLayerTilingSet> CreatePictureLayerTilingSet(); 124 std::unique_ptr<PictureLayerTilingSet> CreatePictureLayerTilingSet();
126 125
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // of comparing pointers, since objects pointed to are not guaranteed to 159 // of comparing pointers, since objects pointed to are not guaranteed to
161 // exist. 160 // exist.
162 std::vector<PictureLayerTiling*> last_append_quads_tilings_; 161 std::vector<PictureLayerTiling*> last_append_quads_tilings_;
163 162
164 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 163 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
165 }; 164 };
166 165
167 } // namespace cc 166 } // namespace cc
168 167
169 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 168 #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