| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |