Index: content/renderer/media/android/stream_texture_factory_android.cc |
diff --git a/content/renderer/media/android/stream_texture_factory_android.cc b/content/renderer/media/android/stream_texture_factory_android.cc |
index a2e2c5f6bad90c9fabaf0cff9ccbada9e3bcc377..cc37690d4c8fd9120edf85a797262ab1ad61e463 100644 |
--- a/content/renderer/media/android/stream_texture_factory_android.cc |
+++ b/content/renderer/media/android/stream_texture_factory_android.cc |
@@ -91,11 +91,12 @@ unsigned StreamTextureFactory::CreateStreamTexture( |
return stream_id; |
} |
-void StreamTextureFactory::DestroyStreamTexture(unsigned texture_id) { |
+void StreamTextureFactory::DestroyStreamTexture(unsigned stream_id, |
+ unsigned texture_id) { |
if (context_->makeContextCurrent()) { |
// TODO(sievers): Make the destroyStreamTexture implicit when the last |
// texture referencing it is lost. |
- context_->destroyStreamTextureCHROMIUM(texture_id); |
+ context_->destroyStreamTextureCHROMIUM(stream_id); |
context_->deleteTexture(texture_id); |
context_->flush(); |
} |