diff options
author | Ethan Nicholas <ethannicholas@google.com> | 2018-03-27 14:10:52 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-27 18:39:13 +0000 |
commit | 26a9aad63b60c9cbbdfa87c212a4e76ce55e7373 (patch) | |
tree | d4a42afd75bdff6c7815be7bf78b42cab742df19 /src/core/SkRasterPipeline.cpp | |
parent | 3560b58de36988e1fba54d9ac341735ab849e913 (diff) |
initial SkSLJIT checkin
Docs-Preview: https://skia.org/?cl=112204
Bug: skia:
Change-Id: I10042a0200db00bd8ff8078467c409b1cf191f50
Reviewed-on: https://skia-review.googlesource.com/112204
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/core/SkRasterPipeline.cpp')
-rw-r--r-- | src/core/SkRasterPipeline.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/SkRasterPipeline.cpp b/src/core/SkRasterPipeline.cpp index 8d980da9cf..46658969cd 100644 --- a/src/core/SkRasterPipeline.cpp +++ b/src/core/SkRasterPipeline.cpp @@ -25,7 +25,12 @@ void SkRasterPipeline::append(StockStage stage, void* ctx) { this->unchecked_append(stage, ctx); } void SkRasterPipeline::unchecked_append(StockStage stage, void* ctx) { - fStages = fAlloc->make<StageList>( StageList{fStages, stage, ctx} ); + fStages = fAlloc->make<StageList>( StageList{fStages, (uint64_t) stage, ctx, false} ); + fNumStages += 1; + fSlotsNeeded += ctx ? 2 : 1; +} +void SkRasterPipeline::append(void* fn, void* ctx) { + fStages = fAlloc->make<StageList>( StageList{fStages, (uint64_t) fn, ctx, true} ); fNumStages += 1; fSlotsNeeded += ctx ? 2 : 1; } |