| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 void UpdateTilePriorities(const Occlusion& occlusion_in_content_space); | 162 void UpdateTilePriorities(const Occlusion& occlusion_in_content_space); |
| 163 virtual bool ShouldAdjustRasterScale() const; | 163 virtual bool ShouldAdjustRasterScale() const; |
| 164 virtual void RecalculateRasterScales(); | 164 virtual void RecalculateRasterScales(); |
| 165 void CleanUpTilingsOnActiveLayer( | 165 void CleanUpTilingsOnActiveLayer( |
| 166 std::vector<PictureLayerTiling*> used_tilings); | 166 std::vector<PictureLayerTiling*> used_tilings); |
| 167 float MinimumContentsScale() const; | 167 float MinimumContentsScale() const; |
| 168 float SnappedContentsScale(float new_contents_scale); | 168 float SnappedContentsScale(float new_contents_scale); |
| 169 void ResetRasterScale(); | 169 void ResetRasterScale(); |
| 170 gfx::Rect GetViewportForTilePriorityInContentSpace() const; | 170 gfx::Rect GetViewportForTilePriorityInContentSpace() const; |
| 171 PictureLayerImpl* GetRecycledTwinLayer() const; | 171 PictureLayerImpl* GetRecycledTwinLayer() const; |
| 172 void UpdatePile(scoped_refptr<PicturePileImpl> pile); |
| 172 | 173 |
| 173 void DoPostCommitInitializationIfNeeded() { | 174 void DoPostCommitInitializationIfNeeded() { |
| 174 if (needs_post_commit_initialization_) | 175 if (needs_post_commit_initialization_) |
| 175 DoPostCommitInitialization(); | 176 DoPostCommitInitialization(); |
| 176 } | 177 } |
| 177 void DoPostCommitInitialization(); | 178 void DoPostCommitInitialization(); |
| 178 | 179 |
| 179 bool CanHaveTilings() const; | 180 bool CanHaveTilings() const; |
| 180 bool CanHaveTilingWithScale(float contents_scale) const; | 181 bool CanHaveTilingWithScale(float contents_scale) const; |
| 181 void SanityCheckTilingState() const; | 182 void SanityCheckTilingState() const; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 // frame that has a valid viewport for prioritizing tiles. | 223 // frame that has a valid viewport for prioritizing tiles. |
| 223 gfx::Rect visible_rect_for_tile_priority_; | 224 gfx::Rect visible_rect_for_tile_priority_; |
| 224 | 225 |
| 225 friend class PictureLayer; | 226 friend class PictureLayer; |
| 226 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 227 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 227 }; | 228 }; |
| 228 | 229 |
| 229 } // namespace cc | 230 } // namespace cc |
| 230 | 231 |
| 231 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 232 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |