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

Unified Diff: media/gpu/vaapi_video_decode_accelerator.cc

Issue 2598313002: Use GetProfileName() for error logs in gpu_video_decode_accelerator.cc (Closed)
Patch Set: Use GetProfileName() to better explain logs displaying VideoCodecProfile. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/gpu/android_video_encode_accelerator.cc ('k') | media/gpu/vaapi_video_encode_accelerator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..025ad6646fb6d5f19d04da436dd9c746afe8cfeb 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,7 @@ bool VaapiVideoDecodeAccelerator::VaapiVP9Accelerator::SubmitDecode(
DCHECK(frame_hdr);
if (frame_hdr->profile != 0) {
- DVLOG(1) << "Unsupported profile" << frame_hdr->profile;
+ DVLOG(1) << "Unsupported profile" << GetProfileName(frame_hdr->profile);
return false;
}
« no previous file with comments | « media/gpu/android_video_encode_accelerator.cc ('k') | media/gpu/vaapi_video_encode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698