Upstream version 8.37.183.0
[platform/framework/web/crosswalk.git] / src / ozone / media / media_ozone_platform_wayland.cc
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ozone/media/media_ozone_platform_wayland.h"
6
7 #include "media/video/video_decode_accelerator.h"
8 #include "media/ozone/media_ozone_platform.h"
9 #include "ozone/media/vaapi_video_decode_accelerator.h"
10
11 namespace media {
12
13 namespace {
14
15 class MediaOzonePlatformWayland : public MediaOzonePlatform {
16  public:
17   MediaOzonePlatformWayland() {}
18
19   virtual ~MediaOzonePlatformWayland() {}
20
21   // MediaOzonePlatform:
22   virtual media::VideoDecodeAccelerator* CreateVideoDecodeAccelerator(
23       const base::Callback<bool(void)>& make_context_current) OVERRIDE {
24     return new VaapiVideoDecodeAccelerator(make_context_current);
25   }
26
27  private:
28   DISALLOW_COPY_AND_ASSIGN(MediaOzonePlatformWayland);
29 };
30
31 }  // namespace
32
33 MediaOzonePlatform* CreateMediaOzonePlatformWayland() { return new MediaOzonePlatformWayland; }
34
35 }  // namespace media