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 "cc/base/scoped_ptr_vector.h" | 8 #include "cc/base/scoped_ptr_vector.h" |
9 #include "cc/layers/layer_impl.h" | 9 #include "cc/layers/layer_impl.h" |
10 #include "cc/resources/picture_layer_tiling.h" | 10 #include "cc/resources/picture_layer_tiling.h" |
(...skipping 28 matching lines...) Expand all Loading... | |
39 virtual void DidLoseOutputSurface() OVERRIDE; | 39 virtual void DidLoseOutputSurface() OVERRIDE; |
40 virtual void CalculateContentsScale(float ideal_contents_scale, | 40 virtual void CalculateContentsScale(float ideal_contents_scale, |
41 bool animating_transform_to_screen, | 41 bool animating_transform_to_screen, |
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. |
48 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling, | 48 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling, |
49 gfx::Rect content_rect) OVERRIDE; | 49 const gfx::Rect& content_rect, |
50 const gfx::Rect& paint_rect) OVERRIDE; | |
50 virtual void UpdatePile(Tile* tile) OVERRIDE; | 51 virtual void UpdatePile(Tile* tile) OVERRIDE; |
51 virtual gfx::Size CalculateTileSize( | 52 virtual gfx::Size CalculateTileSize( |
52 gfx::Size current_tile_size, | 53 gfx::Size current_tile_size, |
53 gfx::Size content_bounds) OVERRIDE; | 54 gfx::Size content_bounds) OVERRIDE; |
55 virtual const Region* GetInvalidation() OVERRIDE; | |
56 virtual const PictureLayerTiling* GetSibling(const PictureLayerTiling* tiling) OVERRIDE; | |
enne (OOO)
2013/03/27 16:16:27
naming bikeshed: GetSibling => GetTwinTiling
Laye
| |
54 | 57 |
55 // PushPropertiesTo active tree => pending tree | 58 // PushPropertiesTo active tree => pending tree |
56 void SyncFromActiveLayer(); | 59 void SyncFromActiveLayer(); |
57 void SyncTiling( | 60 void SyncTiling( |
58 const PictureLayerTiling* tiling, | 61 const PictureLayerTiling* tiling, |
59 const Region& pending_layer_invalidation); | 62 const Region& pending_layer_invalidation); |
60 | 63 |
61 void CreateTilingSet(); | 64 void CreateTilingSet(); |
62 void TransferTilingSet(scoped_ptr<PictureLayerTilingSet> tilings); | 65 void TransferTilingSet(scoped_ptr<PictureLayerTilingSet> tilings); |
63 | 66 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
107 float raster_source_scale_; | 110 float raster_source_scale_; |
108 bool raster_source_scale_was_animating_; | 111 bool raster_source_scale_was_animating_; |
109 | 112 |
110 friend class PictureLayer; | 113 friend class PictureLayer; |
111 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 114 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
112 }; | 115 }; |
113 | 116 |
114 } | 117 } |
115 | 118 |
116 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 119 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |