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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
116 | 116 |
117 protected: | 117 protected: |
118 friend class LayerRasterTileIterator; | 118 friend class LayerRasterTileIterator; |
119 | 119 |
120 PictureLayerImpl(LayerTreeImpl* tree_impl, int id); | 120 PictureLayerImpl(LayerTreeImpl* tree_impl, int id); |
121 PictureLayerTiling* AddTiling(float contents_scale); | 121 PictureLayerTiling* AddTiling(float contents_scale); |
122 void RemoveTiling(float contents_scale); | 122 void RemoveTiling(float contents_scale); |
123 void RemoveAllTilings(); | 123 void RemoveAllTilings(); |
124 void SyncFromActiveLayer(const PictureLayerImpl* other); | 124 void SyncFromActiveLayer(const PictureLayerImpl* other); |
125 void ManageTilings(bool animating_transform_to_screen); | 125 void ManageTilings(bool animating_transform_to_screen); |
126 bool ShouldHaveLowResTiling() const { return should_use_low_res_tiling_; } | 126 bool ShouldHaveLowResTiling() const { |
127 return should_use_low_res_tiling_ && !ShouldUseGpuRasterization(); | |
vangelis
2014/03/27 19:16:46
Bikeshedding a bit but since should_use_low_res_ti
| |
128 } | |
127 virtual bool ShouldAdjustRasterScale( | 129 virtual bool ShouldAdjustRasterScale( |
128 bool animating_transform_to_screen) const; | 130 bool animating_transform_to_screen) const; |
129 virtual void RecalculateRasterScales( | 131 virtual void RecalculateRasterScales( |
130 bool animating_transform_to_screen); | 132 bool animating_transform_to_screen); |
131 void CleanUpTilingsOnActiveLayer( | 133 void CleanUpTilingsOnActiveLayer( |
132 std::vector<PictureLayerTiling*> used_tilings); | 134 std::vector<PictureLayerTiling*> used_tilings); |
133 float MinimumContentsScale() const; | 135 float MinimumContentsScale() const; |
134 float SnappedContentsScale(float new_contents_scale); | 136 float SnappedContentsScale(float new_contents_scale); |
135 void UpdateLCDTextStatus(bool new_status); | 137 void UpdateLCDTextStatus(bool new_status); |
136 void ResetRasterScale(); | 138 void ResetRasterScale(); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
186 | 188 |
187 bool layer_needs_to_register_itself_; | 189 bool layer_needs_to_register_itself_; |
188 | 190 |
189 friend class PictureLayer; | 191 friend class PictureLayer; |
190 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 192 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
191 }; | 193 }; |
192 | 194 |
193 } // namespace cc | 195 } // namespace cc |
194 | 196 |
195 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 197 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |