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:Fritz Koenig <frkoenig@chromium.org> Cr-Commit-Position: refs/heads/main@{#1271859}
Loading
Please register or sign in to comment