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

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

Issue 385793002: content: Add support for Video Decode Acceleration on GBM (Closed) Base URL: 038ca4ab40c387bf3bc1541d56578bc522df9f41
Patch Set: merge changes into one single vaapi_video_decode_accelerator Created 6 years, 5 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/media_ozone_platform_gbm.cc
diff --git a/content/common/gpu/media/media_ozone_platform_gbm.cc b/content/common/gpu/media/media_ozone_platform_gbm.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7bcbec8fb7815d2babe546fbf1db677b88eaa044
--- /dev/null
+++ b/content/common/gpu/media/media_ozone_platform_gbm.cc
@@ -0,0 +1,37 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/common/gpu/media/media_ozone_platform_gbm.h"
+
+#include "content/common/gpu/media/vaapi_video_decode_accelerator.h"
+#include "media/ozone/media_ozone_platform.h"
+#include "media/video/video_decode_accelerator.h"
+
+namespace media {
+
+namespace {
+
+class MediaOzonePlatformGbm : public MediaOzonePlatform {
+ public:
+ MediaOzonePlatformGbm() {}
+
+ virtual ~MediaOzonePlatformGbm() {}
+
+ // MediaOzonePlatform implementation:
+ virtual media::VideoDecodeAccelerator* CreateVideoDecodeAccelerator(
+ const base::Callback<bool(void)>& make_context_current) OVERRIDE {
+ return new content::VaapiVideoDecodeAccelerator(make_context_current);
+ }
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MediaOzonePlatformGbm);
+};
+
+} // namespace
+
+MediaOzonePlatform* CreateMediaOzonePlatformGbm() {
+ return new MediaOzonePlatformGbm;
+}
+
+} // namespace media

Powered by Google App Engine
This is Rietveld 408576698