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

Unified Diff: content/common/gpu/media/vt_video_decode_accelerator_mac.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/vt_video_decode_accelerator_mac.cc
diff --git a/content/common/gpu/media/vt_video_decode_accelerator_mac.cc b/content/common/gpu/media/vt_video_decode_accelerator_mac.cc
index e4ea5cdf4fdbbf35e0e3c8fe1f6ae2b2c6c8949c..3b9249dbbc82f358c3c63cc2c4264aff67cce514 100644
--- a/content/common/gpu/media/vt_video_decode_accelerator_mac.cc
+++ b/content/common/gpu/media/vt_video_decode_accelerator_mac.cc
@@ -846,8 +846,8 @@ void VTVideoDecodeAccelerator::AssignPictureBuffers(
available_picture_ids_.push_back(picture.id());
picture_info_map_.insert(std::make_pair(
picture.id(),
- make_scoped_ptr(new PictureInfo(picture.internal_texture_id(),
- picture.texture_id()))));
+ make_scoped_ptr(new PictureInfo(picture.internal_texture_ids().ids[0],
+ picture.texture_ids().ids[0]))));
}
// Pictures are not marked as uncleared until after this method returns, and
@@ -1004,8 +1004,8 @@ bool VTVideoDecodeAccelerator::ProcessFrame(const Frame& frame) {
// Request new pictures.
picture_size_ = frame.coded_size;
- client_->ProvidePictureBuffers(
- kNumPictureBuffers, coded_size_, GL_TEXTURE_RECTANGLE_ARB);
+ client_->ProvidePictureBuffers(kNumPictureBuffers, 1, coded_size_,
+ GL_TEXTURE_RECTANGLE_ARB);
return false;
}
if (!SendFrame(frame))

Powered by Google App Engine
This is Rietveld 408576698