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

Unified Diff: content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc

Issue 1751323002: Allow multiple texture ids per picture buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/common/gpu/media/v4l2_slice_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc b/content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc
index a338cc2672454382adf576efa46fa817e3c2c08d..935b5f50eea1e24d99e9830dd54fe19875dcbb64 100644
--- a/content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc
+++ b/content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc
@@ -741,7 +741,7 @@ bool V4L2SliceVideoDecodeAccelerator::CreateOutputBuffers() {
child_task_runner_->PostTask(
FROM_HERE,
base::Bind(&VideoDecodeAccelerator::Client::ProvidePictureBuffers,
- client_, num_pictures, coded_size_,
+ client_, num_pictures, 1, coded_size_,
device_->GetTextureTarget()));
return true;
@@ -1498,13 +1498,10 @@ void V4L2SliceVideoDecodeAccelerator::CreateEGLImages(
std::vector<EGLImageKHR> egl_images;
for (size_t i = 0; i < buffers.size(); ++i) {
- EGLImageKHR egl_image = device_->CreateEGLImage(egl_display_,
- egl_context_,
- buffers[i].texture_id(),
- buffers[i].size(),
- i,
- output_format_fourcc,
- output_planes_count);
+ DCHECK_LE(1u, buffers[i].texture_ids().size());
+ EGLImageKHR egl_image = device_->CreateEGLImage(
+ egl_display_, egl_context_, buffers[i].texture_ids()[0],
+ buffers[i].size(), i, output_format_fourcc, output_planes_count);
if (egl_image == EGL_NO_IMAGE_KHR) {
LOGF(ERROR) << "Could not create EGLImageKHR";
for (const auto& image_to_destroy : egl_images)
« no previous file with comments | « content/common/gpu/media/media_messages.h ('k') | content/common/gpu/media/v4l2_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698