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

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

Issue 2156193003: [Chromecast] Add a custom CastMediaClient for Chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@codecs
Patch Set: Mark MediaCapShlib::IsSupportedVideoConfig as weak symbol Created 4 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 <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"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 double* maximum_rate) {} 98 double* maximum_rate) {}
99 99
100 bool CastMediaShlib::SetMediaClockRate(double new_rate) { 100 bool CastMediaShlib::SetMediaClockRate(double new_rate) {
101 return false; 101 return false;
102 } 102 }
103 103
104 bool CastMediaShlib::SupportsMediaClockRateChange() { 104 bool CastMediaShlib::SupportsMediaClockRateChange() {
105 return false; 105 return false;
106 } 106 }
107 107
108 // static
109 bool MediaCapabilitiesShlib::IsSupportedVideoConfig(VideoCodec codec,
110 VideoProfile profile,
111 int level) {
112 if (codec == kCodecH264 || codec == kCodecVP8)
113 return true;
114 return false;
115 }
116
108 } // namespace media 117 } // namespace media
109 } // namespace chromecast 118 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698