DescriptionPicture 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
Committed: https://skia.googlesource.com/skia/+/23df2d693304824a2ce7ac3d988b0e48fec1c49d
Patch Set 1 #Patch Set 2 : include fScale in fLocalMatrix #Patch Set 3 : cannot combine scale & localmatrix #
Total comments: 3
Patch Set 4 : use the cache allocator #
Messages
Total messages: 14 (1 generated)
|