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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 void AppendQuads(RenderPass* render_pass, | 57 void AppendQuads(RenderPass* render_pass, |
58 AppendQuadsData* append_quads_data) override; | 58 AppendQuadsData* append_quads_data) override; |
59 void NotifyTileStateChanged(const Tile* tile) override; | 59 void NotifyTileStateChanged(const Tile* tile) override; |
60 void DidBeginTracing() override; | 60 void DidBeginTracing() override; |
61 void ReleaseResources() override; | 61 void ReleaseResources() override; |
62 void RecreateResources() override; | 62 void RecreateResources() override; |
63 skia::RefPtr<SkPicture> GetPicture() override; | 63 skia::RefPtr<SkPicture> GetPicture() override; |
64 Region GetInvalidationRegion() override; | 64 Region GetInvalidationRegion() override; |
65 | 65 |
66 // PictureLayerTilingClient overrides. | 66 // PictureLayerTilingClient overrides. |
67 scoped_refptr<Tile> CreateTile(float contents_scale, | 67 scoped_refptr<Tile> CreateTile( |
68 const gfx::Rect& content_rect) override; | 68 float contents_scale, |
| 69 const gfx::Rect& content_rect, |
| 70 scoped_refptr<RasterSource>* raster_source) override; |
69 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; | 71 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; |
70 const Region* GetPendingInvalidation() override; | 72 const Region* GetPendingInvalidation() override; |
71 const PictureLayerTiling* GetPendingOrActiveTwinTiling( | 73 const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
72 const PictureLayerTiling* tiling) const override; | 74 const PictureLayerTiling* tiling) const override; |
73 PictureLayerTiling* GetRecycledTwinTiling( | 75 PictureLayerTiling* GetRecycledTwinTiling( |
74 const PictureLayerTiling* tiling) override; | 76 const PictureLayerTiling* tiling) override; |
75 TilePriority::PriorityBin GetMaxTilePriorityBin() const override; | 77 TilePriority::PriorityBin GetMaxTilePriorityBin() const override; |
76 WhichTree GetTree() const override; | 78 WhichTree GetTree() const override; |
77 bool RequiresHighResToDraw() const override; | 79 bool RequiresHighResToDraw() const override; |
78 gfx::Rect GetEnclosingRectInTargetSpace() const override; | 80 gfx::Rect GetEnclosingRectInTargetSpace() const override; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // of comparing pointers, since objects pointed to are not guaranteed to | 186 // of comparing pointers, since objects pointed to are not guaranteed to |
185 // exist. | 187 // exist. |
186 std::vector<PictureLayerTiling*> last_append_quads_tilings_; | 188 std::vector<PictureLayerTiling*> last_append_quads_tilings_; |
187 | 189 |
188 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 190 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
189 }; | 191 }; |
190 | 192 |
191 } // namespace cc | 193 } // namespace cc |
192 | 194 |
193 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 195 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |