From 544e0ad49c11bd349782618de6430bdf8cec0106 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Thu, 20 Apr 2017 05:40:39 -0400 Subject: remove dead code around SK_SUPPORT_LEGACY_CANVAS_READPIXELS Bug: skia:6513 Change-Id: I8e4e0ffb371ae5b1af972110339e57d491ad9ff1 Reviewed-on: https://skia-review.googlesource.com/13779 Reviewed-by: Mike Reed Commit-Queue: Mike Reed --- tests/ReadPixelsTest.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'tests/ReadPixelsTest.cpp') diff --git a/tests/ReadPixelsTest.cpp b/tests/ReadPixelsTest.cpp index 89706ac5c0..9cb9200f5a 100644 --- a/tests/ReadPixelsTest.cpp +++ b/tests/ReadPixelsTest.cpp @@ -380,23 +380,6 @@ static void test_readpixels(skiatest::Reporter* reporter, const sk_sp REPORTER_ASSERT(reporter, bmp.isNull()); } } -#ifdef SK_SUPPORT_LEGACY_CANVAS_READPIXELS - // check the old webkit version of readPixels that clips the - // bitmap size - SkBitmap wkbmp; - bool success = canvas->readPixels(srcRect, &wkbmp); - SkIRect clippedRect = DEV_RECT; - if (clippedRect.intersect(srcRect)) { - REPORTER_ASSERT(reporter, success); - REPORTER_ASSERT(reporter, kN32_SkColorType == wkbmp.colorType()); - REPORTER_ASSERT(reporter, kPremul_SkAlphaType == wkbmp.alphaType()); - check_read(reporter, wkbmp, clippedRect.fLeft, - clippedRect.fTop, true, false, - kN32_SkColorType, kPremul_SkAlphaType); - } else { - REPORTER_ASSERT(reporter, !success); - } -#endif } } } -- cgit v1.2.3