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

Side by Side Diff: media/base/text_track.cc

Issue 23702007: Render inband text tracks in the media pipeline (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: incorporate aaron's comments (10/22) Created 7 years, 2 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) 2013 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 "media/base/text_track.h"
6
7 namespace media {
8
9 TextTrackConfig::TextTrackConfig()
10 : kind_(kTextNone) {
11 }
12
13 TextTrackConfig::TextTrackConfig(TextKind kind,
14 const std::string& label,
15 const std::string& language)
16 : kind_(kind),
17 label_(label),
18 language_(language) {
19 }
20
21 bool TextTrackConfig::Matches(const TextTrackConfig& config) const {
22 return config.kind() == kind_ &&
23 config.label() == label_ &&
24 config.language() == language_;
25 }
26
27 TextKind TextTrackConfig::kind() const {
28 return kind_;
29 }
30
31 const std::string& TextTrackConfig::label() const {
32 return label_;
33 }
34
35 const std::string& TextTrackConfig::language() const {
36 return language_;
37 }
38
39 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698