SkiaRenderer: Disable AA and blending with |force_anti_aliasing_off|
SkiaRenderer is ignoring the flag |force_anti_aliasing_off_| in RenderPassDrawQuad and SolidColorDrawQuad. Check for this flag and turn off AA if it is present. The pixel tests also expect alpha blending to be disabled if this flag is present, so use blend mode kSrc instead of kSrcOver. This fixes the tests RenderPassDrawQuadForceAntiAliasingOff and SolidColorDrawQuadForceAntiAliasingOff for SkiaRenderer, so enable them. Also enable TileDrawQuadForceAntiAliasingOff and SolidColorDrawQuad, which are passing after other changes. Bug: 939442 Change-Id: Ifd4092bbeb9925f0db3a1b25a51785755e06b272 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1529296Reviewed-by:weiliangc <weiliangc@chromium.org> Commit-Queue: Sean Gilhuly <sgilhuly@chromium.org> Cr-Commit-Position: refs/heads/master@{#644479}
Showing
Please register or sign in to comment