Remove circuitous color parameter plumbing
Move methods for getting and setting color space and pixel format from a string to CanvasColorParams. CanvasRenderingContext has ColorSpaceAsString and PixelFormatAsString method, which are redundant because it also has a method to get the CanvasColorParams, from which these can be queried. CanvasRenderingContext also has logic to handle situations where the color space and pixel format are changed from what was specified. This never happens, so remove it. Also remove a number of redundant ColorSpace and PixelFormat accessors. This will simplify adding these parameters to WebGLContextAttributes, which was accidentally forgotten. Bug: 1164230 Change-Id: I0471939c1f98b0c78f7a5dbbd3fb61940b9d7a64 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2617110Reviewed-by:Yi Xu <yiyix@chromium.org> Reviewed-by:
Fernando Serboncini <fserb@chromium.org> Commit-Queue: Yi Xu <yiyix@chromium.org> Cr-Commit-Position: refs/heads/master@{#842839}
Showing
Please register or sign in to comment