| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 virtual size_t GetMaxTilesForInterestArea() const override; | 132 virtual size_t GetMaxTilesForInterestArea() const override; |
| 133 virtual float GetSkewportTargetTimeInSeconds() const override; | 133 virtual float GetSkewportTargetTimeInSeconds() const override; |
| 134 virtual int GetSkewportExtrapolationLimitInContentPixels() const override; | 134 virtual int GetSkewportExtrapolationLimitInContentPixels() const override; |
| 135 virtual WhichTree GetTree() const override; | 135 virtual WhichTree GetTree() const override; |
| 136 virtual bool RequiresHighResToDraw() const override; | 136 virtual bool RequiresHighResToDraw() const override; |
| 137 | 137 |
| 138 // PushPropertiesTo active tree => pending tree. | 138 // PushPropertiesTo active tree => pending tree. |
| 139 void SyncTiling(const PictureLayerTiling* tiling); | 139 void SyncTiling(const PictureLayerTiling* tiling); |
| 140 | 140 |
| 141 // Mask-related functions. | 141 // Mask-related functions. |
| 142 virtual ResourceProvider::ResourceId ContentsResourceId() const override; | 142 virtual void GetContentsResourceId(ResourceProvider::ResourceId* resource_id, |
| 143 gfx::Size* resource_size) const override; |
| 143 | 144 |
| 144 virtual size_t GPUMemoryUsageInBytes() const override; | 145 virtual size_t GPUMemoryUsageInBytes() const override; |
| 145 | 146 |
| 146 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark) override; | 147 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark) override; |
| 147 | 148 |
| 148 // Functions used by tile manager. | 149 // Functions used by tile manager. |
| 149 PictureLayerImpl* GetTwinLayer() { return twin_layer_; } | 150 PictureLayerImpl* GetTwinLayer() { return twin_layer_; } |
| 150 bool IsOnActiveOrPendingTree() const; | 151 bool IsOnActiveOrPendingTree() const; |
| 151 // Virtual for testing. | 152 // Virtual for testing. |
| 152 virtual bool HasValidTilePriorities() const; | 153 virtual bool HasValidTilePriorities() const; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 // frame that has a valid viewport for prioritizing tiles. | 227 // frame that has a valid viewport for prioritizing tiles. |
| 227 gfx::Rect visible_rect_for_tile_priority_; | 228 gfx::Rect visible_rect_for_tile_priority_; |
| 228 | 229 |
| 229 friend class PictureLayer; | 230 friend class PictureLayer; |
| 230 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 231 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 231 }; | 232 }; |
| 232 | 233 |
| 233 } // namespace cc | 234 } // namespace cc |
| 234 | 235 |
| 235 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 236 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |