OLD | NEW |
(Empty) | |
| 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 "content/common/gpu/media/media_ozone_platform_gbm.h" |
| 6 |
| 7 #include "content/common/gpu/media/vaapi_video_decode_accelerator.h" |
| 8 #include "media/ozone/media_ozone_platform.h" |
| 9 #include "media/video/video_decode_accelerator.h" |
| 10 |
| 11 namespace media { |
| 12 |
| 13 namespace { |
| 14 |
| 15 class MediaOzonePlatformGbm : public MediaOzonePlatform { |
| 16 public: |
| 17 MediaOzonePlatformGbm() {} |
| 18 |
| 19 virtual ~MediaOzonePlatformGbm() {} |
| 20 |
| 21 // MediaOzonePlatform implementation: |
| 22 virtual media::VideoDecodeAccelerator* CreateVideoDecodeAccelerator( |
| 23 const base::Callback<bool(void)>& make_context_current) OVERRIDE { |
| 24 return new content::VaapiVideoDecodeAccelerator(make_context_current); |
| 25 } |
| 26 |
| 27 private: |
| 28 DISALLOW_COPY_AND_ASSIGN(MediaOzonePlatformGbm); |
| 29 }; |
| 30 |
| 31 } // namespace |
| 32 |
| 33 MediaOzonePlatform* CreateMediaOzonePlatformGbm() { |
| 34 return new MediaOzonePlatformGbm; |
| 35 } |
| 36 |
| 37 } // namespace media |
OLD | NEW |