RESOLVED FIXED 52766
[chromium] Composited render surfaces should allow writes to alpha channel.
https://bugs.webkit.org/show_bug.cgi?id=52766
Summary [chromium] Composited render surfaces should allow writes to alpha channel.
Adrienne Walker
Reported 2011-01-19 16:20:50 PST
[chromium] Composited render surfaces should allow writes to alpha channel.
Attachments
Patch (1.57 KB, patch)
2011-01-19 16:21 PST, Adrienne Walker
no flags
Patch (5.90 KB, patch)
2011-01-20 15:09 PST, Adrienne Walker
jamesr: review+
Adrienne Walker
Comment 1 2011-01-19 16:21:55 PST
Adrienne Walker
Comment 2 2011-01-19 16:22:40 PST
Adrienne Walker
Comment 3 2011-01-19 16:23:49 PST
Because render surfaces weren't enabling writes to the alpha channel, it caused issues with blending the text in the search drop down here: http://bodybrowser.googlelabs.com
James Robinson
Comment 4 2011-01-19 16:28:15 PST
Adrienne Walker
Comment 5 2011-01-19 16:44:12 PST
(In reply to comment #4) > (From update of attachment 79518 [details]) > Why doesn't the comment in http://trac.webkit.org/browser/trunk/Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp#L260 apply to non-root layers? My hope would be that we are not turning on subpixel antialiasing when we're not rendering into the backbuffer. Since layers can be repositioned, how would you know which subpixel the layer lines up with? I don't know where I'd look to verify that this is the case.
Vangelis Kokkevis
Comment 6 2011-01-19 16:45:39 PST
Comment on attachment 79518 [details] Patch LGMT. Thanks for taking care of it. Still needs a reviewer to bless it.
James Robinson
Comment 7 2011-01-19 16:47:02 PST
(In reply to comment #5) > (In reply to comment #4) > > (From update of attachment 79518 [details] [details]) > > Why doesn't the comment in http://trac.webkit.org/browser/trunk/Source/WebCore/platform/graphics/chromium/LayerRendererChromium.cpp#L260 apply to non-root layers? > > My hope would be that we are not turning on subpixel antialiasing when we're not rendering into the backbuffer. Since layers can be repositioned, how would you know which subpixel the layer lines up with? > > I don't know where I'd look to verify that this is the case. Ah, of course! The place to check is: http://trac.webkit.org/browser/trunk/Source/WebCore/platform/graphics/chromium/ContentLayerChromium.cpp#L261 and we do turn subpixel AA off for sublayers (currently for all sublayers, but we could revise this in the future for opaque layers or whatever).
James Robinson
Comment 8 2011-01-19 16:52:55 PST
Comment on attachment 79518 [details] Patch You need to remove the (OOPS!) before landing this - preferably with an explanation of why there's no new test added.
James Robinson
Comment 9 2011-01-19 16:53:12 PST
(In reply to comment #8) > (From update of attachment 79518 [details]) > You need to remove the (OOPS!) before landing this - preferably with an explanation of why there's no new test added. Or even more preferably with a list of tests that cover the change :)
W. James MacLean
Comment 10 2011-01-20 06:39:05 PST
I tried this patch on a ToT Mac build, and it didn't seem to work for me. Is something also required on the Chromium side?
W. James MacLean
Comment 11 2011-01-20 10:16:59 PST
(In reply to comment #10) > I tried this patch on a ToT Mac build, and it didn't seem to work for me. Is something also required on the Chromium side? False alarm - apparently I did not run the right image on the Mac, it works for me now. Sorry about that.
Adrienne Walker
Comment 12 2011-01-20 15:09:47 PST
James Robinson
Comment 13 2011-01-20 15:17:35 PST
Comment on attachment 79657 [details] Patch Looks good!
Adrienne Walker
Comment 14 2011-01-20 15:53:54 PST
Note You need to log in before you can comment on or make changes to this bug.