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

Side by Side Diff: chromecast/media/cma/backend/cast_media_default.cc

Issue 2577743002: [chromecast] Deletes libcast_media_1.0_default_core. (Closed)
Patch Set: rebase + simplify libcast_media target Created 4 years 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 <memory> 5 #include <memory>
6 6
7 #include "base/single_thread_task_runner.h" 7 #include "base/single_thread_task_runner.h"
8 #include "base/threading/thread_task_runner_handle.h" 8 #include "base/threading/thread_task_runner_handle.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chromecast/base/task_runner_impl.h" 10 #include "chromecast/base/task_runner_impl.h"
11 #include "chromecast/media/cma/backend/media_pipeline_backend_default.h" 11 #include "chromecast/media/cma/backend/media_pipeline_backend_default.h"
12 #include "chromecast/public/cast_media_shlib.h" 12 #include "chromecast/public/cast_media_shlib.h"
13 #include "chromecast/public/graphics_types.h" 13 #include "chromecast/public/graphics_types.h"
14 #include "chromecast/public/media/media_capabilities_shlib.h" 14 #include "chromecast/public/media/media_capabilities_shlib.h"
15 #include "chromecast/public/media/media_pipeline_device_params.h" 15 #include "chromecast/public/media/media_pipeline_device_params.h"
16 #include "chromecast/public/media_codec_support_shlib.h" 16 #include "chromecast/public/media_codec_support_shlib.h"
17 #include "chromecast/public/video_plane.h" 17 #include "chromecast/public/video_plane.h"
18 18
19 namespace chromecast { 19 namespace chromecast {
20 namespace media { 20 namespace media {
21 namespace { 21 namespace {
22 22
23 class DefaultVideoPlane : public VideoPlane { 23 class DefaultVideoPlane : public VideoPlane {
24 public: 24 public:
25 ~DefaultVideoPlane() override {} 25 ~DefaultVideoPlane() override {}
26 26
27 void SetGeometry(const RectF& display_rect, 27 void SetGeometry(const RectF& display_rect, Transform transform) override {}
28 Transform transform) override {}
29 }; 28 };
30 29
31 DefaultVideoPlane* g_video_plane = nullptr; 30 DefaultVideoPlane* g_video_plane = nullptr;
32 base::ThreadTaskRunnerHandle* g_thread_task_runner_handle = nullptr; 31 base::ThreadTaskRunnerHandle* g_thread_task_runner_handle = nullptr;
33 32
34 } // namespace 33 } // namespace
35 34
36 void CastMediaShlib::Initialize(const std::vector<std::string>& argv) { 35 void CastMediaShlib::Initialize(const std::vector<std::string>& argv) {
37 g_video_plane = new DefaultVideoPlane(); 36 g_video_plane = new DefaultVideoPlane();
38 } 37 }
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 } 106 }
108 107
109 bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec, 108 bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec,
110 VideoProfile profile, 109 VideoProfile profile,
111 int level) { 110 int level) {
112 return (codec == kCodecH264 || codec == kCodecVP8); 111 return (codec == kCodecH264 || codec == kCodecVP8);
113 } 112 }
114 113
115 } // namespace media 114 } // namespace media
116 } // namespace chromecast 115 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/media/cma/backend/cast_media_android.cc ('k') | chromecast/media/cma/backend/cast_media_dummy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698