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 |