| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_video_decoder_service.h" | 5 #include "media/mojo/services/mojo_video_decoder_service.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/optional.h" | 10 #include "base/optional.h" |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 127 |
| 128 void MojoVideoDecoderService::OnDecoderReset(const ResetCallback& callback) { | 128 void MojoVideoDecoderService::OnDecoderReset(const ResetCallback& callback) { |
| 129 DVLOG(1) << __func__; | 129 DVLOG(1) << __func__; |
| 130 callback.Run(); | 130 callback.Run(); |
| 131 } | 131 } |
| 132 | 132 |
| 133 void MojoVideoDecoderService::OnDecoderOutput( | 133 void MojoVideoDecoderService::OnDecoderOutput( |
| 134 const scoped_refptr<VideoFrame>& frame) { | 134 const scoped_refptr<VideoFrame>& frame) { |
| 135 DVLOG(2) << __func__; | 135 DVLOG(2) << __func__; |
| 136 DCHECK(client_); | 136 DCHECK(client_); |
| 137 client_->OnVideoFrameDecoded(mojom::VideoFrame::From(frame), base::nullopt); | 137 client_->OnVideoFrameDecoded(frame, base::nullopt); |
| 138 } | 138 } |
| 139 | 139 |
| 140 void MojoVideoDecoderService::OnReleaseMailbox( | 140 void MojoVideoDecoderService::OnReleaseMailbox( |
| 141 const base::UnguessableToken& release_token, | 141 const base::UnguessableToken& release_token, |
| 142 const gpu::SyncToken& release_sync_token) { | 142 const gpu::SyncToken& release_sync_token) { |
| 143 DVLOG(2) << __func__; | 143 DVLOG(2) << __func__; |
| 144 } | 144 } |
| 145 | 145 |
| 146 } // namespace media | 146 } // namespace media |
| OLD | NEW |