diff options
author | Mike Klein <mtklein@chromium.org> | 2017-08-03 10:22:42 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-03 15:37:37 +0000 |
commit | 16776dfb4b307c70d08e316f2ecf2a53953f2e0d (patch) | |
tree | b95896287b957f1286a8f99c872fda9673def4ae /tests/SkRasterPipelineTest.cpp | |
parent | 073073e4a49993818a7fc4996a7fb42f3ec79640 (diff) |
funnel all constant colors through append_constant_color()
My next step is to change the uniform_color context to
struct {
float r,g,b,a;
uint32_t rgba;
};
so that it's trivial to load in both float and 8-bit pipelines.
Change-Id: If9bdde353ced3bf9eb0c63204b4770ed614ad16b
Reviewed-on: https://skia-review.googlesource.com/30481
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'tests/SkRasterPipelineTest.cpp')
-rw-r--r-- | tests/SkRasterPipelineTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/SkRasterPipelineTest.cpp b/tests/SkRasterPipelineTest.cpp index 33e8b4fe15..6f707ce97e 100644 --- a/tests/SkRasterPipelineTest.cpp +++ b/tests/SkRasterPipelineTest.cpp @@ -282,8 +282,9 @@ DEF_TEST(SkRasterPipeline_repeat_tiling, r) { float out[4 * SkJumper_kMaxStride]; SkJumper_TileCtx tile = { 9.0f, 1/9.0f }; - SkRasterPipeline_<256> p; - p.append(SkRasterPipeline::uniform_color, in); + SkSTArenaAlloc<256> alloc; + SkRasterPipeline p(&alloc); + p.append_constant_color(&alloc, in); p.append(SkRasterPipeline::repeat_x, &tile); p.append(SkRasterPipeline::store_rgba, out); p.run(0,0,1,1); |