| 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 <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "cc/base/cc_export.h" | 12 #include "cc/base/cc_export.h" |
| 13 #include "cc/base/scoped_ptr_vector.h" | 13 #include "cc/base/scoped_ptr_vector.h" |
| 14 #include "cc/layers/layer_impl.h" | 14 #include "cc/layers/layer_impl.h" |
| 15 #include "cc/resources/picture_layer_tiling.h" | 15 #include "cc/resources/picture_layer_tiling.h" |
| 16 #include "cc/resources/picture_layer_tiling_set.h" | 16 #include "cc/resources/picture_layer_tiling_set.h" |
| 17 #include "cc/resources/picture_pile_impl.h" | 17 #include "cc/resources/picture_pile_impl.h" |
| 18 #include "cc/resources/tiling_set_eviction_queue.h" | 18 #include "cc/resources/tiling_set_eviction_queue.h" |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 float MinimumContentsScale() const; | 125 float MinimumContentsScale() const; |
| 126 float MaximumContentsScale() const; | 126 float MaximumContentsScale() const; |
| 127 void ResetRasterScale(); | 127 void ResetRasterScale(); |
| 128 void UpdateViewportRectForTilePriorityInContentSpace(); | 128 void UpdateViewportRectForTilePriorityInContentSpace(); |
| 129 PictureLayerImpl* GetRecycledTwinLayer() const; | 129 PictureLayerImpl* GetRecycledTwinLayer() const; |
| 130 | 130 |
| 131 void SanityCheckTilingState() const; | 131 void SanityCheckTilingState() const; |
| 132 bool ShouldAdjustRasterScaleDuringScaleAnimations() const; | 132 bool ShouldAdjustRasterScaleDuringScaleAnimations() const; |
| 133 | 133 |
| 134 void GetDebugBorderProperties(SkColor* color, float* width) const override; | 134 void GetDebugBorderProperties(SkColor* color, float* width) const override; |
| 135 void GetAllTilesForTracing(std::set<const Tile*>* tiles) const override; | 135 void GetAllTilesAndPrioritiesForTracing( |
| 136 std::map<const Tile*, TilePriority>* tile_map) const override; |
| 136 void AsValueInto(base::trace_event::TracedValue* dict) const override; | 137 void AsValueInto(base::trace_event::TracedValue* dict) const override; |
| 137 | 138 |
| 138 virtual void UpdateIdealScales(); | 139 virtual void UpdateIdealScales(); |
| 139 float MaximumTilingContentsScale() const; | 140 float MaximumTilingContentsScale() const; |
| 140 scoped_ptr<PictureLayerTilingSet> CreatePictureLayerTilingSet(); | 141 scoped_ptr<PictureLayerTilingSet> CreatePictureLayerTilingSet(); |
| 141 | 142 |
| 142 PictureLayerImpl* twin_layer_; | 143 PictureLayerImpl* twin_layer_; |
| 143 | 144 |
| 144 scoped_ptr<PictureLayerTilingSet> tilings_; | 145 scoped_ptr<PictureLayerTilingSet> tilings_; |
| 145 scoped_refptr<RasterSource> raster_source_; | 146 scoped_refptr<RasterSource> raster_source_; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // of comparing pointers, since objects pointed to are not guaranteed to | 179 // of comparing pointers, since objects pointed to are not guaranteed to |
| 179 // exist. | 180 // exist. |
| 180 std::vector<PictureLayerTiling*> last_append_quads_tilings_; | 181 std::vector<PictureLayerTiling*> last_append_quads_tilings_; |
| 181 | 182 |
| 182 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 183 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 183 }; | 184 }; |
| 184 | 185 |
| 185 } // namespace cc | 186 } // namespace cc |
| 186 | 187 |
| 187 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 188 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |