DescriptionPurge bitmaps from SkGPipe's shared heap.
BitmapInfo:
Now in SkGPipePriv so it can be accessed by SkGPipeRead.
Add the ability to essentially ref count BitmapInfos so that they can
be purged to make room in the shared heap for a new one.
SkGPipeWrite:
Purge the least recently used bitmap if it has already been drawn by
all readers.
SkGPipeRead:
Read the BitmapInfo (instead of the SkBitmap) and decrement its count
after drawing.
SkGPipeController:
Added a method to tell how many readers will be used, so that when
purging bitmaps each reader can be accounted for.
Committed: https://code.google.com/p/skia/source/detail?r=4638
Patch Set 1 #
Total comments: 5
Patch Set 2 : Now uses sk_atomic_add #Patch Set 3 : Use SkNEW(_ARGS) #
Total comments: 8
Patch Set 4 : #
Total comments: 2
Patch Set 5 : Added SK_OVERRIDE and const to numberOfReaders #Patch Set 6 : rebase #
MessagesTotal messages: 10
|