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

Unified Diff: cc/layers/layer_impl.h

Issue 2468023002: Don't free non-tile resources on GPU rasterization toggle (Closed)
Patch Set: fix unittest 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 6e8475a263a3d84842891f664f8d6d269e9fee82..a374750dbb75128c256164eaeadab4f399bad793 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -375,12 +375,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 bool IsSnapped();
« 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