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

Unified Diff: content/browser/renderer_host/media/video_capture_texture_wrapper.cc

Issue 962723002: Change CHROMIUM_image declarations to support multi planar input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reveman@ comments. Created 5 years, 9 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/browser/renderer_host/media/video_capture_texture_wrapper.cc
diff --git a/content/browser/renderer_host/media/video_capture_texture_wrapper.cc b/content/browser/renderer_host/media/video_capture_texture_wrapper.cc
index e02b6fc92347ff5c38e676e1bcb20dd526156539..7797aa8fc9eb13b9b585ddddce51f908caef4bc7 100644
--- a/content/browser/renderer_host/media/video_capture_texture_wrapper.cc
+++ b/content/browser/renderer_host/media/video_capture_texture_wrapper.cc
@@ -292,10 +292,9 @@ void VideoCaptureTextureWrapper::TextureWrapperDelegate::OnIncomingCapturedData(
gpu_memory_buffer->Unmap();
gpu::gles2::GLES2Interface* gl = capture_thread_context_->ContextGL();
- GLuint image_id = gl->CreateImageCHROMIUM(gpu_memory_buffer->AsClientBuffer(),
- frame_size.width(),
- frame_size.height(),
- GL_RGBA);
+ ClientBuffer buffers[] = {gpu_memory_buffer->AsClientBuffer()};
+ GLuint image_id = gl->CreateImageCHROMIUM(buffers, frame_size.width(),
+ frame_size.height(), GL_RGBA);
DCHECK(image_id);
GLuint texture_id = gl_helper_->CreateTexture();

Powered by Google App Engine
This is Rietveld 408576698