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

Side by Side Diff: chromecast/media/base/cast_media_default.cc

Issue 1257013003: Load CMA backend from shared library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromecast/media/cma/backend/media_pipeline_backend_default.h"
5 #include "chromecast/public/cast_media_shlib.h" 6 #include "chromecast/public/cast_media_shlib.h"
6 #include "chromecast/public/graphics_types.h" 7 #include "chromecast/public/graphics_types.h"
8 #include "chromecast/public/media_codec_support_shlib.h"
7 #include "chromecast/public/video_plane.h" 9 #include "chromecast/public/video_plane.h"
8 10
9 namespace chromecast { 11 namespace chromecast {
10 namespace media { 12 namespace media {
11 namespace { 13 namespace {
12 14
13 class DefaultVideoPlane : public VideoPlane { 15 class DefaultVideoPlane : public VideoPlane {
14 public: 16 public:
15 ~DefaultVideoPlane() override {} 17 ~DefaultVideoPlane() override {}
16 18
(...skipping 18 matching lines...) Expand all
35 37
36 void CastMediaShlib::Finalize() { 38 void CastMediaShlib::Finalize() {
37 delete g_video_plane; 39 delete g_video_plane;
38 g_video_plane = nullptr; 40 g_video_plane = nullptr;
39 } 41 }
40 42
41 VideoPlane* CastMediaShlib::GetVideoPlane() { 43 VideoPlane* CastMediaShlib::GetVideoPlane() {
42 return g_video_plane; 44 return g_video_plane;
43 } 45 }
44 46
47 MediaPipelineBackend* CastMediaShlib::CreateMediaPipelineBackend(
48 const MediaPipelineDeviceParams& params) {
49 return new MediaPipelineBackendDefault(params);
50 }
51
52 MediaCodecSupportShlib::CodecSupport MediaCodecSupportShlib::IsSupported(
53 const std::string& codec) {
54 return kDefault;
55 }
56
45 } // namespace media 57 } // namespace media
46 } // namespace chromecast 58 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698