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

Side by Side Diff: third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp

Issue 2329463004: ABANDONED CL: Changes needed to make things compile after running rewrite_to_chrome_style tool. (Closed)
Patch Set: Rebasing the fixes... Created 3 years, 10 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 template <class T> 683 template <class T>
684 T* findExistingTrackById(const TrackListBase<T>& trackList, const String& id) { 684 T* findExistingTrackById(const TrackListBase<T>& trackList, const String& id) {
685 // According to MSE specification 685 // According to MSE specification
686 // (https://w3c.github.io/media-source/#sourcebuffer-init-segment-received) 686 // (https://w3c.github.io/media-source/#sourcebuffer-init-segment-received)
687 // step 3.1: 687 // step 3.1:
688 // > If more than one track for a single type are present (ie 2 audio tracks), 688 // > If more than one track for a single type are present (ie 2 audio tracks),
689 // then the Track IDs match the ones in the first initialization segment. 689 // then the Track IDs match the ones in the first initialization segment.
690 // I.e. we only need to search by TrackID if there is more than one track, 690 // I.e. we only need to search by TrackID if there is more than one track,
691 // otherwise we can assume that the only track of the given type is the same 691 // otherwise we can assume that the only track of the given type is the same
692 // one that we had in previous init segments. 692 // one that we had in previous init segments.
693 if (trackList.length() == 1) 693 if (track_list.GetLength() == 1)
694 return trackList.anonymousIndexedGetter(0); 694 return track_list.AnonymousIndexedGetter(0);
695 return trackList.getTrackById(id); 695 /* DO NOT SUBMIT - merge conflict marker.
696 * Please spell |getTrackById|, not |GetTrackById| below. */
697 return track_list.getTrackById(id);
696 } 698 }
697 699
698 const TrackDefault* SourceBuffer::getTrackDefault( 700 const TrackDefault* SourceBuffer::getTrackDefault(
699 const AtomicString& trackType, 701 const AtomicString& trackType,
700 const AtomicString& byteStreamTrackID) const { 702 const AtomicString& byteStreamTrackID) const {
701 // This is a helper for implementation of default track label and default 703 // This is a helper for implementation of default track label and default
702 // track language algorithms. 704 // track language algorithms.
703 // defaultTrackLabel spec: 705 // defaultTrackLabel spec:
704 // https://w3c.github.io/media-source/#sourcebuffer-default-track-label 706 // https://w3c.github.io/media-source/#sourcebuffer-default-track-label
705 // defaultTrackLanguage spec: 707 // defaultTrackLanguage spec:
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
1299 visitor->trace(m_asyncEventQueue); 1301 visitor->trace(m_asyncEventQueue);
1300 visitor->trace(m_appendBufferAsyncPartRunner); 1302 visitor->trace(m_appendBufferAsyncPartRunner);
1301 visitor->trace(m_removeAsyncPartRunner); 1303 visitor->trace(m_removeAsyncPartRunner);
1302 visitor->trace(m_audioTracks); 1304 visitor->trace(m_audioTracks);
1303 visitor->trace(m_videoTracks); 1305 visitor->trace(m_videoTracks);
1304 EventTargetWithInlineData::trace(visitor); 1306 EventTargetWithInlineData::trace(visitor);
1305 SuspendableObject::trace(visitor); 1307 SuspendableObject::trace(visitor);
1306 } 1308 }
1307 1309
1308 } // namespace blink 1310 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698