aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleTextureDomain.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-08-06 10:02:53 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-06 10:02:53 -0700
commite47829b6b1eeb6b0c97ccb3df3016d197046824c (patch)
treefb90751c17490f47febe44cabf2c4cf1fa249a48 /samplecode/SampleTextureDomain.cpp
parentfb1141ae1db2ffce479bc46413b008d31cf9d3cc (diff)
flag to use const& instead of const* for src-rect
Diffstat (limited to 'samplecode/SampleTextureDomain.cpp')
-rw-r--r--samplecode/SampleTextureDomain.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/samplecode/SampleTextureDomain.cpp b/samplecode/SampleTextureDomain.cpp
index dad1e0e07a..7c770a9aac 100644
--- a/samplecode/SampleTextureDomain.cpp
+++ b/samplecode/SampleTextureDomain.cpp
@@ -53,7 +53,7 @@ protected:
// the constrained texture domain.
srcRect.setXYWH(1, 1, 3, 3);
dstRect.setXYWH(5, 5, 305, 305);
- canvas->drawBitmapRect(fBM, &srcRect, dstRect, &paint, SkCanvas::kStrict_SrcRectConstraint);
+ canvas->drawBitmapRect(fBM, srcRect, dstRect, &paint, SkCanvas::kStrict_SrcRectConstraint);
// Test that bitmap draws across separate devices also respect
// the constrainted texture domain.
@@ -64,14 +64,14 @@ protected:
srcRect.setXYWH(1, 1, 3, 3);
dstRect.setXYWH(1, 1, 3, 3);
- surface->getCanvas()->drawBitmapRect(fBM, &srcRect, dstRect, &paint,
+ surface->getCanvas()->drawBitmapRect(fBM, srcRect, dstRect, &paint,
SkCanvas::kStrict_SrcRectConstraint);
SkAutoTUnref<SkImage> image(surface->newImageSnapshot());
srcRect.setXYWH(1, 1, 3, 3);
dstRect.setXYWH(405, 5, 305, 305);
- canvas->drawImageRect(image, &srcRect, dstRect, &paint);
+ canvas->drawImageRect(image, srcRect, dstRect, &paint);
// Test that bitmap blurring using a subrect
// renders correctly
@@ -83,7 +83,7 @@ protected:
SkBlurMaskFilter::kHighQuality_BlurFlag |
SkBlurMaskFilter::kIgnoreTransform_BlurFlag);
paint.setMaskFilter(mf)->unref();
- canvas->drawImageRect(image, &srcRect, dstRect, &paint);
+ canvas->drawImageRect(image, srcRect, dstRect, &paint);
// Blur and a rotation + NULL src rect
// This should not trigger the texture domain code