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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 void UpdateTiles(const Occlusion& occlusion_in_content_space, | 58 void UpdateTiles(const Occlusion& occlusion_in_content_space, |
59 bool resourceless_software_draw) override; | 59 bool resourceless_software_draw) override; |
60 void NotifyTileStateChanged(const Tile* tile) override; | 60 void NotifyTileStateChanged(const Tile* tile) override; |
61 void DidBecomeActive() override; | 61 void DidBecomeActive() override; |
62 void DidBeginTracing() override; | 62 void DidBeginTracing() override; |
63 void ReleaseResources() override; | 63 void ReleaseResources() override; |
64 skia::RefPtr<SkPicture> GetPicture() override; | 64 skia::RefPtr<SkPicture> GetPicture() override; |
65 | 65 |
66 // PictureLayerTilingClient overrides. | 66 // PictureLayerTilingClient overrides. |
67 scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling, | 67 scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling, |
68 const gfx::Rect& content_rect) override; | 68 const gfx::Rect& content_rect, |
| 69 int flags) override; |
69 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; | 70 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; |
70 const Region* GetPendingInvalidation() override; | 71 const Region* GetPendingInvalidation() override; |
71 const PictureLayerTiling* GetPendingOrActiveTwinTiling( | 72 const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
72 const PictureLayerTiling* tiling) const override; | 73 const PictureLayerTiling* tiling) const override; |
73 PictureLayerTiling* GetRecycledTwinTiling( | 74 PictureLayerTiling* GetRecycledTwinTiling( |
74 const PictureLayerTiling* tiling) override; | 75 const PictureLayerTiling* tiling) override; |
75 TilePriority::PriorityBin GetMaxTilePriorityBin() const override; | 76 TilePriority::PriorityBin GetMaxTilePriorityBin() const override; |
76 size_t GetMaxTilesForInterestArea() const override; | 77 size_t GetMaxTilesForInterestArea() const override; |
77 float GetSkewportTargetTimeInSeconds() const override; | 78 float GetSkewportTargetTimeInSeconds() const override; |
78 int GetSkewportExtrapolationLimitInContentPixels() const override; | 79 int GetSkewportExtrapolationLimitInContentPixels() const override; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 // frame that has a valid viewport for prioritizing tiles. | 182 // frame that has a valid viewport for prioritizing tiles. |
182 gfx::Rect visible_rect_for_tile_priority_; | 183 gfx::Rect visible_rect_for_tile_priority_; |
183 | 184 |
184 friend class PictureLayer; | 185 friend class PictureLayer; |
185 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 186 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
186 }; | 187 }; |
187 | 188 |
188 } // namespace cc | 189 } // namespace cc |
189 | 190 |
190 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 191 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |