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

Unified Diff: media/filters/gpu_video_decoder.cc

Issue 10392141: Plumb texture target to VideoDecodeAccelerator::Client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments/rebase Created 8 years, 7 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: media/filters/gpu_video_decoder.cc
diff --git a/media/filters/gpu_video_decoder.cc b/media/filters/gpu_video_decoder.cc
index 17b46fab8e7a9786f7b9941e746b5934a5a998cd..e7c5d36b0ba7206669b60fb865d0902c8b20d84b 100644
--- a/media/filters/gpu_video_decoder.cc
+++ b/media/filters/gpu_video_decoder.cc
@@ -311,16 +311,19 @@ void GpuVideoDecoder::NotifyInitializeDone() {
}
void GpuVideoDecoder::ProvidePictureBuffers(uint32 count,
- const gfx::Size& size) {
+ const gfx::Size& size,
+ uint32 texture_target) {
if (!gvd_loop_proxy_->BelongsToCurrentThread()) {
gvd_loop_proxy_->PostTask(FROM_HERE, base::Bind(
- &GpuVideoDecoder::ProvidePictureBuffers, this, count, size));
+ &GpuVideoDecoder::ProvidePictureBuffers, this, count, size,
+ texture_target));
return;
}
std::vector<uint32> texture_ids;
+ decoder_texture_target_ = texture_target;
if (!factories_->CreateTextures(
- count, size, &texture_ids, &decoder_texture_target_)) {
+ count, size, &texture_ids, decoder_texture_target_)) {
NotifyError(VideoDecodeAccelerator::PLATFORM_FAILURE);
return;
}

Powered by Google App Engine
This is Rietveld 408576698