diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 18:33:57 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 18:33:57 +0000 |
commit | 252cad6dec04039d456e716273153951d0090b5f (patch) | |
tree | 68437c27571fe3e88317f1f2848573fe647fdbb5 /chrome/common/gpu_video_common.cc | |
parent | 371390a71a7e4530b39e46f1f52c5a6d5a3acd43 (diff) | |
download | chromium_src-252cad6dec04039d456e716273153951d0090b5f.zip chromium_src-252cad6dec04039d456e716273153951d0090b5f.tar.gz chromium_src-252cad6dec04039d456e716273153951d0090b5f.tar.bz2 |
Remove all wstrings from the IPC logging subsystem.
Changes all IPC Log methods from wstring to string. All static logging debug
data changed from wchar[] to char[].
Various string conversion/numeric headers no longer need to be included in
ipc_message_utils.h and have been removed (and added in all implementation
files that require them).
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3159013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56563 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gpu_video_common.cc')
-rw-r--r-- | chrome/common/gpu_video_common.cc | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/chrome/common/gpu_video_common.cc b/chrome/common/gpu_video_common.cc index 06116f9..9732c33 100644 --- a/chrome/common/gpu_video_common.cc +++ b/chrome/common/gpu_video_common.cc @@ -23,8 +23,8 @@ bool ParamTraits<GpuVideoServiceInfoParam>::Read( } void ParamTraits<GpuVideoServiceInfoParam>::Log( - const GpuVideoServiceInfoParam& p, std::wstring* l) { - l->append(StringPrintf(L"(%d, %d, %d)", + const GpuVideoServiceInfoParam& p, std::string* l) { + l->append(StringPrintf("(%d, %d, %d)", p.video_service_route_id_, p.video_service_host_route_id_, p.service_available_)); @@ -49,8 +49,8 @@ bool ParamTraits<GpuVideoDecoderInfoParam>::Read( } void ParamTraits<GpuVideoDecoderInfoParam>::Log( - const GpuVideoDecoderInfoParam& p, std::wstring* l) { - l->append(StringPrintf(L"(%d, %d, %d)", + const GpuVideoDecoderInfoParam& p, std::string* l) { + l->append(StringPrintf("(%d, %d, %d)", p.decoder_id_, p.decoder_route_id_, p.decoder_host_route_id_)); @@ -75,8 +75,8 @@ bool ParamTraits<GpuVideoDecoderInitParam>::Read( } void ParamTraits<GpuVideoDecoderInitParam>::Log( - const GpuVideoDecoderInitParam& p, std::wstring* l) { - l->append(StringPrintf(L"(%d, %d %d)", p.codec_id_, p.width_, p.height_)); + const GpuVideoDecoderInitParam& p, std::string* l) { + l->append(StringPrintf("(%d, %d %d)", p.codec_id_, p.width_, p.height_)); } /////////////////////////////////////////////////////////////////////////////// @@ -112,8 +112,8 @@ bool ParamTraits<GpuVideoDecoderInitDoneParam>::Read( } void ParamTraits<GpuVideoDecoderInitDoneParam>::Log( - const GpuVideoDecoderInitDoneParam& p, std::wstring* l) { - l->append(StringPrintf(L"(%d)", p.stride_)); + const GpuVideoDecoderInitDoneParam& p, std::string* l) { + l->append(StringPrintf("(%d)", p.stride_)); } /////////////////////////////////////////////////////////////////////////////// @@ -135,8 +135,8 @@ bool ParamTraits<GpuVideoDecoderInputBufferParam>::Read( } void ParamTraits<GpuVideoDecoderInputBufferParam>::Log( - const GpuVideoDecoderInputBufferParam& p, std::wstring* l) { - l->append(StringPrintf(L"(%d %d %d)", + const GpuVideoDecoderInputBufferParam& p, std::string* l) { + l->append(StringPrintf("(%d %d %d)", static_cast<int>(p.timestamp_), p.offset_, p.size_)); } @@ -160,8 +160,8 @@ bool ParamTraits<GpuVideoDecoderOutputBufferParam>::Read( } void ParamTraits<GpuVideoDecoderOutputBufferParam>::Log( - const GpuVideoDecoderOutputBufferParam& p, std::wstring* l) { - l->append(StringPrintf(L"(%d %d) %x", + const GpuVideoDecoderOutputBufferParam& p, std::string* l) { + l->append(StringPrintf("(%d %d) %x", static_cast<int>(p.timestamp_), static_cast<int>(p.duration_), p.flags_)); @@ -182,8 +182,8 @@ bool ParamTraits<GpuVideoDecoderErrorInfoParam>::Read( } void ParamTraits<GpuVideoDecoderErrorInfoParam>::Log( - const GpuVideoDecoderErrorInfoParam& p, std::wstring* l) { - l->append(StringPrintf(L"(%d)", p.error_id)); + const GpuVideoDecoderErrorInfoParam& p, std::string* l) { + l->append(StringPrintf("(%d)", p.error_id)); } /////////////////////////////////////////////////////////////////////////////// @@ -203,8 +203,8 @@ bool ParamTraits<GpuVideoDecoderFormatChangeParam>::Read( } void ParamTraits<GpuVideoDecoderFormatChangeParam>::Log( - const GpuVideoDecoderFormatChangeParam& p, std::wstring* l) { - l->append(StringPrintf(L"(%d %d)", p.input_buffer_size_, + const GpuVideoDecoderFormatChangeParam& p, std::string* l) { + l->append(StringPrintf("(%d %d)", p.input_buffer_size_, p.output_buffer_size_)); } }; |