aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/arithmode.cpp
diff options
context:
space:
mode:
authorGravatar senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-28 19:43:05 +0000
committerGravatar senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-05-28 19:43:05 +0000
commit35c733cc9ce71c4513dfb6f39c4d9df5905e897c (patch)
treef731e87de053fdf7d9afbc5bff6a62bc97833358 /gm/arithmode.cpp
parent435401d38606e9b5b747890da23fd46d7c464ccd (diff)
Fix alpha computation in SkArithmeticMode.
Note: this will require new baselines for the arithmode GM. R=reed@google.com Review URL: https://codereview.chromium.org/15917010 git-svn-id: http://skia.googlecode.com/svn/trunk@9302 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/arithmode.cpp')
-rw-r--r--gm/arithmode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/arithmode.cpp b/gm/arithmode.cpp
index f5e1091eff..2a97eca957 100644
--- a/gm/arithmode.cpp
+++ b/gm/arithmode.cpp
@@ -29,8 +29,8 @@ static SkBitmap make_src() {
SkPaint paint;
SkPoint pts[] = { {0, 0}, {SkIntToScalar(WW), SkIntToScalar(HH)} };
SkColor colors[] = {
- SK_ColorBLACK, SK_ColorGREEN, SK_ColorCYAN,
- SK_ColorRED, SK_ColorMAGENTA, SK_ColorWHITE
+ SK_ColorTRANSPARENT, SK_ColorGREEN, SK_ColorCYAN,
+ SK_ColorRED, SK_ColorMAGENTA, SK_ColorWHITE,
};
SkShader* s = SkGradientShader::CreateLinear(pts, colors, NULL, SK_ARRAY_COUNT(colors),
SkShader::kClamp_TileMode);