5c06bfd4ed8a4ea15533520975c18f943faaf004
[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     // Temporarily disable the support till
25     // https://github.com/01org/ozone-wayland/issues/240 is resolved.
26     //return new VaapiVideoDecodeAccelerator(make_context_current);
27     return NULL;
28   }
29
30  private:
31   DISALLOW_COPY_AND_ASSIGN(MediaOzonePlatformWayland);
32 };
33
34 }  // namespace
35
36 MediaOzonePlatform* CreateMediaOzonePlatformWayland() { return new MediaOzonePlatformWayland; }
37
38 }  // namespace media