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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 void CreateTilingSet(); | 62 void CreateTilingSet(); |
63 void TransferTilingSet(scoped_ptr<PictureLayerTilingSet> tilings); | 63 void TransferTilingSet(scoped_ptr<PictureLayerTilingSet> tilings); |
64 | 64 |
65 // Mask-related functions | 65 // Mask-related functions |
66 void SetIsMask(bool is_mask); | 66 void SetIsMask(bool is_mask); |
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 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; |
| 72 |
71 protected: | 73 protected: |
72 PictureLayerImpl(LayerTreeImpl* treeImpl, int id); | 74 PictureLayerImpl(LayerTreeImpl* treeImpl, int id); |
73 PictureLayerTiling* AddTiling(float contents_scale); | 75 PictureLayerTiling* AddTiling(float contents_scale); |
74 void RemoveTiling(float contents_scale); | 76 void RemoveTiling(float contents_scale); |
75 void SyncFromActiveLayer(const PictureLayerImpl* other); | 77 void SyncFromActiveLayer(const PictureLayerImpl* other); |
76 void ManageTilings(bool animating_transform_to_screen); | 78 void ManageTilings(bool animating_transform_to_screen); |
77 void CleanUpTilingsOnActiveLayer( | 79 void CleanUpTilingsOnActiveLayer( |
78 std::vector<PictureLayerTiling*> used_tilings); | 80 std::vector<PictureLayerTiling*> used_tilings); |
79 PictureLayerImpl* PendingTwin() const; | 81 PictureLayerImpl* PendingTwin() const; |
80 PictureLayerImpl* ActiveTwin() const; | 82 PictureLayerImpl* ActiveTwin() const; |
(...skipping 21 matching lines...) Expand all Loading... |
102 float raster_source_scale_; | 104 float raster_source_scale_; |
103 bool raster_source_scale_was_animating_; | 105 bool raster_source_scale_was_animating_; |
104 | 106 |
105 friend class PictureLayer; | 107 friend class PictureLayer; |
106 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 108 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
107 }; | 109 }; |
108 | 110 |
109 } | 111 } |
110 | 112 |
111 #endif // CC_PICTURE_LAYER_IMPL_H_ | 113 #endif // CC_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |