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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 const char* LayerTypeAsString() const override; | 54 const char* LayerTypeAsString() const override; |
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 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 | 65 |
65 // PictureLayerTilingClient overrides. | 66 // PictureLayerTilingClient overrides. |
66 scoped_refptr<Tile> CreateTile(float contents_scale, | 67 scoped_refptr<Tile> CreateTile(float contents_scale, |
67 const gfx::Rect& content_rect) override; | 68 const gfx::Rect& content_rect) override; |
68 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; | 69 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; |
69 const Region* GetPendingInvalidation() override; | 70 const Region* GetPendingInvalidation() override; |
70 const PictureLayerTiling* GetPendingOrActiveTwinTiling( | 71 const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
71 const PictureLayerTiling* tiling) const override; | 72 const PictureLayerTiling* tiling) const override; |
72 PictureLayerTiling* GetRecycledTwinTiling( | 73 PictureLayerTiling* GetRecycledTwinTiling( |
73 const PictureLayerTiling* tiling) override; | 74 const PictureLayerTiling* tiling) override; |
(...skipping 102 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 |