| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |