From 12e946b4bfdf598bffb276776ea6e25439e25265 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Mon, 17 Apr 2017 10:53:29 -0400 Subject: deprecate odd variants of SkCanvas::readPixels Bug: skia:6513 Change-Id: I51179a85f0912d3f899c368c30a943d346dd1d05 Reviewed-on: https://skia-review.googlesource.com/13589 Reviewed-by: Florin Malita Reviewed-by: Matt Sarett Commit-Queue: Mike Reed --- tests/DrawPathTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/DrawPathTest.cpp') diff --git a/tests/DrawPathTest.cpp b/tests/DrawPathTest.cpp index 87d51b100e..2434bdfccd 100644 --- a/tests/DrawPathTest.cpp +++ b/tests/DrawPathTest.cpp @@ -26,7 +26,7 @@ static void test_big_aa_rect(skiatest::Reporter* reporter) { int y = SkScalarRoundToInt(r.top()); // check that the pixel in question starts as transparent (by the surface) - if (canvas->readPixels(&output, x, y)) { + if (canvas->readPixels(output, x, y)) { REPORTER_ASSERT(reporter, 0 == pixel[0]); } else { REPORTER_ASSERT_MESSAGE(reporter, false, "readPixels failed"); @@ -39,7 +39,7 @@ static void test_big_aa_rect(skiatest::Reporter* reporter) { canvas->drawRect(r, paint); // Now check that it is BLACK - if (canvas->readPixels(&output, x, y)) { + if (canvas->readPixels(output, x, y)) { // don't know what swizzling PMColor did, but white should always // appear the same. REPORTER_ASSERT(reporter, 0xFFFFFFFF == pixel[0]); -- cgit v1.2.3