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 16 matching lines...) Expand all Loading... |
27 } | 27 } |
28 virtual ~PictureLayerImpl(); | 28 virtual ~PictureLayerImpl(); |
29 | 29 |
30 // LayerImpl overrides. | 30 // LayerImpl overrides. |
31 virtual const char* layerTypeAsString() const OVERRIDE; | 31 virtual const char* layerTypeAsString() const OVERRIDE; |
32 virtual scoped_ptr<LayerImpl> createLayerImpl( | 32 virtual scoped_ptr<LayerImpl> createLayerImpl( |
33 LayerTreeImpl* treeImpl) OVERRIDE; | 33 LayerTreeImpl* treeImpl) OVERRIDE; |
34 virtual void pushPropertiesTo(LayerImpl* layer) OVERRIDE; | 34 virtual void pushPropertiesTo(LayerImpl* layer) OVERRIDE; |
35 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; | 35 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; |
36 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE; | 36 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE; |
37 virtual void didUpdateTransforms() OVERRIDE; | 37 virtual void updateTilePriorities() OVERRIDE; |
38 virtual void didBecomeActive() OVERRIDE; | 38 virtual void didBecomeActive() OVERRIDE; |
39 virtual void didLoseOutputSurface() OVERRIDE; | 39 virtual void didLoseOutputSurface() OVERRIDE; |
40 virtual void calculateContentsScale( | 40 virtual void calculateContentsScale( |
41 float ideal_contents_scale, | 41 float ideal_contents_scale, |
42 float* contents_scale_x, | 42 float* contents_scale_x, |
43 float* contents_scale_y, | 43 float* contents_scale_y, |
44 gfx::Size* content_bounds) OVERRIDE; | 44 gfx::Size* content_bounds) OVERRIDE; |
45 virtual skia::RefPtr<SkPicture> getPicture() OVERRIDE; | 45 virtual skia::RefPtr<SkPicture> getPicture() OVERRIDE; |
46 | 46 |
47 // PictureLayerTilingClient overrides. | 47 // PictureLayerTilingClient overrides. |
(...skipping 21 matching lines...) Expand all Loading... |
69 PictureLayerTiling* AddTiling(float contents_scale); | 69 PictureLayerTiling* AddTiling(float contents_scale); |
70 void SyncFromActiveLayer(const PictureLayerImpl* other); | 70 void SyncFromActiveLayer(const PictureLayerImpl* other); |
71 gfx::Size TileSize() const; | 71 gfx::Size TileSize() const; |
72 void ManageTilings(float ideal_contents_scale); | 72 void ManageTilings(float ideal_contents_scale); |
73 void CleanUpUnusedTilings(std::vector<PictureLayerTiling*> used_tilings); | 73 void CleanUpUnusedTilings(std::vector<PictureLayerTiling*> used_tilings); |
74 | 74 |
75 scoped_ptr<PictureLayerTilingSet> tilings_; | 75 scoped_ptr<PictureLayerTilingSet> tilings_; |
76 scoped_refptr<PicturePileImpl> pile_; | 76 scoped_refptr<PicturePileImpl> pile_; |
77 Region invalidation_; | 77 Region invalidation_; |
78 | 78 |
| 79 int last_source_frame_number_; |
79 gfx::Transform last_screen_space_transform_; | 80 gfx::Transform last_screen_space_transform_; |
80 double last_update_time_; | 81 double last_impl_frame_time_; |
81 gfx::Size last_bounds_; | 82 gfx::Size last_bounds_; |
82 gfx::Size last_content_bounds_; | 83 gfx::Size last_content_bounds_; |
83 float last_content_scale_; | 84 float last_content_scale_; |
84 float ideal_contents_scale_; | 85 float ideal_contents_scale_; |
85 bool is_mask_; | 86 bool is_mask_; |
86 | 87 |
87 friend class PictureLayer; | 88 friend class PictureLayer; |
88 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 89 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
89 }; | 90 }; |
90 | 91 |
91 } | 92 } |
92 | 93 |
93 #endif // CC_PICTURE_LAYER_IMPL_H_ | 94 #endif // CC_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |