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

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

Issue 1526303004: Fix buffered range updates in media::Pipeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android buildfix Created 4 years, 11 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
« no previous file with comments | « media/base/demuxer.h ('k') | media/base/mock_demuxer_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include "base/at_exit.h" 8 #include "base/at_exit.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 13 matching lines...) Expand all
24 namespace media { 24 namespace media {
25 25
26 static const int kBenchmarkIterations = 100; 26 static const int kBenchmarkIterations = 100;
27 27
28 class DemuxerHostImpl : public media::DemuxerHost { 28 class DemuxerHostImpl : public media::DemuxerHost {
29 public: 29 public:
30 DemuxerHostImpl() {} 30 DemuxerHostImpl() {}
31 ~DemuxerHostImpl() override {} 31 ~DemuxerHostImpl() override {}
32 32
33 // DemuxerHost implementation. 33 // DemuxerHost implementation.
34 void AddBufferedTimeRange(base::TimeDelta start, 34 void OnBufferedTimeRangesChanged(
35 base::TimeDelta end) override {} 35 const Ranges<base::TimeDelta>& ranges) override {}
36 void SetDuration(base::TimeDelta duration) override {} 36 void SetDuration(base::TimeDelta duration) override {}
37 void OnDemuxerError(media::PipelineStatus error) override {} 37 void OnDemuxerError(media::PipelineStatus error) override {}
38 void AddTextStream(media::DemuxerStream* text_stream, 38 void AddTextStream(media::DemuxerStream* text_stream,
39 const media::TextTrackConfig& config) override {} 39 const media::TextTrackConfig& config) override {}
40 void RemoveTextStream(media::DemuxerStream* text_stream) override {} 40 void RemoveTextStream(media::DemuxerStream* text_stream) override {}
41 41
42 private: 42 private:
43 DISALLOW_COPY_AND_ASSIGN(DemuxerHostImpl); 43 DISALLOW_COPY_AND_ASSIGN(DemuxerHostImpl);
44 }; 44 };
45 45
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 #endif 228 #endif
229 #if defined(OS_CHROMEOS) 229 #if defined(OS_CHROMEOS)
230 RunDemuxerBenchmark("bear.flac"); 230 RunDemuxerBenchmark("bear.flac");
231 #endif 231 #endif
232 #if defined(USE_PROPRIETARY_CODECS) && defined(OS_CHROMEOS) 232 #if defined(USE_PROPRIETARY_CODECS) && defined(OS_CHROMEOS)
233 RunDemuxerBenchmark("bear.avi"); 233 RunDemuxerBenchmark("bear.avi");
234 #endif 234 #endif
235 } 235 }
236 236
237 } // namespace media 237 } // namespace media
OLDNEW
« no previous file with comments | « media/base/demuxer.h ('k') | media/base/mock_demuxer_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698