| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 virtual PictureLayerTiling* GetRecycledTwinTiling( | 128 virtual PictureLayerTiling* GetRecycledTwinTiling( |
| 129 const PictureLayerTiling* tiling) OVERRIDE; | 129 const PictureLayerTiling* tiling) OVERRIDE; |
| 130 virtual size_t GetMaxTilesForInterestArea() const OVERRIDE; | 130 virtual size_t GetMaxTilesForInterestArea() const OVERRIDE; |
| 131 virtual float GetSkewportTargetTimeInSeconds() const OVERRIDE; | 131 virtual float GetSkewportTargetTimeInSeconds() const OVERRIDE; |
| 132 virtual int GetSkewportExtrapolationLimitInContentPixels() const OVERRIDE; | 132 virtual int GetSkewportExtrapolationLimitInContentPixels() const OVERRIDE; |
| 133 virtual WhichTree GetTree() const OVERRIDE; | 133 virtual WhichTree GetTree() const OVERRIDE; |
| 134 | 134 |
| 135 // PushPropertiesTo active tree => pending tree. | 135 // PushPropertiesTo active tree => pending tree. |
| 136 void SyncTiling(const PictureLayerTiling* tiling); | 136 void SyncTiling(const PictureLayerTiling* tiling); |
| 137 | 137 |
| 138 // Mask-related functions | 138 // Mask-related functions. |
| 139 void SetIsMask(bool is_mask); | |
| 140 virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE; | 139 virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE; |
| 141 | 140 |
| 142 virtual size_t GPUMemoryUsageInBytes() const OVERRIDE; | 141 virtual size_t GPUMemoryUsageInBytes() const OVERRIDE; |
| 143 | 142 |
| 144 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark) OVERRIDE; | 143 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark) OVERRIDE; |
| 145 | 144 |
| 146 // Functions used by tile manager. | 145 // Functions used by tile manager. |
| 147 PictureLayerImpl* GetTwinLayer() { return twin_layer_; } | 146 PictureLayerImpl* GetTwinLayer() { return twin_layer_; } |
| 148 bool IsOnActiveOrPendingTree() const; | 147 bool IsOnActiveOrPendingTree() const; |
| 149 // Virtual for testing. | 148 // Virtual for testing. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 197 |
| 199 virtual void UpdateIdealScales(); | 198 virtual void UpdateIdealScales(); |
| 200 float MaximumTilingContentsScale() const; | 199 float MaximumTilingContentsScale() const; |
| 201 | 200 |
| 202 PictureLayerImpl* twin_layer_; | 201 PictureLayerImpl* twin_layer_; |
| 203 | 202 |
| 204 scoped_ptr<PictureLayerTilingSet> tilings_; | 203 scoped_ptr<PictureLayerTilingSet> tilings_; |
| 205 scoped_refptr<PicturePileImpl> pile_; | 204 scoped_refptr<PicturePileImpl> pile_; |
| 206 Region invalidation_; | 205 Region invalidation_; |
| 207 | 206 |
| 208 bool is_mask_; | |
| 209 | |
| 210 float ideal_page_scale_; | 207 float ideal_page_scale_; |
| 211 float ideal_device_scale_; | 208 float ideal_device_scale_; |
| 212 float ideal_source_scale_; | 209 float ideal_source_scale_; |
| 213 float ideal_contents_scale_; | 210 float ideal_contents_scale_; |
| 214 | 211 |
| 215 float raster_page_scale_; | 212 float raster_page_scale_; |
| 216 float raster_device_scale_; | 213 float raster_device_scale_; |
| 217 float raster_source_scale_; | 214 float raster_source_scale_; |
| 218 float raster_contents_scale_; | 215 float raster_contents_scale_; |
| 219 float low_res_raster_contents_scale_; | 216 float low_res_raster_contents_scale_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 231 gfx::Rect viewport_rect_for_tile_priority_; | 228 gfx::Rect viewport_rect_for_tile_priority_; |
| 232 gfx::Transform screen_space_transform_for_tile_priority_; | 229 gfx::Transform screen_space_transform_for_tile_priority_; |
| 233 | 230 |
| 234 friend class PictureLayer; | 231 friend class PictureLayer; |
| 235 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 232 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 236 }; | 233 }; |
| 237 | 234 |
| 238 } // namespace cc | 235 } // namespace cc |
| 239 | 236 |
| 240 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 237 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |