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

Unified Diff: media/gpu/vaapi_video_decode_accelerator.cc

Issue 2626023003: Use GetProfileName() for logging VideoCodecProfile strings. (Closed)
Patch Set: Don't use GetProfileName() for H.264 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..8c73cccb391988ff61600d2ac0395b46d21f8dbd 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;
}
« 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