Descriptioncc cleanup: simplify mask_uv_scale and MaskUVRect().
RenderPassDrawQuad::MaskUVRect() computes the UV rect by scaling
the quad->rect() by mask_uv_scale, then dividing by quad->rect size.
However, RenderSurfaceImpl::AppendQuads() computes the mask UV scale
as quad->rect() size / mask size. So let's just take the quad->rect() size
out of mask_uv_scale in the first place, so we don't have to divide
it back out in MaskUVRect().
BUG=
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/dfcb362e77eff630f887efd4491814f076e3b8a2
Cr-Commit-Position: refs/heads/master@{#371879}
Patch Set 1 #
Messages
Total messages: 15 (8 generated)
|