Use GrMockContext (rather than NullGL interface) in blink unit tests
Skia's NullGL interface is deprecated, and this is the last piece of code to use it. The Mock context is actually maintained (and simpler), but is functionally a different backend. With https://skia-review.googlesource.com/c/skia/+/204221, it supports exporting textures as "GL", enough to allow CanvasResourceProvider to work properly in tests. That, plus adding BGRA support (done here) gets everything passing. Change-Id: Id39101ed45f72e2294af9093e4610699936528ec Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1542239Reviewed-by:Brian Salomon <bsalomon@google.com> Reviewed-by:
Florin Malita <fmalita@chromium.org> Auto-Submit: Brian Osman <brianosman@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org> Cr-Commit-Position: refs/heads/master@{#646299}
Showing
Please register or sign in to comment