diff options
author | Mike Reed <reed@google.com> | 2017-07-19 10:57:53 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-19 15:20:04 +0000 |
commit | 883c9bce671fb955574a6c0e46f57f57189bd6c6 (patch) | |
tree | 6ba5d584624c7c58425e167f350c5805e53c1ef5 /src/core/SkBlitter.cpp | |
parent | 9291b2921bd12343c6df4c5dd4baed9113941af9 (diff) |
experimental: draw into unpremul
raster-only
Bug: skia:
Change-Id: I3af19f031083c9cc258f73ba6a2f6020bb15f110
Reviewed-on: https://skia-review.googlesource.com/24400
Commit-Queue: Mike Reed <reed@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/core/SkBlitter.cpp')
-rw-r--r-- | src/core/SkBlitter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/SkBlitter.cpp b/src/core/SkBlitter.cpp index c79795b5fe..45a569835b 100644 --- a/src/core/SkBlitter.cpp +++ b/src/core/SkBlitter.cpp @@ -785,6 +785,9 @@ bool SkBlitter::UseRasterPipelineBlitter(const SkPixmap& device, const SkPaint& if (gSkForceRasterPipelineBlitter) { return true; } + if (device.info().alphaType() == kUnpremul_SkAlphaType) { + return true; + } #if 0 || defined(SK_FORCE_RASTER_PIPELINE_BLITTER) return true; #else |