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

Side by Side Diff: media/mojo/services/mojo_video_decoder_service.cc

Issue 2908303003: media: Create Mojo StructTraits for VideoFrame (Closed)
Patch Set: Remove death test. Created 3 years, 6 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698