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

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

Issue 899313003: cc: Split ReleaseResources into Release and Recreate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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 <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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698