From c54d8db4d169ea5f2af2a9a2349df007bd428475 Mon Sep 17 00:00:00 2001 From: Florin Malita Date: Wed, 10 Dec 2014 12:02:16 -0500 Subject: Remove SkCanvas::drawBitmapMatrix() R=mtklein@google.com, reed@google.com, robertphillips@google.com Review URL: https://codereview.chromium.org/789033002 --- tests/PictureTest.cpp | 1 - tests/SurfaceTest.cpp | 5 ----- 2 files changed, 6 deletions(-) (limited to 'tests') diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp index 7a8c8fa9e3..b4c2a74469 100644 --- a/tests/PictureTest.cpp +++ b/tests/PictureTest.cpp @@ -1779,7 +1779,6 @@ static void draw_bitmaps(const SkBitmap bitmap, SkCanvas* canvas) { // Don't care what these record, as long as they're legal. canvas->drawBitmap(bitmap, 0.0f, 0.0f, &paint); canvas->drawBitmapRectToRect(bitmap, &rect, rect, &paint, SkCanvas::kNone_DrawBitmapRectFlag); - canvas->drawBitmapMatrix(bitmap, SkMatrix::I(), &paint); canvas->drawBitmapNine(bitmap, irect, rect, &paint); canvas->drawSprite(bitmap, 1, 1); } diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp index c77c25186c..1f0db67c5c 100644 --- a/tests/SurfaceTest.cpp +++ b/tests/SurfaceTest.cpp @@ -240,10 +240,6 @@ static void TestSurfaceCopyOnWrite(skiatest::Reporter* reporter, SurfaceType sur const SkRect testRect = SkRect::MakeXYWH(SkIntToScalar(0), SkIntToScalar(0), SkIntToScalar(4), SkIntToScalar(5)); - SkMatrix testMatrix; - testMatrix.reset(); - testMatrix.setScale(SkIntToScalar(2), SkIntToScalar(3)); - SkPath testPath; testPath.addRect(SkRect::MakeXYWH(SkIntToScalar(0), SkIntToScalar(0), SkIntToScalar(2), SkIntToScalar(1))); @@ -305,7 +301,6 @@ static void TestSurfaceCopyOnWrite(skiatest::Reporter* reporter, SurfaceType sur EXPECT_COPY_ON_WRITE(drawPath(testPath, testPaint)) EXPECT_COPY_ON_WRITE(drawBitmap(testBitmap, 0, 0)) EXPECT_COPY_ON_WRITE(drawBitmapRect(testBitmap, NULL, testRect)) - EXPECT_COPY_ON_WRITE(drawBitmapMatrix(testBitmap, testMatrix, NULL)) EXPECT_COPY_ON_WRITE(drawBitmapNine(testBitmap, testIRect, testRect, NULL)) EXPECT_COPY_ON_WRITE(drawSprite(testBitmap, 0, 0, NULL)) EXPECT_COPY_ON_WRITE(drawText(testText.c_str(), testText.size(), 0, 1, testPaint)) -- cgit v1.2.3