diff options
author | Mike Klein <mtklein@chromium.org> | 2016-11-30 13:45:06 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2016-11-30 20:16:49 +0000 |
commit | c789b61167dd98efc3c3bfcf9673eef24c2e57f4 (patch) | |
tree | ba3a28f33c7d3c5e8c323cacc40125def20c80b2 /tests/SkRasterPipelineTest.cpp | |
parent | c5d0147717e50acba106b76c6c345192274ddc06 (diff) |
Bring back SkRasterPipeline::run() for one-off uses.
CQ_INCLUDE_TRYBOTS=skia.primary:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD
Change-Id: I308b6d75f2987a667eead9a55760a2ff6aec2984
Reviewed-on: https://skia-review.googlesource.com/5353
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'tests/SkRasterPipelineTest.cpp')
-rw-r--r-- | tests/SkRasterPipelineTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/SkRasterPipelineTest.cpp b/tests/SkRasterPipelineTest.cpp index 427bc93015..50c417f5f0 100644 --- a/tests/SkRasterPipelineTest.cpp +++ b/tests/SkRasterPipelineTest.cpp @@ -25,7 +25,7 @@ DEF_TEST(SkRasterPipeline, r) { p.append(SkRasterPipeline::load_f16_d, &load_d_ctx); p.append(SkRasterPipeline::srcover); p.append(SkRasterPipeline::store_f16, &store_ctx); - p.compile()(0,0, 1); + p.run(0,0, 1); // We should see half-intensity magenta. REPORTER_ASSERT(r, ((result >> 0) & 0xffff) == 0x3800); @@ -37,7 +37,7 @@ DEF_TEST(SkRasterPipeline, r) { DEF_TEST(SkRasterPipeline_empty, r) { // No asserts... just a test that this is safe to run. SkRasterPipeline p; - p.compile()(0,0, 20); + p.run(0,0, 20); } DEF_TEST(SkRasterPipeline_nonsense, r) { @@ -45,5 +45,5 @@ DEF_TEST(SkRasterPipeline_nonsense, r) { // srcover() calls st->next(); this makes sure we've always got something there to call. SkRasterPipeline p; p.append(SkRasterPipeline::srcover); - p.compile()(0,0, 20); + p.run(0,0, 20); } |