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

Unified Diff: media/gpu/video_encode_accelerator_unittest.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/video_decode_accelerator_unittest.cc ('k') | media/gpu/vt_video_encode_accelerator_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/video_encode_accelerator_unittest.cc
diff --git a/media/gpu/video_encode_accelerator_unittest.cc b/media/gpu/video_encode_accelerator_unittest.cc
index ded9b864e73252eda919cf9c65b2ab8755341d25..11f019b9b8920f25fe9a4cb6aba7aba87a73efb2 100644
--- a/media/gpu/video_encode_accelerator_unittest.cc
+++ b/media/gpu/video_encode_accelerator_unittest.cc
@@ -700,7 +700,7 @@ std::unique_ptr<StreamValidator> StreamValidator::Create(
} else if (IsVP8(profile)) {
validator.reset(new VP8Validator(frame_cb));
} else {
- LOG(FATAL) << "Unsupported profile: " << profile;
+ LOG(FATAL) << "Unsupported profile: " << GetProfileName(profile);
}
return validator;
@@ -773,7 +773,7 @@ void VideoFrameQualityValidator::Initialize(const gfx::Size& coded_size,
COLOR_SPACE_UNSPECIFIED, coded_size, visible_size,
natural_size, EmptyExtraData(), Unencrypted());
else
- LOG_ASSERT(0) << "Invalid profile " << profile_;
+ LOG_ASSERT(0) << "Invalid profile " << GetProfileName(profile_);
decoder_->Initialize(
config, false, nullptr,
« no previous file with comments | « media/gpu/video_decode_accelerator_unittest.cc ('k') | media/gpu/vt_video_encode_accelerator_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698