| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 float page_scale_factor, | 47 float page_scale_factor, |
| 48 bool animating_transform_to_screen, | 48 bool animating_transform_to_screen, |
| 49 float* contents_scale_x, | 49 float* contents_scale_x, |
| 50 float* contents_scale_y, | 50 float* contents_scale_y, |
| 51 gfx::Size* content_bounds) OVERRIDE; | 51 gfx::Size* content_bounds) OVERRIDE; |
| 52 virtual skia::RefPtr<SkPicture> GetPicture() OVERRIDE; | 52 virtual skia::RefPtr<SkPicture> GetPicture() OVERRIDE; |
| 53 | 53 |
| 54 // PictureLayerTilingClient overrides. | 54 // PictureLayerTilingClient overrides. |
| 55 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling, | 55 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling, |
| 56 gfx::Rect content_rect) OVERRIDE; | 56 gfx::Rect content_rect) OVERRIDE; |
| 57 virtual void DestroyTile(Tile* tile) OVERRIDE; |
| 57 virtual void UpdatePile(Tile* tile) OVERRIDE; | 58 virtual void UpdatePile(Tile* tile) OVERRIDE; |
| 58 virtual gfx::Size CalculateTileSize( | 59 virtual gfx::Size CalculateTileSize( |
| 59 gfx::Size content_bounds) const OVERRIDE; | 60 gfx::Size content_bounds) const OVERRIDE; |
| 60 virtual const Region* GetInvalidation() OVERRIDE; | 61 virtual const Region* GetInvalidation() OVERRIDE; |
| 61 virtual const PictureLayerTiling* GetTwinTiling( | 62 virtual const PictureLayerTiling* GetTwinTiling( |
| 62 const PictureLayerTiling* tiling) OVERRIDE; | 63 const PictureLayerTiling* tiling) OVERRIDE; |
| 63 | 64 |
| 64 // PushPropertiesTo active tree => pending tree. | 65 // PushPropertiesTo active tree => pending tree. |
| 65 void SyncFromActiveLayer(); | 66 void SyncFromActiveLayer(); |
| 66 void SyncTiling(const PictureLayerTiling* tiling); | 67 void SyncTiling(const PictureLayerTiling* tiling); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 bool raster_source_scale_was_animating_; | 127 bool raster_source_scale_was_animating_; |
| 127 bool is_using_lcd_text_; | 128 bool is_using_lcd_text_; |
| 128 | 129 |
| 129 friend class PictureLayer; | 130 friend class PictureLayer; |
| 130 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 131 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 131 }; | 132 }; |
| 132 | 133 |
| 133 } // namespace cc | 134 } // namespace cc |
| 134 | 135 |
| 135 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 136 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |