diff options
author | Mike Klein <mtklein@chromium.org> | 2017-05-24 07:53:00 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-05-24 14:54:15 +0000 |
commit | b24704d35f67f5b460be9c92794892e06adceb46 (patch) | |
tree | bfa2c4929e37da568f8b9ccf704f0ea07c48a17e /tests | |
parent | 3cac5b8d736a81134f2acd3bf4af9b92c6825f2a (diff) |
SkRasterPipeline in SkArenaAlloc
Bug: skia:6673
Change-Id: Ia2bae4f6a9039a007a10b6b45bcf2f0854bf6e5c
Reviewed-on: https://skia-review.googlesource.com/17794
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/F16StagesTest.cpp | 4 | ||||
-rw-r--r-- | tests/ParametricStageTest.cpp | 2 | ||||
-rw-r--r-- | tests/SRGBTest.cpp | 2 | ||||
-rw-r--r-- | tests/SkRasterPipelineTest.cpp | 8 |
4 files changed, 8 insertions, 8 deletions
diff --git a/tests/F16StagesTest.cpp b/tests/F16StagesTest.cpp index 73072e3870..cdf2daf09a 100644 --- a/tests/F16StagesTest.cpp +++ b/tests/F16StagesTest.cpp @@ -22,7 +22,7 @@ DEF_TEST(F16Stages, r) { uint16_t* f16 = halfs; { - SkRasterPipeline p; + SkRasterPipeline_<256> p; p.append(SkRasterPipeline:: load_f32, &f32); p.append(SkRasterPipeline::store_f16, &f16); p.run(0,16/4); @@ -37,7 +37,7 @@ DEF_TEST(F16Stages, r) { REPORTER_ASSERT(r, f16[7] == 0x4000); { - SkRasterPipeline p; + SkRasterPipeline_<256> p; p.append(SkRasterPipeline:: load_f16, &f16); p.append(SkRasterPipeline::store_f32, &f32); p.run(0,16/4); diff --git a/tests/ParametricStageTest.cpp b/tests/ParametricStageTest.cpp index 89b67c071a..6edb9d9473 100644 --- a/tests/ParametricStageTest.cpp +++ b/tests/ParametricStageTest.cpp @@ -19,7 +19,7 @@ static void check_error(skiatest::Reporter* r, float limit, SkColorSpaceTransfer const float* ip = in; float* op = out; - SkRasterPipeline p; + SkRasterPipeline_<256> p; p.append(SkRasterPipeline::load_f32, &ip); p.append(SkRasterPipeline::parametric_r, &fn); p.append(SkRasterPipeline::parametric_g, &fn); diff --git a/tests/SRGBTest.cpp b/tests/SRGBTest.cpp index 4d0084ab22..78855a34c8 100644 --- a/tests/SRGBTest.cpp +++ b/tests/SRGBTest.cpp @@ -47,7 +47,7 @@ DEF_TEST(sk_pipeline_srgb_roundtrip, r) { auto ptr = (void*)reds; - SkRasterPipeline p; + SkRasterPipeline_<256> p; p.append(SkRasterPipeline::load_8888, &ptr); p.append_from_srgb(kUnpremul_SkAlphaType); p.append(SkRasterPipeline::to_srgb); diff --git a/tests/SkRasterPipelineTest.cpp b/tests/SkRasterPipelineTest.cpp index f7c14569ef..da37aa23c3 100644 --- a/tests/SkRasterPipelineTest.cpp +++ b/tests/SkRasterPipelineTest.cpp @@ -20,7 +20,7 @@ DEF_TEST(SkRasterPipeline, r) { void* load_d_ctx = &red; void* store_ctx = &result; - SkRasterPipeline p; + SkRasterPipeline_<256> p; p.append(SkRasterPipeline::load_f16, &load_s_ctx); p.append(SkRasterPipeline::move_src_dst); p.append(SkRasterPipeline::load_f16, &load_d_ctx); @@ -38,14 +38,14 @@ DEF_TEST(SkRasterPipeline, r) { DEF_TEST(SkRasterPipeline_empty, r) { // No asserts... just a test that this is safe to run. - SkRasterPipeline p; + SkRasterPipeline_<256> p; p.run(0,20); } DEF_TEST(SkRasterPipeline_nonsense, r) { // No asserts... just a test that this is safe to run and terminates. // srcover() calls st->next(); this makes sure we've always got something there to call. - SkRasterPipeline p; + SkRasterPipeline_<256> p; p.append(SkRasterPipeline::srcover); p.run(0,20); } @@ -66,7 +66,7 @@ DEF_TEST(SkRasterPipeline_JIT, r) { uint32_t* dst = buf + 36; // Copy buf[x] to buf[x+36] for x in [15,35). - SkRasterPipeline p; + SkRasterPipeline_<256> p; p.append(SkRasterPipeline:: load_8888, &src); p.append(SkRasterPipeline::store_8888, &dst); p.run(15, 20); |