Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: gm/animatedGif.cpp

Issue 2447793002: Clear background to white in animatedGif GM (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/animatedGif.cpp
diff --git a/gm/animatedGif.cpp b/gm/animatedGif.cpp
index fc6fad08868c6a654066919254487fd790d3d49c..6f7f0ddd1b2fe02885240e091a52a704813d47c5 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++) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698