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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; | 55 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; |
56 void PushPropertiesTo(LayerImpl* layer) override; | 56 void PushPropertiesTo(LayerImpl* layer) override; |
57 void AppendQuads(RenderPass* render_pass, | 57 void AppendQuads(RenderPass* render_pass, |
58 const Occlusion& occlusion_in_content_space, | 58 const Occlusion& occlusion_in_content_space, |
59 AppendQuadsData* append_quads_data) override; | 59 AppendQuadsData* append_quads_data) override; |
60 bool UpdateTiles(const Occlusion& occlusion_in_content_space, | 60 bool UpdateTiles(const Occlusion& occlusion_in_content_space, |
61 bool resourceless_software_draw) override; | 61 bool resourceless_software_draw) override; |
62 void NotifyTileStateChanged(const Tile* tile) override; | 62 void NotifyTileStateChanged(const Tile* tile) override; |
63 void DidBeginTracing() override; | 63 void DidBeginTracing() override; |
64 void ReleaseResources() override; | 64 void ReleaseResources() override; |
| 65 void RecreateResources() override; |
65 skia::RefPtr<SkPicture> GetPicture() override; | 66 skia::RefPtr<SkPicture> GetPicture() override; |
66 | 67 |
67 // PictureLayerTilingClient overrides. | 68 // PictureLayerTilingClient overrides. |
68 scoped_refptr<Tile> CreateTile(float contents_scale, | 69 scoped_refptr<Tile> CreateTile(float contents_scale, |
69 const gfx::Rect& content_rect) override; | 70 const gfx::Rect& content_rect) override; |
70 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; | 71 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; |
71 const Region* GetPendingInvalidation() override; | 72 const Region* GetPendingInvalidation() override; |
72 const PictureLayerTiling* GetPendingOrActiveTwinTiling( | 73 const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
73 const PictureLayerTiling* tiling) const override; | 74 const PictureLayerTiling* tiling) const override; |
74 PictureLayerTiling* GetRecycledTwinTiling( | 75 PictureLayerTiling* GetRecycledTwinTiling( |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 // of comparing pointers, since objects pointed to are not guaranteed to | 177 // of comparing pointers, since objects pointed to are not guaranteed to |
177 // exist. | 178 // exist. |
178 std::vector<PictureLayerTiling*> last_append_quads_tilings_; | 179 std::vector<PictureLayerTiling*> last_append_quads_tilings_; |
179 | 180 |
180 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 181 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
181 }; | 182 }; |
182 | 183 |
183 } // namespace cc | 184 } // namespace cc |
184 | 185 |
185 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 186 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |