| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 void CreateTilingSet(); | 69 void CreateTilingSet(); |
| 70 void TransferTilingSet(scoped_ptr<PictureLayerTilingSet> tilings); | 70 void TransferTilingSet(scoped_ptr<PictureLayerTilingSet> tilings); |
| 71 | 71 |
| 72 // Mask-related functions | 72 // Mask-related functions |
| 73 void SetIsMask(bool is_mask); | 73 void SetIsMask(bool is_mask); |
| 74 virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE; | 74 virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE; |
| 75 | 75 |
| 76 virtual size_t GPUMemoryUsageInBytes() const OVERRIDE; | 76 virtual size_t GPUMemoryUsageInBytes() const OVERRIDE; |
| 77 | 77 |
| 78 virtual bool CanDrawInTilelessSoftwareMode() const OVERRIDE; |
| 79 |
| 78 protected: | 80 protected: |
| 79 PictureLayerImpl(LayerTreeImpl* tree_impl, int id); | 81 PictureLayerImpl(LayerTreeImpl* tree_impl, int id); |
| 80 PictureLayerTiling* AddTiling(float contents_scale); | 82 PictureLayerTiling* AddTiling(float contents_scale); |
| 81 void RemoveTiling(float contents_scale); | 83 void RemoveTiling(float contents_scale); |
| 82 void SyncFromActiveLayer(const PictureLayerImpl* other); | 84 void SyncFromActiveLayer(const PictureLayerImpl* other); |
| 83 void ManageTilings(bool animating_transform_to_screen); | 85 void ManageTilings(bool animating_transform_to_screen); |
| 84 virtual bool ShouldAdjustRasterScale( | 86 virtual bool ShouldAdjustRasterScale( |
| 85 bool animating_transform_to_screen) const; | 87 bool animating_transform_to_screen) const; |
| 86 virtual void CalculateRasterContentsScale( | 88 virtual void CalculateRasterContentsScale( |
| 87 bool animating_transform_to_screen, | 89 bool animating_transform_to_screen, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 bool raster_source_scale_was_animating_; | 128 bool raster_source_scale_was_animating_; |
| 127 bool is_using_lcd_text_; | 129 bool is_using_lcd_text_; |
| 128 | 130 |
| 129 friend class PictureLayer; | 131 friend class PictureLayer; |
| 130 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 132 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 131 }; | 133 }; |
| 132 | 134 |
| 133 } // namespace cc | 135 } // namespace cc |
| 134 | 136 |
| 135 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 137 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |