Chromium Code Reviews| Index: media/gpu/vaapi_video_decode_accelerator.cc |
| diff --git a/media/gpu/vaapi_video_decode_accelerator.cc b/media/gpu/vaapi_video_decode_accelerator.cc |
| index a119f0fd16b039ddefc831c5be2fef71e14837de..a76bd082e4f88449f87983bd6e4a5ac58f2bafca 100644 |
| --- a/media/gpu/vaapi_video_decode_accelerator.cc |
| +++ b/media/gpu/vaapi_video_decode_accelerator.cc |
| @@ -359,7 +359,7 @@ bool VaapiVideoDecodeAccelerator::Initialize(const Config& config, |
| base::AutoLock auto_lock(lock_); |
| DCHECK_EQ(state_, kUninitialized); |
| - DVLOG(2) << "Initializing VAVDA, profile: " << profile; |
| + DVLOG(2) << "Initializing VAVDA, profile: " << GetProfileName(profile); |
| #if defined(USE_X11) |
| if (gl::GetGLImplementation() != gl::kGLImplementationDesktopGL) { |
| @@ -379,7 +379,8 @@ bool VaapiVideoDecodeAccelerator::Initialize(const Config& config, |
| VaapiWrapper::kDecode, profile, base::Bind(&ReportToUMA, VAAPI_ERROR)); |
| if (!vaapi_wrapper_.get()) { |
| - DVLOG(1) << "Failed initializing VAAPI for profile " << profile; |
| + DVLOG(1) << "Failed initializing VAAPI for profile " |
| + << GetProfileName(profile); |
| return false; |
| } |
| @@ -394,7 +395,7 @@ bool VaapiVideoDecodeAccelerator::Initialize(const Config& config, |
| vp9_accelerator_.reset(new VaapiVP9Accelerator(this, vaapi_wrapper_.get())); |
| decoder_.reset(new VP9Decoder(vp9_accelerator_.get())); |
| } else { |
| - DLOG(ERROR) << "Unsupported profile " << profile; |
| + DLOG(ERROR) << "Unsupported profile " << GetProfileName(profile); |
| return false; |
| } |
| @@ -1744,7 +1745,8 @@ bool VaapiVideoDecodeAccelerator::VaapiVP9Accelerator::SubmitDecode( |
| DCHECK(frame_hdr); |
| if (frame_hdr->profile != 0) { |
| - DVLOG(1) << "Unsupported profile" << frame_hdr->profile; |
| + DVLOG(1) << "Unsupported profile" |
| + << GetProfileName((VideoCodecProfile)frame_hdr->profile); |
|
sandersd (OOO until July 31)
2017/01/17 21:29:00
I've not checked all of the VAAPI decoder for cons
|
| return false; |
| } |