| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |