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

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: 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 44005f3fdb07ba26b12f7bfe00f58de0e8d05877..1db78c36f4217869933e064216cd33cf2d277cc5 100644
--- a/media/filters/gpu_video_decoder.cc
+++ b/media/filters/gpu_video_decoder.cc
@@ -316,14 +316,20 @@ void GpuVideoDecoder::NotifyInitializeDone() {
NOTREACHED() << "GpuVideoDecodeAcceleratorHost::Initialize is synchronous!";
}
-void GpuVideoDecoder::ProvidePictureBuffers(uint32 count,
- const gfx::Size& size) {
+void GpuVideoDecoder::ProvidePictureBuffers(
+ uint32 count,
+ const gfx::Size& size,
+ media::VideoDecodeAccelerator::TextureTarget 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;
}
+ // TODO(sail) : Add support for ARB texture targets.
Ami GONE FROM CHROMIUM 2012/05/23 23:42:33 I think it's important to do these TODOs before th
sail 2012/05/29 18:58:09 Done.
+ CHECK_EQ(media::VideoDecodeAccelerator::TEXTURE_TARGET_2D, texture_target);
+
std::vector<uint32> texture_ids;
if (!factories_->CreateTextures(
count, size, &texture_ids, &decoder_texture_target_)) {
Ami GONE FROM CHROMIUM 2012/05/23 23:42:33 Here CreateTextures() expects to be able to proscr
sail 2012/05/29 18:58:09 Done.

Powered by Google App Engine
This is Rietveld 408576698