| 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 26 matching lines...) Expand all Loading... |
| 37 virtual void calculateContentsScale( | 37 virtual void calculateContentsScale( |
| 38 float ideal_contents_scale, | 38 float ideal_contents_scale, |
| 39 float* contents_scale_x, | 39 float* contents_scale_x, |
| 40 float* contents_scale_y, | 40 float* contents_scale_y, |
| 41 gfx::Size* content_bounds) OVERRIDE; | 41 gfx::Size* content_bounds) OVERRIDE; |
| 42 virtual skia::RefPtr<SkPicture> getPicture() OVERRIDE; | 42 virtual skia::RefPtr<SkPicture> getPicture() OVERRIDE; |
| 43 | 43 |
| 44 // PictureLayerTilingClient overrides. | 44 // PictureLayerTilingClient overrides. |
| 45 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling*, | 45 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling*, |
| 46 gfx::Rect) OVERRIDE; | 46 gfx::Rect) OVERRIDE; |
| 47 virtual void UpdatePile(Tile* tile) OVERRIDE; |
| 47 | 48 |
| 48 // PushPropertiesTo active tree => pending tree | 49 // PushPropertiesTo active tree => pending tree |
| 49 void SyncFromActiveLayer(); | 50 void SyncFromActiveLayer(); |
| 50 void SyncTiling(const PictureLayerTiling* tiling); | 51 void SyncTiling(const PictureLayerTiling* tiling); |
| 51 | 52 |
| 52 // Mask-related functions | 53 // Mask-related functions |
| 53 void SetIsMask(bool is_mask); | 54 void SetIsMask(bool is_mask); |
| 54 virtual ResourceProvider::ResourceId contentsResourceId() const OVERRIDE; | 55 virtual ResourceProvider::ResourceId contentsResourceId() const OVERRIDE; |
| 55 | 56 |
| 56 virtual bool areVisibleResourcesReady() const OVERRIDE; | 57 virtual bool areVisibleResourcesReady() const OVERRIDE; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 75 float ideal_contents_scale_; | 76 float ideal_contents_scale_; |
| 76 bool is_mask_; | 77 bool is_mask_; |
| 77 | 78 |
| 78 friend class PictureLayer; | 79 friend class PictureLayer; |
| 79 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 80 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 } | 83 } |
| 83 | 84 |
| 84 #endif // CC_PICTURE_LAYER_IMPL_H_ | 85 #endif // CC_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |