| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 float page_scale_factor, | 48 float page_scale_factor, |
| 49 bool animating_transform_to_screen, | 49 bool animating_transform_to_screen, |
| 50 float* contents_scale_x, | 50 float* contents_scale_x, |
| 51 float* contents_scale_y, | 51 float* contents_scale_y, |
| 52 gfx::Size* content_bounds) OVERRIDE; | 52 gfx::Size* content_bounds) OVERRIDE; |
| 53 virtual skia::RefPtr<SkPicture> GetPicture() OVERRIDE; | 53 virtual skia::RefPtr<SkPicture> GetPicture() OVERRIDE; |
| 54 | 54 |
| 55 // PictureLayerTilingClient overrides. | 55 // PictureLayerTilingClient overrides. |
| 56 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling, | 56 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling, |
| 57 gfx::Rect content_rect) OVERRIDE; | 57 gfx::Rect content_rect) OVERRIDE; |
| 58 virtual scoped_refptr<TileBundle> CreateTileBundle(int width, |
| 59 int height, |
| 60 int offset_x, |
| 61 int offset_y) OVERRIDE; |
| 58 virtual void UpdatePile(Tile* tile) OVERRIDE; | 62 virtual void UpdatePile(Tile* tile) OVERRIDE; |
| 59 virtual gfx::Size CalculateTileSize( | 63 virtual gfx::Size CalculateTileSize( |
| 60 gfx::Size content_bounds) const OVERRIDE; | 64 gfx::Size content_bounds) const OVERRIDE; |
| 61 virtual const Region* GetInvalidation() OVERRIDE; | 65 virtual const Region* GetInvalidation() OVERRIDE; |
| 62 virtual const PictureLayerTiling* GetTwinTiling( | 66 virtual const PictureLayerTiling* GetTwinTiling( |
| 63 const PictureLayerTiling* tiling) OVERRIDE; | 67 const PictureLayerTiling* tiling) OVERRIDE; |
| 68 virtual bool IsRecycled() const OVERRIDE; |
| 69 virtual bool IsActive() const OVERRIDE; |
| 70 virtual bool IsPending() const OVERRIDE; |
| 64 | 71 |
| 65 // PushPropertiesTo active tree => pending tree. | 72 // PushPropertiesTo active tree => pending tree. |
| 66 void SyncTiling(const PictureLayerTiling* tiling); | 73 void SyncTiling(const PictureLayerTiling* tiling); |
| 67 | 74 |
| 68 // Mask-related functions | 75 // Mask-related functions |
| 69 void SetIsMask(bool is_mask); | 76 void SetIsMask(bool is_mask); |
| 70 virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE; | 77 virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE; |
| 71 | 78 |
| 72 virtual size_t GPUMemoryUsageInBytes() const OVERRIDE; | 79 virtual size_t GPUMemoryUsageInBytes() const OVERRIDE; |
| 73 | 80 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 // after a CalculateContentsScale/ManageTilings. | 141 // after a CalculateContentsScale/ManageTilings. |
| 135 bool should_update_tile_priorities_; | 142 bool should_update_tile_priorities_; |
| 136 | 143 |
| 137 friend class PictureLayer; | 144 friend class PictureLayer; |
| 138 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 145 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 139 }; | 146 }; |
| 140 | 147 |
| 141 } // namespace cc | 148 } // namespace cc |
| 142 | 149 |
| 143 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 150 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |