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 12 matching lines...) Expand all Loading... |
23 { | 23 { |
24 return make_scoped_ptr(new PictureLayerImpl(treeImpl, id)); | 24 return make_scoped_ptr(new PictureLayerImpl(treeImpl, id)); |
25 } | 25 } |
26 virtual ~PictureLayerImpl(); | 26 virtual ~PictureLayerImpl(); |
27 | 27 |
28 // LayerImpl overrides. | 28 // LayerImpl overrides. |
29 virtual const char* layerTypeAsString() const OVERRIDE; | 29 virtual const char* layerTypeAsString() const OVERRIDE; |
30 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; | 30 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; |
31 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE; | 31 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE; |
32 virtual void didUpdateTransforms() OVERRIDE; | 32 virtual void didUpdateTransforms() OVERRIDE; |
| 33 virtual scoped_refptr<PicturePileImpl> GetPicturePileClone() const OVERRIDE; |
33 | 34 |
34 void didUpdateBounds(); | 35 void didUpdateBounds(); |
35 | 36 |
36 // PictureLayerTilingClient overrides. | 37 // PictureLayerTilingClient overrides. |
37 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling*, | 38 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling*, |
38 gfx::Rect) OVERRIDE; | 39 gfx::Rect) OVERRIDE; |
39 | 40 |
40 // PushPropertiesTo active tree => pending tree | 41 // PushPropertiesTo active tree => pending tree |
41 void SyncFromActiveLayer(); | 42 void SyncFromActiveLayer(); |
42 void SyncTiling(const PictureLayerTiling* tiling); | 43 void SyncTiling(const PictureLayerTiling* tiling); |
(...skipping 20 matching lines...) Expand all Loading... |
63 float last_content_scale_y_; | 64 float last_content_scale_y_; |
64 bool is_mask_; | 65 bool is_mask_; |
65 | 66 |
66 friend class PictureLayer; | 67 friend class PictureLayer; |
67 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 68 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
68 }; | 69 }; |
69 | 70 |
70 } | 71 } |
71 | 72 |
72 #endif // CC_PICTURE_LAYER_IMPL_H_ | 73 #endif // CC_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |