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

Side by Side 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: remove OZONE_PLATFORM_GBM Created 6 years, 4 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 unified diff | Download patch
OLDNEW
(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_drm.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:
scherkus (not reviewing) 2014/07/29 17:48:54 nit: "MediaOzonePlatform implementation."
vignatti (out of this project) 2014/07/30 21:51:29 Done.
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698