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

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

Issue 1129943006: Implement StreamTexture::BindTexImage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | gpu/ipc/client/command_buffer_proxy_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/android/stream_texture_factory.cc
diff --git a/content/renderer/media/android/stream_texture_factory.cc b/content/renderer/media/android/stream_texture_factory.cc
index 2408fa1910bf94b8334850a9744e9a13b13b7994..8b4f38a3528b36cd4a8b25c5e809d6b09d25129a 100644
--- a/content/renderer/media/android/stream_texture_factory.cc
+++ b/content/renderer/media/android/stream_texture_factory.cc
@@ -104,13 +104,17 @@ unsigned StreamTextureFactory::CreateStreamTexture(
gpu::Mailbox* texture_mailbox) {
GLuint stream_id = 0;
gpu::gles2::GLES2Interface* gl = context_provider_->ContextGL();
+ int32_t image_id = channel_->ReserveImageId();
gl->GenTextures(1, texture_id);
gl->ShallowFlushCHROMIUM();
stream_id = context_provider_->GetCommandBufferProxy()->CreateStreamTexture(
- *texture_id);
+ image_id);
+ gl->BindTexture(texture_target, *texture_id);
+ gl->BindTexImage2DCHROMIUM(texture_target, image_id);
gl->GenMailboxCHROMIUM(texture_mailbox->name);
gl->ProduceTextureDirectCHROMIUM(
*texture_id, texture_target, texture_mailbox->name);
+ gl->Finish();
return stream_id;
}
« no previous file with comments | « no previous file | gpu/ipc/client/command_buffer_proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698