diff options
author | bsalomon <bsalomon@google.com> | 2016-04-05 10:57:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-05 10:57:14 -0700 |
commit | f3261afed2b2a7853a3f94a7e5b0c11683c09579 (patch) | |
tree | 6f9690047c64c4b987cd0a3353aebeab9944c5eb /tests/ImageFilterTest.cpp | |
parent | fea7de6c1459cb26c9e0a0c72033e9ccaea56530 (diff) |
Remove 'native' context unit test macro.
The only test ran long is GLPrograms. I halved its iteration count to preserve the runtime on devices that support GL and GLES.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1855993002
Review URL: https://codereview.chromium.org/1855993002
Diffstat (limited to 'tests/ImageFilterTest.cpp')
-rw-r--r-- | tests/ImageFilterTest.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp index 58dc1a7161..49455c9481 100644 --- a/tests/ImageFilterTest.cpp +++ b/tests/ImageFilterTest.cpp @@ -652,7 +652,7 @@ DEF_TEST(TestNegativeBlurSigma, reporter) { } #if SK_SUPPORT_GPU -DEF_GPUTEST_FOR_NATIVE_CONTEXT(TestNegativeBlurSigma_Gpu, reporter, context) { +DEF_GPUTEST_FOR_RENDERING_CONTEXTS(TestNegativeBlurSigma_Gpu, reporter, context) { run_gpu_test(reporter, context, 100, test_negative_blur_sigma); } #endif @@ -698,7 +698,7 @@ DEF_TEST(TestZeroBlurSigma, reporter) { } #if SK_SUPPORT_GPU -DEF_GPUTEST_FOR_NATIVE_CONTEXT(TestZeroBlurSigma_Gpu, reporter, context) { +DEF_GPUTEST_FOR_RENDERING_CONTEXTS(TestZeroBlurSigma_Gpu, reporter, context) { run_gpu_test(reporter, context, 100, test_zero_blur_sigma); } #endif @@ -732,7 +732,7 @@ DEF_TEST(ImageFilterFailAffectsTransparentBlack, reporter) { } #if SK_SUPPORT_GPU -DEF_GPUTEST_FOR_NATIVE_CONTEXT(ImageFilterFailAffectsTransparentBlack_Gpu, reporter, context) { +DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ImageFilterFailAffectsTransparentBlack_Gpu, reporter, context) { run_gpu_test(reporter, context, 100, test_fail_affects_transparent_black); } #endif @@ -946,7 +946,7 @@ DEF_TEST(ImageFilterMergeResultSize, reporter) { } #if SK_SUPPORT_GPU -DEF_GPUTEST_FOR_NATIVE_CONTEXT(ImageFilterMergeResultSize_Gpu, reporter, context) { +DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ImageFilterMergeResultSize_Gpu, reporter, context) { run_gpu_test(reporter, context, 100, test_imagefilter_merge_result_size); } #endif @@ -1081,7 +1081,7 @@ DEF_TEST(ImageFilterCropRect, reporter) { } #if SK_SUPPORT_GPU -DEF_GPUTEST_FOR_NATIVE_CONTEXT(ImageFilterCropRect_Gpu, reporter, context) { +DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ImageFilterCropRect_Gpu, reporter, context) { run_gpu_test(reporter, context, 100, test_crop_rects); } #endif @@ -1204,7 +1204,7 @@ DEF_TEST(ImageFilterClippedPictureImageFilter, reporter) { } #if SK_SUPPORT_GPU -DEF_GPUTEST_FOR_NATIVE_CONTEXT(ImageFilterClippedPictureImageFilter_Gpu, reporter, context) { +DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ImageFilterClippedPictureImageFilter_Gpu, reporter, context) { run_gpu_test(reporter, context, 2, test_clipped_picture_imagefilter); } #endif @@ -1456,7 +1456,7 @@ DEF_TEST(ComposedImageFilterOffset, reporter) { } #if SK_SUPPORT_GPU -DEF_GPUTEST_FOR_NATIVE_CONTEXT(ComposedImageFilterOffset_Gpu, reporter, context) { +DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ComposedImageFilterOffset_Gpu, reporter, context) { run_gpu_test(reporter, context, 100, test_composed_imagefilter_offset); } #endif @@ -1500,7 +1500,7 @@ DEF_TEST(ComposedImageFilterBounds, reporter) { } #if SK_SUPPORT_GPU -DEF_GPUTEST_FOR_NATIVE_CONTEXT(ComposedImageFilterBounds_Gpu, reporter, context) { +DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ComposedImageFilterBounds_Gpu, reporter, context) { run_gpu_test(reporter, context, 100, test_composed_imagefilter_bounds); } #endif @@ -1530,7 +1530,7 @@ DEF_TEST(PartialCropRect, reporter) { } #if SK_SUPPORT_GPU -DEF_GPUTEST_FOR_NATIVE_CONTEXT(PartialCropRect_Gpu, reporter, context) { +DEF_GPUTEST_FOR_RENDERING_CONTEXTS(PartialCropRect_Gpu, reporter, context) { run_gpu_test(reporter, context, 100, test_partial_crop_rect); } #endif @@ -1666,7 +1666,7 @@ DEF_TEST(BlurLargeImage, reporter) { #if SK_SUPPORT_GPU -DEF_GPUTEST_FOR_NATIVE_CONTEXT(HugeBlurImageFilter_Gpu, reporter, context) { +DEF_GPUTEST_FOR_RENDERING_CONTEXTS(HugeBlurImageFilter_Gpu, reporter, context) { const SkSurfaceProps props(SkSurfaceProps::kLegacyFontHost_InitType); SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context, @@ -1680,7 +1680,7 @@ DEF_GPUTEST_FOR_NATIVE_CONTEXT(HugeBlurImageFilter_Gpu, reporter, context) { test_huge_blur(&canvas, reporter); } -DEF_GPUTEST_FOR_NATIVE_CONTEXT(XfermodeImageFilterCroppedInput_Gpu, reporter, context) { +DEF_GPUTEST_FOR_RENDERING_CONTEXTS(XfermodeImageFilterCroppedInput_Gpu, reporter, context) { const SkSurfaceProps props(SkSurfaceProps::kLegacyFontHost_InitType); SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context, |