diff options
author | reed <reed@google.com> | 2015-08-06 10:02:53 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-06 10:02:53 -0700 |
commit | e47829b6b1eeb6b0c97ccb3df3016d197046824c (patch) | |
tree | fb90751c17490f47febe44cabf2c4cf1fa249a48 /gm/bitmaprect.cpp | |
parent | fb1141ae1db2ffce479bc46413b008d31cf9d3cc (diff) |
flag to use const& instead of const* for src-rect
BUG=skia:
Review URL: https://codereview.chromium.org/1272713005
Diffstat (limited to 'gm/bitmaprect.cpp')
-rw-r--r-- | gm/bitmaprect.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gm/bitmaprect.cpp b/gm/bitmaprect.cpp index bde6a6f10a..cfceab5af9 100644 --- a/gm/bitmaprect.cpp +++ b/gm/bitmaprect.cpp @@ -70,7 +70,7 @@ protected: canvas->drawBitmap(bitmap, 0, 0, &paint); if (!fUseIRect) { - canvas->drawBitmapRect(bitmap, &srcR, dstR, &paint, + canvas->drawBitmapRect(bitmap, srcR, dstR, &paint, SkCanvas::kStrict_SrcRectConstraint); } else { canvas->drawBitmapRect(bitmap, src[i], dstR, &paint); @@ -143,7 +143,7 @@ protected: SkRect srcR = { 0.5f, 0.5f, 2.5f, 2.5f }; SkRect dstR = { 100, 100, 300, 200 }; - canvas->drawBitmapRect(bitmap, &srcR, dstR, NULL, SkCanvas::kStrict_SrcRectConstraint); + canvas->drawBitmapRect(bitmap, srcR, dstR, nullptr, SkCanvas::kStrict_SrcRectConstraint); } private: @@ -213,9 +213,9 @@ protected: SkRect dstR2 = { 10, 410, 30, 430 }; if (!fUseIRect) { - canvas->drawBitmapRect(fBigBitmap, &srcR1, dstR1, &paint, + canvas->drawBitmapRect(fBigBitmap, srcR1, dstR1, &paint, SkCanvas::kStrict_SrcRectConstraint); - canvas->drawBitmapRect(fBigBitmap, &srcR2, dstR2, &paint, + canvas->drawBitmapRect(fBigBitmap, srcR2, dstR2, &paint, SkCanvas::kStrict_SrcRectConstraint); } else { canvas->drawBitmapRect(fBigBitmap, srcR1.roundOut(), dstR1, &paint); @@ -263,7 +263,7 @@ protected: // the drawRect shows the same problem as clipRect(r) followed by drawcolor(red) canvas->drawRect(r, paint); - canvas->drawBitmapRect(fBM, NULL, r, NULL); + canvas->drawBitmapRect(fBM, r, nullptr); } private: |