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 |