| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 DoPostCommitInitialization(); | 179 DoPostCommitInitialization(); |
| 179 } | 180 } |
| 180 void DoPostCommitInitialization(); | 181 void DoPostCommitInitialization(); |
| 181 | 182 |
| 182 bool CanHaveTilings() const; | 183 bool CanHaveTilings() const; |
| 183 bool CanHaveTilingWithScale(float contents_scale) const; | 184 bool CanHaveTilingWithScale(float contents_scale) const; |
| 184 void SanityCheckTilingState() const; | 185 void SanityCheckTilingState() const; |
| 185 | 186 |
| 186 virtual void GetDebugBorderProperties( | 187 virtual void GetDebugBorderProperties( |
| 187 SkColor* color, float* width) const OVERRIDE; | 188 SkColor* color, float* width) const OVERRIDE; |
| 189 virtual void AllTilesForTracingInto( |
| 190 std::set<const Tile*>* tiles) const OVERRIDE; |
| 188 virtual void AsValueInto(base::debug::TracedValue* dict) const OVERRIDE; | 191 virtual void AsValueInto(base::debug::TracedValue* dict) const OVERRIDE; |
| 189 | 192 |
| 190 virtual void UpdateIdealScales(); | 193 virtual void UpdateIdealScales(); |
| 191 float MaximumTilingContentsScale() const; | 194 float MaximumTilingContentsScale() const; |
| 192 | 195 |
| 193 PictureLayerImpl* twin_layer_; | 196 PictureLayerImpl* twin_layer_; |
| 194 | 197 |
| 195 scoped_ptr<PictureLayerTilingSet> tilings_; | 198 scoped_ptr<PictureLayerTilingSet> tilings_; |
| 196 scoped_refptr<PicturePileImpl> pile_; | 199 scoped_refptr<PicturePileImpl> pile_; |
| 197 Region invalidation_; | 200 Region invalidation_; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 222 gfx::Rect viewport_rect_for_tile_priority_; | 225 gfx::Rect viewport_rect_for_tile_priority_; |
| 223 gfx::Transform screen_space_transform_for_tile_priority_; | 226 gfx::Transform screen_space_transform_for_tile_priority_; |
| 224 | 227 |
| 225 friend class PictureLayer; | 228 friend class PictureLayer; |
| 226 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 229 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 227 }; | 230 }; |
| 228 | 231 |
| 229 } // namespace cc | 232 } // namespace cc |
| 230 | 233 |
| 231 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 234 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |