Index: trunk/src/content/shell/renderer/test_runner/TestPlugin.cpp |
=================================================================== |
--- trunk/src/content/shell/renderer/test_runner/TestPlugin.cpp (revision 261488) |
+++ trunk/src/content/shell/renderer/test_runner/TestPlugin.cpp (working copy) |
@@ -222,11 +222,8 @@ |
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(); |