DescriptionSkGIFMovie: Fix corrupted background color
The 'paintingColor' in onGetBitmap() was used to save the entire
gif's background color while filling the 1st frame of a gif image,
since it is 'static' qualified, so when re-entering this function
for subsequent frames, this saved value will be used directly without
re-obtaining it.
But if asynchronous playing multi gif files in single process without
being controlled, this 'static' will make the 'paintingColor'
corrupted, because the different SkGIFMovie instances hold the same
reference of 'paintingColor'.
Signed-off-by: Lu Tong <lu.x.tong@sonymobile.com>;
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/b5b50a07abb454abaf6ab46db20c6db6f5ecf9f6
Patch Set 1 #Patch Set 2 : #Patch Set 3 : Change commit message #
Messages
Total messages: 6 (2 generated)
|