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

Unified Diff: gm/bitmapsource.cpp

Issue 1074513002: Use opaque black not transparent black as imagefilter GM background. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Make pictureimagefilter clear the canvas as well as the picture to opaque black Created 5 years, 8 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 | gm/pictureimagefilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/bitmapsource.cpp
diff --git a/gm/bitmapsource.cpp b/gm/bitmapsource.cpp
index d59524f01169c164ce34591d69d66fd128c67b70..a0a3eca663dceda12097ca06850e80678196b185 100644
--- a/gm/bitmapsource.cpp
+++ b/gm/bitmapsource.cpp
@@ -50,7 +50,7 @@ protected:
}
void onDraw(SkCanvas* canvas) override {
- canvas->clear(0x00000000);
+ canvas->clear(SK_ColorBLACK);
{
SkRect srcRect = SkRect::MakeXYWH(20, 20, 30, 30);
SkRect dstRect = SkRect::MakeXYWH(0, 10, 60, 60);
« no previous file with comments | « no previous file | gm/pictureimagefilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698