Commit d28b7967 authored by Miguel Casas's avatar Miguel Casas Committed by Commit Bot

media/gpu/vaapi: add a DCHECK and stringify a log

Just adding a DCHECK and using a stringify function in a log.
No functionality change intended.

Bug: b:162962069
Change-Id: Ie7f7520fe769405342bc21a15c810bb9c35eef8e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2367444
Auto-Submit: Miguel Casas <mcasas@chromium.org>
Commit-Queue: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: default avatarHirokazu Honda <hiroh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#800318}
parent e1733839
...@@ -745,8 +745,8 @@ bool AreAttribsSupported(const base::Lock* va_lock, ...@@ -745,8 +745,8 @@ bool AreAttribsSupported(const base::Lock* va_lock,
if (attribs[i].type != required_attribs[i].type || if (attribs[i].type != required_attribs[i].type ||
(attribs[i].value & required_attribs[i].value) != (attribs[i].value & required_attribs[i].value) !=
required_attribs[i].value) { required_attribs[i].value) {
DVLOG(1) << "Unsupported value " << required_attribs[i].value DVLOG(1) << "Unsupported value " << required_attribs[i].value << " for "
<< " for attribute type " << required_attribs[i].type; << vaConfigAttribTypeStr(required_attribs[i].type);
return false; return false;
} }
} }
...@@ -2151,6 +2151,7 @@ bool VaapiWrapper::BlitSurface(const VASurface& va_surface_src, ...@@ -2151,6 +2151,7 @@ bool VaapiWrapper::BlitSurface(const VASurface& va_surface_src,
base::Optional<gfx::Rect> src_rect, base::Optional<gfx::Rect> src_rect,
base::Optional<gfx::Rect> dest_rect, base::Optional<gfx::Rect> dest_rect,
VideoRotation rotation) { VideoRotation rotation) {
DCHECK_EQ(mode_, kVideoProcess);
base::AutoLock auto_lock(*va_lock_); base::AutoLock auto_lock(*va_lock_);
// Create a buffer for VPP if it has not been created. // Create a buffer for VPP if it has not been created.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment