Summary: | Lots of layers get solid color but transparent contents layers now | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> | ||||
Component: | Layout and Rendering | Assignee: | Simon Fraser (smfr) <simon.fraser> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | noam, simon.fraser, thorton | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Simon Fraser (smfr)
2013-10-30 16:10:57 PDT
At least for TextureMapper this is not a problem, I'm not familiar with the implications of this for CA. Do you avoid contentsLayers for the transparent color? Content layers are really more of a CA concept... In TextureMapper we just mark those layers as having a solid color and no backing store and they're rendered that way. But in general it should be safe to treat "transparent" solid color as a sign to delete the content layer, as an optimization inside GraphicsLayerCA and friends. Created attachment 216343 [details]
Patch
Comment on attachment 216343 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=216343&action=review > Source/WebCore/ChangeLog:13 > + Fix only making a background-color layer if the color is not transparent (zero alpha). fix only making. |