commit | 23df2d693304824a2ce7ac3d988b0e48fec1c49d | [log] [tgz] |
---|---|---|
author | fmalita <fmalita@chromium.org> | Wed Oct 22 07:39:08 2014 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed Oct 22 07:39:08 2014 -0700 |
tree | 48ba49205bcbff5ed68fee96ed7ff3ca541dfe28 | |
parent | 02b4725cb8f01fec66f9bca7175560afaf3e8928 [diff] |
Picture shader resource caching. Replace the current/naive shader caching mechanism with a more general implementation based on SkResourceCache. Caching the bitmap shader itself (as opposed to just the tile bitmap) makes for a chunkier key, but OTOH avoids allocating new shaders on cache hit. R=reed@google.com,mtklein@google.com Review URL: https://codereview.chromium.org/671683004