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

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: fixed unit test. 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..62ce3b82bcc0ec6adb76c41f5d1fc1065a08a5cd 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
@@ -382,7 +383,9 @@ GpuVideoDecodeAccelerator::CreateAndroidVDA() {
#if defined(OS_ANDROID)
decoder.reset(new AndroidVideoDecodeAccelerator(
stub_->decoder()->AsWeakPtr(),
- make_context_current_));
+ make_context_current_,
+ scoped_ptr<AndroidVideoDecodeAccelerator::BackingStrategy>(
+ new AndroidCopyingBackingStrategy())));
#endif
return decoder.Pass();
}

Powered by Google App Engine
This is Rietveld 408576698