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_PICTURE_LAYER_IMPL_H_ | 5 #ifndef CC_PICTURE_LAYER_IMPL_H_ |
6 #define CC_PICTURE_LAYER_IMPL_H_ | 6 #define CC_PICTURE_LAYER_IMPL_H_ |
7 | 7 |
8 #include "cc/layer_impl.h" | 8 #include "cc/layer_impl.h" |
9 #include "cc/picture_layer_tiling.h" | 9 #include "cc/picture_layer_tiling.h" |
10 #include "cc/picture_layer_tiling_set.h" | 10 #include "cc/picture_layer_tiling_set.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 virtual bool areVisibleResourcesReady() const OVERRIDE; | 69 virtual bool areVisibleResourcesReady() const OVERRIDE; |
70 | 70 |
71 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; | 71 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; |
72 | 72 |
73 protected: | 73 protected: |
74 PictureLayerImpl(LayerTreeImpl* treeImpl, int id); | 74 PictureLayerImpl(LayerTreeImpl* treeImpl, int id); |
75 PictureLayerTiling* AddTiling(float contents_scale); | 75 PictureLayerTiling* AddTiling(float contents_scale); |
76 void RemoveTiling(float contents_scale); | 76 void RemoveTiling(float contents_scale); |
77 void SyncFromActiveLayer(const PictureLayerImpl* other); | 77 void SyncFromActiveLayer(const PictureLayerImpl* other); |
78 void ManageTilings(bool animating_transform_to_screen); | 78 void ManageTilings(bool animating_transform_to_screen); |
| 79 virtual void CalculateRasterContentsScale( |
| 80 bool animating_transform_to_screen, |
| 81 float* raster_contents_scale, |
| 82 float* low_res_raster_contents_scale); |
79 void CleanUpTilingsOnActiveLayer( | 83 void CleanUpTilingsOnActiveLayer( |
80 std::vector<PictureLayerTiling*> used_tilings); | 84 std::vector<PictureLayerTiling*> used_tilings); |
81 PictureLayerImpl* PendingTwin() const; | 85 PictureLayerImpl* PendingTwin() const; |
82 PictureLayerImpl* ActiveTwin() const; | 86 PictureLayerImpl* ActiveTwin() const; |
83 | 87 |
84 virtual void getDebugBorderProperties( | 88 virtual void getDebugBorderProperties( |
85 SkColor* color, float* width) const OVERRIDE; | 89 SkColor* color, float* width) const OVERRIDE; |
86 | 90 |
87 scoped_ptr<PictureLayerTilingSet> tilings_; | 91 scoped_ptr<PictureLayerTilingSet> tilings_; |
88 scoped_refptr<PicturePileImpl> pile_; | 92 scoped_refptr<PicturePileImpl> pile_; |
(...skipping 15 matching lines...) Expand all Loading... |
104 float raster_source_scale_; | 108 float raster_source_scale_; |
105 bool raster_source_scale_was_animating_; | 109 bool raster_source_scale_was_animating_; |
106 | 110 |
107 friend class PictureLayer; | 111 friend class PictureLayer; |
108 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 112 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
109 }; | 113 }; |
110 | 114 |
111 } | 115 } |
112 | 116 |
113 #endif // CC_PICTURE_LAYER_IMPL_H_ | 117 #endif // CC_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |