Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic infrastructure for caching Pictures, enable for some blurs. #2651

Merged
merged 1 commit into from Apr 15, 2018

Commits on Apr 15, 2018

  1. Add basic infrastructure for caching Pictures, enable for some blurs.

    Adds the basic infrastructure for caching the outputs of a
    rasterized Picture in the texture cache.
    
    For now, this only applies if the following conditions are met:
     * The picture has a blur filter on it (includes text-shadows).
     * The contents of the picture and clips are in the root
       coordinate system (no rotations / perspective etc).
    
    This covers most real-world use cases of blurs and text-shadows.
    
    Future work:
     * Expand to cache other Picture types (e.g. drop-shadows, other filters).
     * Support caching of complex coordinate system pictures which
       are not animating (and thus worth caching).
     * Support deep comparison of picture elements between display lists.
       (caching only applies during scrolling in this first pass).
    gw3583 committed Apr 15, 2018
You can’t perform that action at this time.