aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/bigblurs.cpp
diff options
context:
space:
mode:
authorGravatar Takahiro.Aizawa <Takahiro.Aizawa@sonymobile.com>2015-06-15 02:52:46 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-15 02:52:46 -0700
commitb5b50a07abb454abaf6ab46db20c6db6f5ecf9f6 (patch)
tree39b221971fc0b5b1540d2c7fba9e6860fdada3b6 /gm/bigblurs.cpp
parenteee0e4e9d343d8b6c5ae2da7f17196f00d8859bc (diff)
SkGIFMovie: 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: Review URL: https://codereview.chromium.org/1184083002
Diffstat (limited to 'gm/bigblurs.cpp')
0 files changed, 0 insertions, 0 deletions