[webkit-reviews] review denied: [Bug 79659] Optimize Canvas fill and drawImage with SourceIn, DestinationIn, SourceOut, and DestinationAtop using transparencyLayer. : [Attachment 129011] patch v.2

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 27 09:52:34 PST 2012


Simon Fraser (smfr) <simon.fraser at apple.com> has denied Huang Dongsung
<luxtella at company100.net>'s request for review:
Bug 79659: Optimize Canvas fill and drawImage with SourceIn, DestinationIn,
SourceOut, and DestinationAtop using transparencyLayer.
https://bugs.webkit.org/show_bug.cgi?id=79659

Attachment 129011: patch v.2
https://bugs.webkit.org/attachment.cgi?id=129011&action=review

------- Additional Comments from Simon Fraser (smfr) <simon.fraser at apple.com>
View in context: https://bugs.webkit.org/attachment.cgi?id=129011&action=review


> Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp:935
> +#if PLATFORM(QT)

We try to discourage platform #ifdefs like this in common code. It would be
much better if the #ifdef was something like
TRANSPARENCYLAYER_USES_COMPOSITING_OPERATOR
or something.

> Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp:990
> -void GraphicsContext::endPlatformTransparencyLayer()
> +void GraphicsContext::endPlatformTransparencyLayer(CompositeOperator)

I think this patch should at least add an assertion that the operator is
srcOver on all platforms where you leave it unimplemented.


More information about the webkit-reviews mailing list