Descriptioncc: Fix masks when the RenderPassDrawQuad does not cover the whole pass
If the RenderPassDrawQuad is not the same size as the texture backing
the RenderPass, then we have to scale the texture coordinates when
reading the pass texture.
If the pass has a mask as well, we have to scale those coordinates as
well. However the coordinates given to the mask shader are already
scaled to the size of the contents texture. We further scale and
offset the coordinates but the offset was incorrect.
Tested by:
RendererPixelTest.RenderPassAndMaskWithPartialQuad
LayerTreeHostMasksPixelTest.MaskOfClippedLayer
R=enne
BUG=264534
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=228376
Patch Set 1 #Patch Set 2 : masks: clearer #
Messages
Total messages: 6 (0 generated)
|