DescriptionFixing leaky handling of SkImage in SkDeferredCanvas.
Long lived SkImageHeap objects currently accumulate refs indefinitely.
This leads to massive memory leaks in the gpu-accelerated 2D canvas
code path. This CL does not implement a general fix for SkGPipe, but
it resolves the leak in SkDeferredCanvas (currently the only user
of SkGPipe) by resetting the image heap when the deferral queue is
flushed. This change also fixes the accounting of bytes allocated
by referenced images in order to trigger flushing heuristics
appropriately.
BUG=crbug.com/494148
Committed: https://skia.googlesource.com/skia/+/d26c9fa66c45b5a050580772acfbcc1b5271543e
Patch Set 1 #
Total comments: 4
Patch Set 2 : reed feedback #
Total comments: 1
Messages
Total messages: 15 (4 generated)
|