• Sean Gilhuly's avatar
    SkiaRenderer: Disable AA and blending with |force_anti_aliasing_off| · 241d7c77
    Sean Gilhuly authored
    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: default avatarweiliangc <weiliangc@chromium.org>
    Commit-Queue: Sean Gilhuly <sgilhuly@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#644479}
    241d7c77
skia_renderer.cc 64.3 KB