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

Side by Side Diff: content/common/media/media_param_traits.cc

Issue 1824993004: Separate gfx_ipc into skia-dependent and non-skia-dependent parts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits from tsepez@ Created 4 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/common/media/media_param_traits.h" 5 #include "content/common/media/media_param_traits.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "content/common/media/audio_messages.h" 8 #include "content/common/media/audio_messages.h"
9 #include "content/common/media/video_capture_messages.h" 9 #include "content/common/media/video_capture_messages.h"
10 #include "ipc/ipc_message_utils.h" 10 #include "ipc/ipc_message_utils.h"
11 #include "media/audio/audio_parameters.h" 11 #include "media/audio/audio_parameters.h"
12 #include "media/audio/point.h" 12 #include "media/audio/point.h"
13 #include "media/base/limits.h" 13 #include "media/base/limits.h"
14 #include "ui/gfx/ipc/gfx_param_traits.h" 14 #include "ui/gfx/ipc/gfx_param_traits.h"
15 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h"
15 16
16 using media::AudioParameters; 17 using media::AudioParameters;
17 using media::ChannelLayout; 18 using media::ChannelLayout;
18 using media::VideoCaptureFormat; 19 using media::VideoCaptureFormat;
19 20
20 namespace IPC { 21 namespace IPC {
21 22
22 void ParamTraits<AudioParameters>::Write(base::Pickle* m, 23 void ParamTraits<AudioParameters>::Write(base::Pickle* m,
23 const AudioParameters& p) { 24 const AudioParameters& p) {
24 WriteParam(m, p.format()); 25 WriteParam(m, p.format());
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 return r->IsValid(); 84 return r->IsValid();
84 } 85 }
85 86
86 void ParamTraits<VideoCaptureFormat>::Log(const VideoCaptureFormat& p, 87 void ParamTraits<VideoCaptureFormat>::Log(const VideoCaptureFormat& p,
87 std::string* l) { 88 std::string* l) {
88 l->append(base::StringPrintf("<VideoCaptureFormat> %s", 89 l->append(base::StringPrintf("<VideoCaptureFormat> %s",
89 media::VideoCaptureFormat::ToString(p).c_str())); 90 media::VideoCaptureFormat::ToString(p).c_str()));
90 } 91 }
91 92
92 } // namespace IPC 93 } // namespace IPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698