Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: cc/layers/picture_layer_impl.h

Issue 1819683002: Use sk_sp-based picture recording APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: skspify GetPicture/GetFlattenedPicture Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698