| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 float MinimumContentsScale() const; | 165 float MinimumContentsScale() const; |
| 166 float SnappedContentsScale(float new_contents_scale); | 166 float SnappedContentsScale(float new_contents_scale); |
| 167 void ResetRasterScale(); | 167 void ResetRasterScale(); |
| 168 void MarkVisibleResourcesAsRequired() const; | 168 void MarkVisibleResourcesAsRequired() const; |
| 169 bool MarkVisibleTilesAsRequired( | 169 bool MarkVisibleTilesAsRequired( |
| 170 PictureLayerTiling* tiling, | 170 PictureLayerTiling* tiling, |
| 171 const PictureLayerTiling* optional_twin_tiling, | 171 const PictureLayerTiling* optional_twin_tiling, |
| 172 float contents_scale, | 172 float contents_scale, |
| 173 const gfx::Rect& rect, | 173 const gfx::Rect& rect, |
| 174 const Region& missing_region) const; | 174 const Region& missing_region) const; |
| 175 gfx::Rect GetVisibleRectForTilePriorityInContentSpace() const; |
| 175 | 176 |
| 176 void DoPostCommitInitializationIfNeeded() { | 177 void DoPostCommitInitializationIfNeeded() { |
| 177 if (needs_post_commit_initialization_) | 178 if (needs_post_commit_initialization_) |
| 178 DoPostCommitInitialization(); | 179 DoPostCommitInitialization(); |
| 179 } | 180 } |
| 180 void DoPostCommitInitialization(); | 181 void DoPostCommitInitialization(); |
| 181 | 182 |
| 182 bool CanHaveTilings() const; | 183 bool CanHaveTilings() const; |
| 183 bool CanHaveTilingWithScale(float contents_scale) const; | 184 bool CanHaveTilingWithScale(float contents_scale) const; |
| 184 void SanityCheckTilingState() const; | 185 void SanityCheckTilingState() const; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 gfx::Rect viewport_rect_for_tile_priority_; | 223 gfx::Rect viewport_rect_for_tile_priority_; |
| 223 gfx::Transform screen_space_transform_for_tile_priority_; | 224 gfx::Transform screen_space_transform_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 |