-
Brian Osman authored
Skia's NullGL interface is deprecated, and soon to be removed. For some unit tests in other modules, the Mock GrContext is a drop-in replacement. Here, we end up testing the same path in PaintCanvasVideoRenderer, but with slightly different behavior inside Skia. Ultimately, NewSkImageFromVideoFrameNative returns nullptr. Previously, this was due to the context being abandoned. Now, it fails because the Mock context doesn't support adopted textures at all. (The new code would test the same code path even without the abandonContext call). See also: https://cs.chromium.org/chromium/src/media/renderers/paint_canvas_video_renderer.cc?l=239 Change-Id: Ida0b22c7c60fc5217d5931b79f44a61cc80992b5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1540357 Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by:
Dan Sanders <sandersd@chromium.org> Cr-Commit-Position: refs/heads/master@{#644771}
db5fcdbc