Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: gm/bitmaprect.cpp

Issue 1230823007: Revert of guard to remove DrawBitmapRectFlags (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bench/GameBench.cpp ('k') | gm/drawbitmaprect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/bitmaprect.cpp
diff --git a/gm/bitmaprect.cpp b/gm/bitmaprect.cpp
index 7e833cb6c84019669fc1bd209632e457bb4ea772..ff52c15e5d9963cf570ced85c7c0a284c2b8c0ef 100644
--- a/gm/bitmaprect.cpp
+++ b/gm/bitmaprect.cpp
@@ -73,7 +73,7 @@
canvas->drawBitmapRect(bitmap, &srcR, dstR, &paint,
SkCanvas::kStrict_SrcRectConstraint);
} else {
- canvas->drawBitmapRect(bitmap, src[i], dstR, &paint);
+ canvas->drawBitmapRect(bitmap, &src[i], dstR, &paint);
}
canvas->drawRect(dstR, paint);
@@ -143,7 +143,7 @@
SkRect srcR = { 0.5f, 0.5f, 2.5f, 2.5f };
SkRect dstR = { 100, 100, 300, 200 };
- canvas->drawBitmapRect(bitmap, &srcR, dstR, NULL);
+ canvas->drawBitmapRectToRect(bitmap, &srcR, dstR, NULL);
}
private:
@@ -213,16 +213,16 @@
SkRect dstR2 = { 10, 410, 30, 430 };
if (!fUseIRect) {
- canvas->drawBitmapRect(fBigBitmap, &srcR1, dstR1, &paint);
- canvas->drawBitmapRect(fBigBitmap, &srcR2, dstR2, &paint);
+ canvas->drawBitmapRectToRect(fBigBitmap, &srcR1, dstR1, &paint);
+ canvas->drawBitmapRectToRect(fBigBitmap, &srcR2, dstR2, &paint);
} else {
SkIRect iSrcR1, iSrcR2;
srcR1.roundOut(&iSrcR1);
srcR2.roundOut(&iSrcR2);
- canvas->drawBitmapRect(fBigBitmap, iSrcR1, dstR1, &paint);
- canvas->drawBitmapRect(fBigBitmap, iSrcR2, dstR2, &paint);
+ canvas->drawBitmapRect(fBigBitmap, &iSrcR1, dstR1, &paint);
+ canvas->drawBitmapRect(fBigBitmap, &iSrcR2, dstR2, &paint);
}
}
« no previous file with comments | « bench/GameBench.cpp ('k') | gm/drawbitmaprect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698