From 6fb0b6779e40ce05c20cf279f0ecff31fa3cd60d Mon Sep 17 00:00:00 2001 From: reed Date: Thu, 16 Jul 2015 06:10:02 -0700 Subject: guard to remove DrawBitmapRectFlags BUG=skia: Review URL: https://codereview.chromium.org/1235393003 --- tests/PictureTest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/PictureTest.cpp') diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp index ba66286350..a20ff2728e 100644 --- a/tests/PictureTest.cpp +++ b/tests/PictureTest.cpp @@ -690,7 +690,7 @@ DEF_TEST(PictureRecorder_replay, reporter) { make_bm(&bm, 10, 10, SK_ColorRED, true); r.offset(5.0f, 5.0f); - canvas->drawBitmapRectToRect(bm, NULL, r); + canvas->drawBitmapRect(bm, r); SkAutoTUnref final(recorder.endRecording()); REPORTER_ASSERT(reporter, final->willPlayBackBitmaps()); @@ -1167,7 +1167,7 @@ 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->drawBitmapRect(bitmap, &rect, rect, &paint); canvas->drawBitmapNine(bitmap, irect, rect, &paint); canvas->drawSprite(bitmap, 1, 1); } @@ -1197,8 +1197,8 @@ DEF_TEST(DontOptimizeSaveLayerDrawDrawRestore, reporter) { // This test is from crbug.com/344987. // The commands are: // saveLayer with paint that modifies alpha - // drawBitmapRectToRect - // drawBitmapRectToRect + // drawBitmapRect + // drawBitmapRect // restore // The bug was that this structure was modified so that: // - The saveLayer and restore were eliminated -- cgit v1.2.3