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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // LayerImpl overrides. | 42 // LayerImpl overrides. |
43 const char* LayerTypeAsString() const override; | 43 const char* LayerTypeAsString() const override; |
44 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; | 44 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; |
45 void PushPropertiesTo(LayerImpl* layer) override; | 45 void PushPropertiesTo(LayerImpl* layer) override; |
46 void AppendQuads(RenderPass* render_pass, | 46 void AppendQuads(RenderPass* render_pass, |
47 AppendQuadsData* append_quads_data) override; | 47 AppendQuadsData* append_quads_data) override; |
48 void NotifyTileStateChanged(const Tile* tile) override; | 48 void NotifyTileStateChanged(const Tile* tile) override; |
49 void DidBeginTracing() override; | 49 void DidBeginTracing() override; |
50 void ReleaseResources() override; | 50 void ReleaseResources() override; |
51 void RecreateResources() override; | 51 void RecreateResources() override; |
52 skia::RefPtr<SkPicture> GetPicture() override; | 52 sk_sp<SkPicture> GetPicture() override; |
53 Region GetInvalidationRegionForDebugging() override; | 53 Region GetInvalidationRegionForDebugging() override; |
54 | 54 |
55 // PictureLayerTilingClient overrides. | 55 // PictureLayerTilingClient overrides. |
56 ScopedTilePtr CreateTile(const Tile::CreateInfo& info) override; | 56 ScopedTilePtr CreateTile(const Tile::CreateInfo& info) override; |
57 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; | 57 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; |
58 const Region* GetPendingInvalidation() override; | 58 const Region* GetPendingInvalidation() override; |
59 const PictureLayerTiling* GetPendingOrActiveTwinTiling( | 59 const PictureLayerTiling* GetPendingOrActiveTwinTiling( |
60 const PictureLayerTiling* tiling) const override; | 60 const PictureLayerTiling* tiling) const override; |
61 bool HasValidTilePriorities() const override; | 61 bool HasValidTilePriorities() const override; |
62 bool RequiresHighResToDraw() const override; | 62 bool RequiresHighResToDraw() const override; |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 // of comparing pointers, since objects pointed to are not guaranteed to | 162 // of comparing pointers, since objects pointed to are not guaranteed to |
163 // exist. | 163 // exist. |
164 std::vector<PictureLayerTiling*> last_append_quads_tilings_; | 164 std::vector<PictureLayerTiling*> last_append_quads_tilings_; |
165 | 165 |
166 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 166 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
167 }; | 167 }; |
168 | 168 |
169 } // namespace cc | 169 } // namespace cc |
170 | 170 |
171 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ | 171 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ |
OLD | NEW |