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

Unified Diff: cc/layers/layer.cc

Issue 13285002: cc: Consolidate LayerList types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index c5a2ad8ffeef4af34346e7729c1cc94b668ea2f6..7ccd4a77d0124fba56dc9e76f3f915fe721450b4 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -699,6 +699,10 @@ void Layer::CreateRenderSurface() {
draw_properties_.render_target = this;
}
+void Layer::ClearRenderSurface() {
+ draw_properties_.render_surface.reset();
+}
+
void Layer::OnOpacityAnimated(float opacity) {
// This is called due to an ongoing accelerated animation. Since this
// animation is also being run on the impl thread, there is no need to request
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698