Commit e791cb98 authored by Chih-Yu Huang's avatar Chih-Yu Huang Committed by Commit Bot

components: arc: Fix DCHECK at GpuArcVideoDecodeAccelerator

This CL fixes a wrong DCHECK for checking if a Optional has value
before dereferencing it.

BUG=b:153608694
TEST=ninja chrome

Change-Id: I4b054df94555d828d5523a766484e7fbc64ced09
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2413680
Auto-Submit: Chih-Yu Huang <akahuang@chromium.org>
Reviewed-by: default avatarJeffrey Kardatzke <jkardatzke@google.com>
Reviewed-by: default avatarChih-Yu Huang <akahuang@chromium.org>
Commit-Queue: Chih-Yu Huang <akahuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#808144}
parent c841da83
......@@ -493,7 +493,7 @@ void GpuArcVideoDecodeAccelerator::ImportBufferForPicture(
gfx::GpuMemoryBufferHandle gmb_handle;
gmb_handle.type = gfx::NATIVE_PIXMAP;
DCHECK(!secure_mode_.has_value());
DCHECK(secure_mode_.has_value());
if (*secure_mode_) {
// Get protected output buffer associated with |handle_fd|.
// Duplicating handle here is needed as ownership of passed fd is
......
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