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

Side by Side Diff: content/common/gpu/media/media_messages.cc

Issue 1736643005: Decouple Media Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nit + fixed compile issue Created 4 years, 9 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
« no previous file with comments | « content/common/gpu/media/media_messages.h ('k') | content/common/gpu/media/media_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/numerics/safe_math.h" 10 #include "base/numerics/safe_math.h"
11 #include "content/common/gpu/media_messages.h" 11 #include "content/common/gpu/media/media_messages.h"
12 12
13 namespace IPC { 13 namespace IPC {
14 14
15 void ParamTraits<media::BitstreamBuffer>::Write(base::Pickle* m, 15 void ParamTraits<media::BitstreamBuffer>::Write(base::Pickle* m,
16 const param_type& p) { 16 const param_type& p) {
17 WriteParam(m, p.id()); 17 WriteParam(m, p.id());
18 WriteParam(m, static_cast<uint64_t>(p.size())); 18 WriteParam(m, static_cast<uint64_t>(p.size()));
19 WriteParam(m, p.presentation_timestamp()); 19 WriteParam(m, p.presentation_timestamp());
20 WriteParam(m, p.key_id()); 20 WriteParam(m, p.key_id());
21 if (!p.key_id().empty()) { 21 if (!p.key_id().empty()) {
(...skipping 30 matching lines...) Expand all
52 52
53 void ParamTraits<media::BitstreamBuffer>::Log(const param_type& p, 53 void ParamTraits<media::BitstreamBuffer>::Log(const param_type& p,
54 std::string* l) { 54 std::string* l) {
55 std::ostringstream oss; 55 std::ostringstream oss;
56 oss << "id=" << p.id() << ", size=" << p.size() << ", presentation_timestamp=" 56 oss << "id=" << p.id() << ", size=" << p.size() << ", presentation_timestamp="
57 << p.presentation_timestamp().ToInternalValue(); 57 << p.presentation_timestamp().ToInternalValue();
58 l->append(oss.str()); 58 l->append(oss.str());
59 } 59 }
60 60
61 } // namespace IPC 61 } // namespace IPC
OLDNEW
« no previous file with comments | « content/common/gpu/media/media_messages.h ('k') | content/common/gpu/media/media_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698