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

Side by Side Diff: media/mojo/clients/mojo_media_log.cc

Issue 2966643002: media: Plumb MediaLog to MojoVideoDecoderService. (Closed)
Patch Set: Created 3 years, 5 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "media/mojo/clients/mojo_media_log.h"
6
7 #include "base/logging.h"
8
9 namespace media {
10
11 // TODO(sandersd): Do we need to respond to the channel closing?
12 MojoMediaLog::MojoMediaLog(
13 mojo::AssociatedInterfacePtr<mojom::MediaLog> remote_media_log)
14 : remote_media_log_(std::move(remote_media_log)) {
15 DVLOG(1) << __func__;
16 }
17
18 MojoMediaLog::~MojoMediaLog() {
19 DVLOG(1) << __func__;
20 }
21
22 void MojoMediaLog::AddEvent(std::unique_ptr<MediaLogEvent> event) {
23 DVLOG(1) << __func__;
24 DCHECK(event);
25 remote_media_log_->AddEvent(*event);
26 }
27
28 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698