aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2016-11-07 09:29:07 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-11-07 14:58:55 +0000
commitaeb7959fd2d8232846d9d556a42943f8092f1af2 (patch)
treeaabc8ca14c8b85846f8463588ff964f096ecdfa3 /src
parent25495f77069da9e49ea5d08e14ae54a11d0ef084 (diff)
SkRasterPipelineBlitter: blitAntiH + full coverge --> blitH
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4442 Change-Id: Iaf3da7b82c1b3a41fe66c83fb5f9ca589f64851f Reviewed-on: https://skia-review.googlesource.com/4442 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src')
-rw-r--r--src/core/SkRasterPipelineBlitter.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/core/SkRasterPipelineBlitter.cpp b/src/core/SkRasterPipelineBlitter.cpp
index 6aff8dd72f..b8c0107e26 100644
--- a/src/core/SkRasterPipelineBlitter.cpp
+++ b/src/core/SkRasterPipelineBlitter.cpp
@@ -234,9 +234,13 @@ void SkRasterPipelineBlitter::blitAntiH(int x, int y, const SkAlpha aa[], const
fDstPtr = fDst.writable_addr(0,y);
for (int16_t run = *runs; run > 0; run = *runs) {
- fConstantCoverage = *aa * (1/255.0f);
- fBlitAntiH(x, run);
-
+ switch (*aa) {
+ case 0x00: break;
+ case 0xff: this->blitH(x,y,run); break;
+ default:
+ fConstantCoverage = *aa * (1/255.0f);
+ fBlitAntiH(x, run);
+ }
x += run;
runs += run;
aa += run;