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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 virtual ResourceProvider::ResourceId contentsResourceId() const OVERRIDE; | 67 virtual ResourceProvider::ResourceId contentsResourceId() const OVERRIDE; |
68 | 68 |
69 virtual bool areVisibleResourcesReady() const OVERRIDE; | 69 virtual bool areVisibleResourcesReady() const OVERRIDE; |
70 | 70 |
71 protected: | 71 protected: |
72 PictureLayerImpl(LayerTreeImpl* treeImpl, int id); | 72 PictureLayerImpl(LayerTreeImpl* treeImpl, int id); |
73 PictureLayerTiling* AddTiling(float contents_scale); | 73 PictureLayerTiling* AddTiling(float contents_scale); |
74 void RemoveTiling(float contents_scale); | 74 void RemoveTiling(float contents_scale); |
75 void SyncFromActiveLayer(const PictureLayerImpl* other); | 75 void SyncFromActiveLayer(const PictureLayerImpl* other); |
76 void ManageTilings(bool animating_transform_to_screen); | 76 void ManageTilings(bool animating_transform_to_screen); |
| 77 virtual void CalculateRasterContentsScale( |
| 78 bool animating_transform_to_screen, |
| 79 float* raster_contents_scale, |
| 80 float* low_res_raster_contents_scale); |
77 void CleanUpTilingsOnActiveLayer( | 81 void CleanUpTilingsOnActiveLayer( |
78 std::vector<PictureLayerTiling*> used_tilings); | 82 std::vector<PictureLayerTiling*> used_tilings); |
79 PictureLayerImpl* PendingTwin() const; | 83 PictureLayerImpl* PendingTwin() const; |
80 PictureLayerImpl* ActiveTwin() const; | 84 PictureLayerImpl* ActiveTwin() const; |
81 | 85 |
82 virtual void getDebugBorderProperties( | 86 virtual void getDebugBorderProperties( |
83 SkColor* color, float* width) const OVERRIDE; | 87 SkColor* color, float* width) const OVERRIDE; |
84 | 88 |
85 scoped_ptr<PictureLayerTilingSet> tilings_; | 89 scoped_ptr<PictureLayerTilingSet> tilings_; |
86 scoped_refptr<PicturePileImpl> pile_; | 90 scoped_refptr<PicturePileImpl> pile_; |
(...skipping 15 matching lines...) Expand all Loading... |
102 float raster_source_scale_; | 106 float raster_source_scale_; |
103 bool raster_source_scale_was_animating_; | 107 bool raster_source_scale_was_animating_; |
104 | 108 |
105 friend class PictureLayer; | 109 friend class PictureLayer; |
106 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 110 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
107 }; | 111 }; |
108 | 112 |
109 } | 113 } |
110 | 114 |
111 #endif // CC_PICTURE_LAYER_IMPL_H_ | 115 #endif // CC_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |