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 <string> | 9 #include <string> |
9 #include <vector> | 10 #include <vector> |
10 | 11 |
11 #include "cc/base/cc_export.h" | 12 #include "cc/base/cc_export.h" |
12 #include "cc/base/scoped_ptr_vector.h" | 13 #include "cc/base/scoped_ptr_vector.h" |
13 #include "cc/layers/layer_impl.h" | 14 #include "cc/layers/layer_impl.h" |
14 #include "cc/resources/picture_layer_tiling.h" | 15 #include "cc/resources/picture_layer_tiling.h" |
15 #include "cc/resources/picture_layer_tiling_set.h" | 16 #include "cc/resources/picture_layer_tiling_set.h" |
16 #include "cc/resources/picture_pile_impl.h" | 17 #include "cc/resources/picture_pile_impl.h" |
17 #include "skia/ext/refptr.h" | 18 #include "skia/ext/refptr.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 void DoPostCommitInitialization(); | 185 void DoPostCommitInitialization(); |
185 | 186 |
186 bool CanHaveTilings() const; | 187 bool CanHaveTilings() const; |
187 bool CanHaveTilingWithScale(float contents_scale) const; | 188 bool CanHaveTilingWithScale(float contents_scale) const; |
188 void SanityCheckTilingState() const; | 189 void SanityCheckTilingState() const; |
189 | 190 |
190 bool ShouldAdjustRasterScaleDuringScaleAnimations() const; | 191 bool ShouldAdjustRasterScaleDuringScaleAnimations() const; |
191 | 192 |
192 virtual void GetDebugBorderProperties( | 193 virtual void GetDebugBorderProperties( |
193 SkColor* color, float* width) const OVERRIDE; | 194 SkColor* color, float* width) const OVERRIDE; |
| 195 virtual void GetAllTilesForTracing( |
| 196 std::set<const Tile*>* tiles) const OVERRIDE; |
194 virtual void AsValueInto(base::debug::TracedValue* dict) const OVERRIDE; | 197 virtual void AsValueInto(base::debug::TracedValue* dict) const OVERRIDE; |
195 | 198 |
196 virtual void UpdateIdealScales(); | 199 virtual void UpdateIdealScales(); |
197 float MaximumTilingContentsScale() const; | 200 float MaximumTilingContentsScale() const; |
198 | 201 |
199 PictureLayerImpl* twin_layer_; | 202 PictureLayerImpl* twin_layer_; |
200 | 203 |
201 scoped_ptr<PictureLayerTilingSet> tilings_; | 204 scoped_ptr<PictureLayerTilingSet> tilings_; |
202 scoped_refptr<PicturePileImpl> pile_; | 205 scoped_refptr<PicturePileImpl> pile_; |
203 Region invalidation_; | 206 Region invalidation_; |
(...skipping 24 matching lines...) Expand all Loading... |
228 gfx::Rect viewport_rect_for_tile_priority_; | 231 gfx::Rect viewport_rect_for_tile_priority_; |
229 gfx::Transform screen_space_transform_for_tile_priority_; | 232 gfx::Transform screen_space_transform_for_tile_priority_; |
230 | 233 |
231 friend class PictureLayer; | 234 friend class PictureLayer; |
232 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 235 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
233 }; | 236 }; |
234 | 237 |
235 } // namespace cc | 238 } // namespace cc |
236 | 239 |
237 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 240 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |