From 4edb5d219eb99aa1e8fbe5e37260d3b34314e54b Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Mon, 17 Apr 2017 11:02:51 -0400 Subject: hide lockpixels api behind flag guarded by SK_SUPPORT_OBSOLETE_LOCKPIXELS needs https://codereview.chromium.org/2820873002/# to land first Bug: skia:6481 Change-Id: I1c39902cbf6fe99f622adfa8192733b95f7fea09 Change-Id: I1c39902cbf6fe99f622adfa8192733b95f7fea09 Reviewed-on: https://skia-review.googlesource.com/13580 Reviewed-by: Florin Malita Reviewed-by: Leon Scroggins Commit-Queue: Mike Reed --- tests/HighContrastFilterTest.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'tests/HighContrastFilterTest.cpp') diff --git a/tests/HighContrastFilterTest.cpp b/tests/HighContrastFilterTest.cpp index 35b0c9febd..26f1a7c1f4 100644 --- a/tests/HighContrastFilterTest.cpp +++ b/tests/HighContrastFilterTest.cpp @@ -33,8 +33,6 @@ DEF_TEST(HighContrastFilter_FilterImage, reporter) { paint.setColorFilter(SkHighContrastFilter::Make(config)); canvasFilter.drawRect(r, paint); - paintResult.lockPixels(); - filterResult.lockPixels(); for (int y = r.top(); y < r.bottom(); ++y) { for (int x = r.left(); x < r.right(); ++x) { SkColor paintColor = paintResult.getColor(x, y); @@ -44,8 +42,6 @@ DEF_TEST(HighContrastFilter_FilterImage, reporter) { paint.getColorFilter()->filterColor(paintColor)); } } - paintResult.unlockPixels(); - filterResult.unlockPixels(); } DEF_TEST(HighContrastFilter_SanityCheck, reporter) { -- cgit v1.2.3