DescriptionFix bug in GrCachedLayer reuse
In the new MultiPictureDraw tests a single hoisted layer is reused multiple times. The previous plot locking scheme allowed GrCachedLayer objects to be aggressively deleted prematurely leaving the reusing GrHoistedLayer objects with dangling pointers.
This CL changes adds a new pseudo-ref to GrCachedLayer. (It can't be a real ref since the cached layers aren't deleted when it goes to 0).
Committed: https://skia.googlesource.com/skia/+/5c481666c9678f43e039ad605457be3854cf8de3
Committed: https://skia.googlesource.com/skia/+/7bb9ed756e8663afe68e1a5fc680d57f83a31fea
Patch Set 1 #Patch Set 2 : clean up #Patch Set 3 : Add missing piece #Patch Set 4 : Different approach #Patch Set 5 : Cleanup #Patch Set 6 : Rename method #Patch Set 7 : More cleanup #
Total comments: 2
Patch Set 8 : Improve comment #
Messages
Total messages: 16 (5 generated)
|