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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 virtual void DidBecomeActive() OVERRIDE; | 43 virtual void DidBecomeActive() OVERRIDE; |
44 virtual void DidLoseOutputSurface() OVERRIDE; | 44 virtual void DidLoseOutputSurface() OVERRIDE; |
45 virtual void CalculateContentsScale(float ideal_contents_scale, | 45 virtual void CalculateContentsScale(float ideal_contents_scale, |
46 bool animating_transform_to_screen, | 46 bool animating_transform_to_screen, |
47 float* contents_scale_x, | 47 float* contents_scale_x, |
48 float* contents_scale_y, | 48 float* contents_scale_y, |
49 gfx::Size* content_bounds) OVERRIDE; | 49 gfx::Size* content_bounds) OVERRIDE; |
50 virtual skia::RefPtr<SkPicture> GetPicture() OVERRIDE; | 50 virtual skia::RefPtr<SkPicture> GetPicture() OVERRIDE; |
51 | 51 |
52 // PictureLayerTilingClient overrides. | 52 // PictureLayerTilingClient overrides. |
53 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling, | 53 virtual scoped_refptr<Tile> CreateTile(const PictureLayerTiling* tiling, |
54 gfx::Rect content_rect) OVERRIDE; | 54 gfx::Rect content_rect) OVERRIDE; |
55 virtual void UpdatePile(Tile* tile) OVERRIDE; | 55 virtual void UpdatePile(Tile* tile) OVERRIDE; |
56 virtual gfx::Size CalculateTileSize( | 56 virtual gfx::Size CalculateTileSize( |
57 gfx::Size content_bounds) OVERRIDE; | 57 gfx::Size content_bounds) OVERRIDE; |
58 virtual const Region* GetInvalidation() OVERRIDE; | 58 virtual const Region* GetInvalidation() OVERRIDE; |
59 virtual const PictureLayerTiling* GetTwinTiling( | 59 virtual const PictureLayerTiling* GetTwinTiling( |
60 const PictureLayerTiling* tiling) OVERRIDE; | 60 const PictureLayerTiling* tiling) OVERRIDE; |
61 | 61 |
62 // PushPropertiesTo active tree => pending tree | 62 // PushPropertiesTo active tree => pending tree |
63 void SyncFromActiveLayer(); | 63 void SyncFromActiveLayer(); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 bool raster_source_scale_was_animating_; | 120 bool raster_source_scale_was_animating_; |
121 bool is_using_lcd_text_; | 121 bool is_using_lcd_text_; |
122 | 122 |
123 friend class PictureLayer; | 123 friend class PictureLayer; |
124 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 124 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
125 }; | 125 }; |
126 | 126 |
127 } // namespace cc | 127 } // namespace cc |
128 | 128 |
129 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 129 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |