| 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 21 matching lines...) Expand all Loading... |
| 32 virtual void didUpdateTransforms() OVERRIDE; | 32 virtual void didUpdateTransforms() OVERRIDE; |
| 33 | 33 |
| 34 void didUpdateBounds(); | 34 void didUpdateBounds(); |
| 35 | 35 |
| 36 // PictureLayerTilingClient overrides. | 36 // PictureLayerTilingClient overrides. |
| 37 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling*, | 37 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling*, |
| 38 gfx::Rect) OVERRIDE; | 38 gfx::Rect) OVERRIDE; |
| 39 | 39 |
| 40 // PushPropertiesTo active tree => pending tree | 40 // PushPropertiesTo active tree => pending tree |
| 41 void SyncFromActiveLayer(const PictureLayerImpl* other); | 41 void SyncFromActiveLayer(const PictureLayerImpl* other); |
| 42 void SyncTilingFromActiveLayer(const PictureLayerTiling* tiling); |
| 42 | 43 |
| 43 protected: | 44 protected: |
| 44 PictureLayerImpl(LayerTreeImpl* treeImpl, int id); | 45 PictureLayerImpl(LayerTreeImpl* treeImpl, int id); |
| 46 void AddTiling(float contents_scale, gfx::Size tile_size); |
| 45 | 47 |
| 46 PictureLayerTilingSet tilings_; | 48 PictureLayerTilingSet tilings_; |
| 47 scoped_refptr<PicturePileImpl> pile_; | 49 scoped_refptr<PicturePileImpl> pile_; |
| 50 Region invalidation_; |
| 48 | 51 |
| 49 gfx::Transform last_screen_space_transform_; | 52 gfx::Transform last_screen_space_transform_; |
| 50 double last_update_time_; | 53 double last_update_time_; |
| 51 gfx::Size last_bounds_; | 54 gfx::Size last_bounds_; |
| 52 gfx::Size last_content_bounds_; | 55 gfx::Size last_content_bounds_; |
| 53 float last_content_scale_x_; | 56 float last_content_scale_x_; |
| 54 float last_content_scale_y_; | 57 float last_content_scale_y_; |
| 55 | 58 |
| 56 friend class PictureLayer; | 59 friend class PictureLayer; |
| 57 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 60 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 58 }; | 61 }; |
| 59 | 62 |
| 60 } | 63 } |
| 61 | 64 |
| 62 #endif // CC_PICTURE_LAYER_IMPL_H_ | 65 #endif // CC_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |