aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkCoreBlitters.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-07-22 08:53:26 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-22 08:53:26 -0700
commit3011e337693a9786f62d8de9ac4b239ad6dbdaca (patch)
tree757e3e86b8d8918debff3d68cfa3a03b78b303a3 /src/core/SkCoreBlitters.h
parentd50e2401787dc5632453293b65f8255b12450b9b (diff)
Add SkRasterPipeline blitter.
This is now pixel-exact with the existing sRGB SW impl as far as I've tested. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2146413002 CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot Review-Url: https://codereview.chromium.org/2146413002
Diffstat (limited to 'src/core/SkCoreBlitters.h')
-rw-r--r--src/core/SkCoreBlitters.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/SkCoreBlitters.h b/src/core/SkCoreBlitters.h
index 8fcfde6f76..a784d4714a 100644
--- a/src/core/SkCoreBlitters.h
+++ b/src/core/SkCoreBlitters.h
@@ -13,6 +13,7 @@
#include "SkBlitRow.h"
#include "SkShader.h"
#include "SkSmallAllocator.h"
+#include <memory>
class SkRasterBlitter : public SkBlitter {
public:
@@ -210,4 +211,8 @@ SkBlitter* SkBlitter_ChooseD565(const SkPixmap& device, const SkPaint& paint,
SkShader::Context* shaderContext,
SkTBlitterAllocator* allocator);
+
+// Returns nullptr if no SkRasterPipeline blitter can be constructed for this paint.
+std::unique_ptr<SkBlitter> SkCreateRasterPipelineBlitter(const SkPixmap&, const SkPaint&);
+
#endif