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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 const gfx::Rect& content_rect) override; | 66 const gfx::Rect& content_rect) override; |
67 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; | 67 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; |
68 const Region* GetPendingInvalidation() override; | 68 const Region* GetPendingInvalidation() override; |
69 const PictureLayerTiling* GetPendingOrActiveTwinTiling( | 69 const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
70 const PictureLayerTiling* tiling) const override; | 70 const PictureLayerTiling* tiling) const override; |
71 PictureLayerTiling* GetRecycledTwinTiling( | 71 PictureLayerTiling* GetRecycledTwinTiling( |
72 const PictureLayerTiling* tiling) override; | 72 const PictureLayerTiling* tiling) override; |
73 TilePriority::PriorityBin GetMaxTilePriorityBin() const override; | 73 TilePriority::PriorityBin GetMaxTilePriorityBin() const override; |
74 WhichTree GetTree() const override; | 74 WhichTree GetTree() const override; |
75 bool RequiresHighResToDraw() const override; | 75 bool RequiresHighResToDraw() const override; |
| 76 void TilingLiveRectChanged() override; |
76 | 77 |
77 void UpdateRasterSource(scoped_refptr<RasterSource> raster_source, | 78 void UpdateRasterSource(scoped_refptr<RasterSource> raster_source, |
78 Region* new_invalidation, | 79 Region* new_invalidation, |
79 const PictureLayerTilingSet* pending_set); | 80 const PictureLayerTilingSet* pending_set); |
80 | 81 |
81 // Mask-related functions. | 82 // Mask-related functions. |
82 void GetContentsResourceId(ResourceProvider::ResourceId* resource_id, | 83 void GetContentsResourceId(ResourceProvider::ResourceId* resource_id, |
83 gfx::Size* resource_size) const override; | 84 gfx::Size* resource_size) const override; |
84 | 85 |
85 void SetNearestNeighbor(bool nearest_neighbor); | 86 void SetNearestNeighbor(bool nearest_neighbor); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 // frame that has a valid viewport for prioritizing tiles. | 175 // frame that has a valid viewport for prioritizing tiles. |
175 gfx::Rect visible_rect_for_tile_priority_; | 176 gfx::Rect visible_rect_for_tile_priority_; |
176 gfx::Rect viewport_rect_for_tile_priority_in_content_space_; | 177 gfx::Rect viewport_rect_for_tile_priority_in_content_space_; |
177 | 178 |
178 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 179 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
179 }; | 180 }; |
180 | 181 |
181 } // namespace cc | 182 } // namespace cc |
182 | 183 |
183 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 184 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |