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 "media/base/fake_text_track_stream.h" | 5 #include "media/base/fake_text_track_stream.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
(...skipping 26 matching lines...) Expand all Loading... | |
37 DemuxerStream::Type FakeTextTrackStream::type() const { | 37 DemuxerStream::Type FakeTextTrackStream::type() const { |
38 return DemuxerStream::TEXT; | 38 return DemuxerStream::TEXT; |
39 } | 39 } |
40 | 40 |
41 bool FakeTextTrackStream::SupportsConfigChanges() { return false; } | 41 bool FakeTextTrackStream::SupportsConfigChanges() { return false; } |
42 | 42 |
43 VideoRotation FakeTextTrackStream::video_rotation() { | 43 VideoRotation FakeTextTrackStream::video_rotation() { |
44 return VIDEO_ROTATION_0; | 44 return VIDEO_ROTATION_0; |
45 } | 45 } |
46 | 46 |
47 int FakeTextTrackStream::GetMemoryLimit() const { | |
48 NOTIMPLEMENTED(); | |
chcunningham
2015/06/11 18:56:55
We're having to do this same override boilerplate
servolk
2015/06/12 00:50:48
Yeah, that's a good point. I was pondering this my
wolenetz
2015/06/12 21:31:56
I was pondering similarly.
Backing up a bit, ISTM
| |
49 return 0; | |
50 } | |
51 | |
52 void FakeTextTrackStream::SetMemoryLimit(int memory_limit) { | |
53 NOTIMPLEMENTED(); | |
54 } | |
55 | |
47 void FakeTextTrackStream::SatisfyPendingRead( | 56 void FakeTextTrackStream::SatisfyPendingRead( |
48 const base::TimeDelta& start, | 57 const base::TimeDelta& start, |
49 const base::TimeDelta& duration, | 58 const base::TimeDelta& duration, |
50 const std::string& id, | 59 const std::string& id, |
51 const std::string& content, | 60 const std::string& content, |
52 const std::string& settings) { | 61 const std::string& settings) { |
53 DCHECK(!read_cb_.is_null()); | 62 DCHECK(!read_cb_.is_null()); |
54 | 63 |
55 const uint8* const data_buf = reinterpret_cast<const uint8*>(content.data()); | 64 const uint8* const data_buf = reinterpret_cast<const uint8*>(content.data()); |
56 const int data_len = static_cast<int>(content.size()); | 65 const int data_len = static_cast<int>(content.size()); |
(...skipping 28 matching lines...) Expand all Loading... | |
85 base::ResetAndReturn(&read_cb_).Run(kOk, DecoderBuffer::CreateEOSBuffer()); | 94 base::ResetAndReturn(&read_cb_).Run(kOk, DecoderBuffer::CreateEOSBuffer()); |
86 } | 95 } |
87 | 96 |
88 void FakeTextTrackStream::Stop() { | 97 void FakeTextTrackStream::Stop() { |
89 stopping_ = true; | 98 stopping_ = true; |
90 if (!read_cb_.is_null()) | 99 if (!read_cb_.is_null()) |
91 AbortPendingRead(); | 100 AbortPendingRead(); |
92 } | 101 } |
93 | 102 |
94 } // namespace media | 103 } // namespace media |
OLD | NEW |