Revisit high-contrast filter to avoid unnecessary paint copies |
|
Issue descriptionThe current filter implementation copies all paints on the fly, at draw time, even when the HC feature is disabled. This introduces unneeded ref-count churn. Without looking too closely, I think we should be able to avoid these copies. Some ideas: - Most paints should be sourced from GraphicsContextState -- apply the HC filter when setting the color, not on paint use. - Update ApplyHighContrastFilter to return a lazy/COW value (equivalent to SkTCopyOnFirstWrite). |
|
►
Sign in to add a comment |
|
Comment 1 by bugdroid1@chromium.org
, Dec 27