aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/animatedGif.cpp
diff options
context:
space:
mode:
authorGravatar scroggo <scroggo@chromium.org>2016-10-24 09:59:53 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-10-24 09:59:53 -0700
commitcf280a484ab02aa63f9f460a521fe22b57d34517 (patch)
tree2fb700fbbfd00b2cec1bbe48b34ebf9ef1333d31 /gm/animatedGif.cpp
parent38a2cf509c0f1540cd4ffd459871d2a50385837a (diff)
Clear background to white in animatedGif GM
White looks the same in 565, reducing the number of differences in gold GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2447793002 Review-Url: https://codereview.chromium.org/2447793002
Diffstat (limited to 'gm/animatedGif.cpp')
-rw-r--r--gm/animatedGif.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gm/animatedGif.cpp b/gm/animatedGif.cpp
index fc6fad0886..6f7f0ddd1b 100644
--- a/gm/animatedGif.cpp
+++ b/gm/animatedGif.cpp
@@ -98,6 +98,7 @@ private:
}
void onDrawBackground(SkCanvas* canvas) override {
+ canvas->clear(SK_ColorWHITE);
if (this->initCodec()) {
SkAutoCanvasRestore acr(canvas, true);
for (size_t frameIndex = 0; frameIndex < fTotalFrames; frameIndex++) {