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

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

Issue 1132443003: cc: Move raster_source from Tile to PrioritizedTile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename var Created 5 years, 7 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/layer_impl.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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 float MinimumContentsScale() const; 117 float MinimumContentsScale() const;
118 float MaximumContentsScale() const; 118 float MaximumContentsScale() const;
119 void ResetRasterScale(); 119 void ResetRasterScale();
120 void UpdateViewportRectForTilePriorityInContentSpace(); 120 void UpdateViewportRectForTilePriorityInContentSpace();
121 PictureLayerImpl* GetRecycledTwinLayer() const; 121 PictureLayerImpl* GetRecycledTwinLayer() const;
122 122
123 void SanityCheckTilingState() const; 123 void SanityCheckTilingState() const;
124 bool ShouldAdjustRasterScaleDuringScaleAnimations() const; 124 bool ShouldAdjustRasterScaleDuringScaleAnimations() const;
125 125
126 void GetDebugBorderProperties(SkColor* color, float* width) const override; 126 void GetDebugBorderProperties(SkColor* color, float* width) const override;
127 void GetAllTilesAndPrioritiesForTracing( 127 void GetAllPrioritizedTilesForTracing(
128 std::map<const Tile*, TilePriority>* tile_map) const override; 128 std::vector<PrioritizedTile>* prioritized_tiles) const override;
129 void AsValueInto(base::trace_event::TracedValue* dict) const override; 129 void AsValueInto(base::trace_event::TracedValue* dict) const override;
130 130
131 virtual void UpdateIdealScales(); 131 virtual void UpdateIdealScales();
132 float MaximumTilingContentsScale() const; 132 float MaximumTilingContentsScale() const;
133 scoped_ptr<PictureLayerTilingSet> CreatePictureLayerTilingSet(); 133 scoped_ptr<PictureLayerTilingSet> CreatePictureLayerTilingSet();
134 134
135 PictureLayerImpl* twin_layer_; 135 PictureLayerImpl* twin_layer_;
136 136
137 scoped_ptr<PictureLayerTilingSet> tilings_; 137 scoped_ptr<PictureLayerTilingSet> tilings_;
138 scoped_refptr<RasterSource> raster_source_; 138 scoped_refptr<RasterSource> raster_source_;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 // of comparing pointers, since objects pointed to are not guaranteed to 173 // of comparing pointers, since objects pointed to are not guaranteed to
174 // exist. 174 // exist.
175 std::vector<PictureLayerTiling*> last_append_quads_tilings_; 175 std::vector<PictureLayerTiling*> last_append_quads_tilings_;
176 176
177 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 177 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
178 }; 178 };
179 179
180 } // namespace cc 180 } // namespace cc
181 181
182 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 182 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698