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

Unified Diff: content/renderer/media/android/stream_texture_factory_android.cc

Issue 22824009: Remove StreamTextureManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 7 years, 4 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
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();
}

Powered by Google App Engine
This is Rietveld 408576698