DescriptionThis CL simplifies caching of stencil buffers by:
removing the GrResourceCache::kSingle_LockType
replacing GrStencilBuffer::fRTAttachmentCnt with nested locks from the reffing render targets
This CL also fixes a lock leak in the old system as can be observed in the 'Unlocked Entry Count' fields in the following.
BEFORE
config: gpu 4cad70
Budget: 256 items 16777216 bytes
Entry Count: current 9 high 163
Unlocked Entry Count: current 0 high 162
Entry Bytes: current 11591600 high 198836800
Detached Entry Count: current 0 high 13
Detached Bytes: current 0 high 14133056
config: msaa16 12ad70
Budget: 256 items 16777216 bytes
Entry Count: current 12 high 164
Unlocked Entry Count: current 0 high 162
Entry Bytes: current 217151232 high 317456128
Detached Entry Count: current 0 high 13
Detached Bytes: current 0 high 14133056
AFTER
config: gpu 6a2140
Budget: 256 items 16777216 bytes
Entry Count: current 14 high 168
Unlocked Entry Count: current 13 high 167
Entry Bytes: current 9576980 high 198556800
Detached Entry Count: current 0 high 13
Detached Bytes: current 0 high 14133056
config: msaa16 802140
Budget: 256 items 16777216 bytes
Entry Count: current 7 high 163
Unlocked Entry Count: current 7 high 162
Entry Bytes: current 14256000 high 216988800
Patch Set 1 #Patch Set 2 : Removed change in GrConfig.h #
Total comments: 1
Patch Set 3 : Added comment #
Total comments: 2
MessagesTotal messages: 3
|