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

Unified Diff: cc/layers/layer_impl.h

Issue 2480533002: Don't free non-tile resources on GPU rasterization toggle (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index 01feef4e003b7125c71d853846a32d0fd7944e3a..9f0a8b1723aaff26d8fbd824855d4ba62c5f20af 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -376,12 +376,16 @@ class CC_EXPORT LayerImpl {
virtual void DidBeginTracing();
// Release resources held by this layer. Called when the output surface
- // that rendered this layer was lost or a rendering mode switch has occured.
+ // that rendered this layer was lost.
virtual void ReleaseResources();
- // Recreate resources that are required after they were released by a
- // ReleaseResources call.
- virtual void RecreateResources();
+ // Release tile resources held by this layer. Called when a rendering mode
+ // switch has occured and tiles are no longer valid.
+ virtual void ReleaseTileResources();
+
+ // Recreate tile resources held by this layer after they were released by a
+ // ReleaseTileResources call.
+ virtual void RecreateTileResources();
virtual std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl);
virtual void PushPropertiesTo(LayerImpl* layer);
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698