Commit e1b54d86 authored by George Burgess IV's avatar George Burgess IV Committed by Commit Bot

webgl: fix an instance of bugprone-unused-raii

It seems that this constructor call was intended to be used as a scope
guard. In order for that to happen, there has to be a variable name
here.

Bug: 1130379
Change-Id: Iddba99a77b86488298c9ca214cfd0cee92b2ac3a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2420920Reviewed-by: default avatarBrandon Jones <bajones@chromium.org>
Commit-Queue: George Burgess <gbiv@chromium.org>
Cr-Commit-Position: refs/heads/master@{#808902}
parent ad53a6ac
...@@ -5865,7 +5865,7 @@ void WebGLRenderingContextBase::TexImageHelperHTMLVideoElement( ...@@ -5865,7 +5865,7 @@ void WebGLRenderingContextBase::TexImageHelperHTMLVideoElement(
if (source_image_rect_is_default) { if (source_image_rect_is_default) {
// Try using optimized CPU-GPU path for some formats: e.g. Y16 and Y8. It // Try using optimized CPU-GPU path for some formats: e.g. Y16 and Y8. It
// leaves early for other formats or if frame is stored on GPU. // leaves early for other formats or if frame is stored on GPU.
ScopedUnpackParametersResetRestore( ScopedUnpackParametersResetRestore unpack_params(
this, unpack_flip_y_ || unpack_premultiply_alpha_); this, unpack_flip_y_ || unpack_premultiply_alpha_);
if (video->TexImageImpl( if (video->TexImageImpl(
static_cast<WebMediaPlayer::TexImageFunctionID>(function_id), static_cast<WebMediaPlayer::TexImageFunctionID>(function_id),
......
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