Index: content/shell/renderer/test_runner/TestPlugin.cpp |
diff --git a/content/shell/renderer/test_runner/TestPlugin.cpp b/content/shell/renderer/test_runner/TestPlugin.cpp |
index 91045cecef3af3065391d2f7d415040c8d1bf960..5fdec5db330034608eb343a22d2beb2b980cf388 100644 |
--- a/content/shell/renderer/test_runner/TestPlugin.cpp |
+++ b/content/shell/renderer/test_runner/TestPlugin.cpp |
@@ -222,11 +222,8 @@ bool TestPlugin::initialize(WebPluginContainer* container) |
void TestPlugin::destroy() |
{ |
- if (m_layer.get()) { |
- m_layer->WillModifyTexture(); |
- m_layer->SetTextureMailbox(cc::TextureMailbox(), |
- scoped_ptr<cc::SingleReleaseCallback>()); |
- } |
+ if (m_layer.get()) |
+ m_layer->ClearTexture(); |
if (m_container) |
m_container->setWebLayer(0); |
m_webLayer.reset(); |