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

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 + rebased. 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
« no previous file with comments | « content/common/gpu/media/avda_return_on_failure.h ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « content/common/gpu/media/avda_return_on_failure.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698