Skip to content
Commit 9d2c91e9 authored by Bijan Choobineh's avatar Bijan Choobineh Committed by Chromium LUCI CQ
Browse files

media/gpu/ip_factory: Update GL Scaling for VDA tests

In crrev/c/5327871, the |kUseGLForScaling| flag was set to be enabled
by default. This resulted in the video_decode_accelerator_tests being
broken due to ozone and threading errors.

The test was updated to initialize Ozone and GLSurfaceTestSupport.
To handle threading, |ScopedAllowBaseSyncPrimitives| was added to
the gl backend and thread restrictions was updated respectively to make
the gl backend a friend class.

Finally, the image_processor_factory is updated to make sure that the
|useGLForScaling| flag only creates a valid GLBackend when the operation
is NV12 scaling.

Bug: b:328511661
Test: Successfully ran v_d_a tests on a Cherry
Also ran image_processor_test on a Cherry

Successfully ran image_processor_perf_tests on a Cherry

Change-Id: Ief0ea84dd1829066703b137112cc1d0dcea18f5b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5353745


Commit-Queue: Bijan Choobineh‎ <bchoobineh@chromium.org>
Reviewed-by: default avatarFritz Koenig <frkoenig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1271859}
parent 8ea717ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment