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

Unified Diff: gm/pictureimagefilter.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 | « gm/bitmapsource.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/pictureimagefilter.cpp
diff --git a/gm/pictureimagefilter.cpp b/gm/pictureimagefilter.cpp
index a4cb6b3f5f6e68b675acc9fd0a4f172564550273..fd8ae62fa23677b15fa3a1c2e166430faa1b25b8 100644
--- a/gm/pictureimagefilter.cpp
+++ b/gm/pictureimagefilter.cpp
@@ -25,7 +25,7 @@ protected:
void makePicture() {
SkPictureRecorder recorder;
SkCanvas* canvas = recorder.beginRecording(100, 100, NULL, 0);
- canvas->clear(0x00000000);
+ canvas->clear(SK_ColorBLACK);
SkPaint paint;
paint.setAntiAlias(true);
sk_tool_utils::set_portable_typeface(&paint);
@@ -52,7 +52,7 @@ protected:
}
void onDraw(SkCanvas* canvas) override {
- canvas->clear(0x00000000);
+ canvas->clear(SK_ColorBLACK);
{
SkRect srcRect = SkRect::MakeXYWH(20, 20, 30, 30);
SkRect emptyRect = SkRect::MakeXYWH(20, 20, 0, 0);
« no previous file with comments | « gm/bitmapsource.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698