aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkBlitter.h
diff options
context:
space:
mode:
authorGravatar Florin Malita <fmalita@chromium.org>2017-05-15 15:06:39 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-16 02:01:03 +0000
commit7d022e099ba586804bd326fcb45c1a2d805d7c7d (patch)
tree684c0f71157dc349255907f56ceeb4c52c3ca164 /src/core/SkBlitter.h
parenta5da966a863b75f944cf153a6507555bf1b45aaf (diff)
Always use raster pipeline for SkSweepGradient
Add an opt-in mechanism (SkShader::isRasterPipelineOnly) and switch SkSweepGradient to always-RP. This also repurposes the existing SK_LEGACY_SWEEP_GRADIENT guard. Change-Id: Iabf0a701eda56f009d331120f0c987f96bd35d27 Reviewed-on: https://skia-review.googlesource.com/16912 Reviewed-by: Mike Reed <reed@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org> Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'src/core/SkBlitter.h')
-rw-r--r--src/core/SkBlitter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/SkBlitter.h b/src/core/SkBlitter.h
index 1fc49594c9..27552b918f 100644
--- a/src/core/SkBlitter.h
+++ b/src/core/SkBlitter.h
@@ -150,6 +150,8 @@ public:
static SkShader::ContextRec::DstType PreferredShaderDest(const SkImageInfo&);
+ static bool UseRasterPipelineBlitter(const SkPixmap&, const SkPaint&);
+
protected:
SkAutoMalloc fBlitMemory;
};