refactor SkRasterPipelineBlitter
authorMike Klein <mtklein@chromium.org>
Fri, 19 May 2017 16:01:01 +0000 (12:01 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Mon, 22 May 2017 14:28:15 +0000 (14:28 +0000)
commitb35cb3143e1f999095af28e0de2ace3ff4ef6b9e
tree255abc2b09f9652a686e450657530c3ccb79f7cd
parent1859f69d20e433b86714e5b9002121f2b20a5fc6
refactor SkRasterPipelineBlitter

This refactors the factories so that the create-from-paint factory is a
front-patch to the create-from-shader-pipeline factory.  Feature-wise,
we make the pre-baked shader pipeline responsible for modulating by
paint alpha; the factory only adds when creating from the paint.

We can fold the alpha into the colors in drawVertices, which makes it
run a bit faster, dropping the need for a scale_1_float runtime stage.
This causes a few invisible diffs on the "vertices" GM, but everything
else draws the same.

Change-Id: I3eeacc9aafbce2023ab18991bbb68c35645e9387
Reviewed-on: https://skia-review.googlesource.com/17395
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
src/core/SkCoreBlitters.h
src/core/SkDraw_vertices.cpp
src/core/SkRasterPipelineBlitter.cpp