DescriptionWebGL's SVGImage buffer should be cleared
When building SVG image-backed WebGL textures, we're currently drawing
into a reusable buffer. Since SVG images are not guaranteed to be
opaque, we should clear the buffer as needed.
Update the existing test to cover this logic (the updated version fails
at ToT but passes with the patch).
Also reactivate the imageForRender null-check (ineffective after
http://crrev.com/29203004), and change drawImageIntoBuffer() to take a
ref instead of a raw ptr.
TEST=fast/canvas/webgl/tex-image-and-sub-image-2d-with-svg-image.html
BUG=500180
R=kbr@chromium.org,pdr@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201929
Patch Set 1 #Patch Set 2 : todo comment #Patch Set 3 : updated results #
Total comments: 5
Patch Set 4 : review comments #
Messages
Total messages: 13 (3 generated)
|