• Michael Ludwig's avatar
    Fix YUV quad texture coordinate generation · 6f719904
    Michael Ludwig authored
    It is supposed to use params.visible_rect instead of quad->visible_rect
    to get the correct relative relationship between the original rectangle
    and the texture coordinates. If params.visible_rect isn't used, when
    a scissor test was explicitly applied, ScaleRectProportional would not
    calculate the proper visible texture coordinates (basically it would
    think the visible rectangle hadn't been clipped from the original).
    
    Bug: 948225
    Change-Id: I426443484f5f0b8391e23fe38e29328807e5a2fe
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1546785
    Commit-Queue: Michael Ludwig <michaelludwig@google.com>
    Reviewed-by: default avatarweiliangc <weiliangc@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#646515}
    6f719904
skia_renderer.cc 73.1 KB