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

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

Issue 1313913003: Begin refactor of AVDA to support zero-copy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cl feedback. Created 5 years, 3 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/gpu_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.cc b/content/common/gpu/media/gpu_video_decode_accelerator.cc
index bea788f1a6318699b93226ad4801c48208485327..52054046105d2c349d34bc92b00f5a2d933e393e 100644
--- a/content/common/gpu/media/gpu_video_decode_accelerator.cc
+++ b/content/common/gpu/media/gpu_video_decode_accelerator.cc
@@ -46,6 +46,7 @@
#elif defined(USE_OZONE)
#include "media/ozone/media_ozone_platform.h"
#elif defined(OS_ANDROID)
+#include "content/common/gpu/media/android_copying_backing_strategy.h"
#include "content/common/gpu/media/android_video_decode_accelerator.h"
#endif
@@ -381,8 +382,8 @@ GpuVideoDecodeAccelerator::CreateAndroidVDA() {
scoped_ptr<media::VideoDecodeAccelerator> decoder;
#if defined(OS_ANDROID)
decoder.reset(new AndroidVideoDecodeAccelerator(
- stub_->decoder()->AsWeakPtr(),
- make_context_current_));
+ stub_->decoder()->AsWeakPtr(), make_context_current_,
+ make_scoped_ptr(new AndroidCopyingBackingStrategy())));
#endif
return decoder.Pass();
}

Powered by Google App Engine
This is Rietveld 408576698