OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/mojo/services/mojo_demuxer_stream_adapter.h" | 5 #include "media/mojo/services/mojo_demuxer_stream_adapter.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 bool MojoDemuxerStreamAdapter::SupportsConfigChanges() { | 64 bool MojoDemuxerStreamAdapter::SupportsConfigChanges() { |
65 return true; | 65 return true; |
66 } | 66 } |
67 | 67 |
68 VideoRotation MojoDemuxerStreamAdapter::video_rotation() { | 68 VideoRotation MojoDemuxerStreamAdapter::video_rotation() { |
69 NOTIMPLEMENTED(); | 69 NOTIMPLEMENTED(); |
70 return VIDEO_ROTATION_0; | 70 return VIDEO_ROTATION_0; |
71 } | 71 } |
72 | 72 |
73 bool MojoDemuxerStreamAdapter::enabled() const { | |
74 return true; | |
75 } | |
76 | |
77 void MojoDemuxerStreamAdapter::set_enabled(bool enabled, | |
78 base::TimeDelta timestamp) { | |
79 NOTIMPLEMENTED(); | |
80 } | |
81 | |
82 // TODO(xhwang): Pass liveness here. | 73 // TODO(xhwang): Pass liveness here. |
83 void MojoDemuxerStreamAdapter::OnStreamReady( | 74 void MojoDemuxerStreamAdapter::OnStreamReady( |
84 Type type, | 75 Type type, |
85 mojo::ScopedDataPipeConsumerHandle consumer_handle, | 76 mojo::ScopedDataPipeConsumerHandle consumer_handle, |
86 mojom::AudioDecoderConfigPtr audio_config, | 77 mojom::AudioDecoderConfigPtr audio_config, |
87 mojom::VideoDecoderConfigPtr video_config) { | 78 mojom::VideoDecoderConfigPtr video_config) { |
88 DVLOG(1) << __func__; | 79 DVLOG(1) << __func__; |
89 DCHECK_EQ(UNKNOWN, type_); | 80 DCHECK_EQ(UNKNOWN, type_); |
90 DCHECK(consumer_handle.is_valid()); | 81 DCHECK(consumer_handle.is_valid()); |
91 | 82 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 case VIDEO: | 139 case VIDEO: |
149 DCHECK(video_config && !audio_config); | 140 DCHECK(video_config && !audio_config); |
150 video_config_ = video_config.To<VideoDecoderConfig>(); | 141 video_config_ = video_config.To<VideoDecoderConfig>(); |
151 break; | 142 break; |
152 default: | 143 default: |
153 NOTREACHED(); | 144 NOTREACHED(); |
154 } | 145 } |
155 } | 146 } |
156 | 147 |
157 } // namespace media | 148 } // namespace media |
OLD | NEW |