[Webkit-unassigned] [Bug 64126] Turn antialiasing on only for rects which are are rotated or not scaled
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 12 10:18:03 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=64126
Simon Fraser (smfr) <simon.fraser at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #101237|review? |review-
Flag| |
--- Comment #12 from Simon Fraser (smfr) <simon.fraser at apple.com> 2011-08-12 10:18:03 PST ---
(From update of attachment 101237)
View in context: https://bugs.webkit.org/attachment.cgi?id=101237&action=review
> Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp:724
> + bool restoreAntialiasMode = false;
> + if (shouldAntialias()) {
> + CGContextSetShouldAntialias(platformContext(), false);
> + restoreAntialiasMode = true;
> + }
I think this is too general a fix. You'll affect all rendering here, including canvas rendering.
> Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp:1165
> +bool GraphicsContext::needsAntialiasing()
Should be const.
> Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp:1175
> + // Enable AA for any rotated objects.
> + if (ctm.a() == -ctm.d() && ctm.b() == ctm.c() && !ctm.b())
> + return false;
The comment doesn't match the code.
> Source/WebCore/platform/graphics/cg/ImageCG.cpp:191
> + bool restoreAntialiasMode = false;
> + if (ctxt->shouldAntialias()) {
> + CGContextSetShouldAntialias(ctxt->platformContext(), false);
> + restoreAntialiasMode = true;
> + }
Again, this is too general. You'll change canvas rendering.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list