| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 float MaximumContentsScale() const; | 125 float MaximumContentsScale() const; |
| 126 void ResetRasterScale(); | 126 void ResetRasterScale(); |
| 127 void UpdateViewportRectForTilePriorityInContentSpace(); | 127 void UpdateViewportRectForTilePriorityInContentSpace(); |
| 128 PictureLayerImpl* GetRecycledTwinLayer() const; | 128 PictureLayerImpl* GetRecycledTwinLayer() const; |
| 129 | 129 |
| 130 void SanityCheckTilingState() const; | 130 void SanityCheckTilingState() const; |
| 131 bool ShouldAdjustRasterScaleDuringScaleAnimations() const; | 131 bool ShouldAdjustRasterScaleDuringScaleAnimations() const; |
| 132 | 132 |
| 133 void GetDebugBorderProperties(SkColor* color, float* width) const override; | 133 void GetDebugBorderProperties(SkColor* color, float* width) const override; |
| 134 void GetAllTilesForTracing(std::set<const Tile*>* tiles) const override; | 134 void GetAllTilesForTracing(std::set<const Tile*>* tiles) const override; |
| 135 void AsValueInto(base::debug::TracedValue* dict) const override; | 135 void AsValueInto(base::trace_event::TracedValue* dict) const override; |
| 136 | 136 |
| 137 virtual void UpdateIdealScales(); | 137 virtual void UpdateIdealScales(); |
| 138 float MaximumTilingContentsScale() const; | 138 float MaximumTilingContentsScale() const; |
| 139 scoped_ptr<PictureLayerTilingSet> CreatePictureLayerTilingSet(); | 139 scoped_ptr<PictureLayerTilingSet> CreatePictureLayerTilingSet(); |
| 140 | 140 |
| 141 PictureLayerImpl* twin_layer_; | 141 PictureLayerImpl* twin_layer_; |
| 142 | 142 |
| 143 scoped_ptr<PictureLayerTilingSet> tilings_; | 143 scoped_ptr<PictureLayerTilingSet> tilings_; |
| 144 scoped_refptr<RasterSource> raster_source_; | 144 scoped_refptr<RasterSource> raster_source_; |
| 145 Region invalidation_; | 145 Region invalidation_; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // of comparing pointers, since objects pointed to are not guaranteed to | 177 // of comparing pointers, since objects pointed to are not guaranteed to |
| 178 // exist. | 178 // exist. |
| 179 std::vector<PictureLayerTiling*> last_append_quads_tilings_; | 179 std::vector<PictureLayerTiling*> last_append_quads_tilings_; |
| 180 | 180 |
| 181 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 181 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 182 }; | 182 }; |
| 183 | 183 |
| 184 } // namespace cc | 184 } // namespace cc |
| 185 | 185 |
| 186 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 186 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |