diff options
author | reed <reed@google.com> | 2015-07-17 07:09:43 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-17 07:09:43 -0700 |
commit | 84984efeb64787b88c5f8bd6929cfe2d58a3ba06 (patch) | |
tree | 79645557c20ff0e6e6bf75a0e92df1c7fece039f /samplecode/SampleTextureDomain.cpp | |
parent | b9efc79015599db1b95a304210d119947bedb8de (diff) |
Revert[2] of guard to remove DrawBitmapRectFlags
This reverts commit 91110195a2eee170c11885da9d16f94b00a39f87.
BUG=skia:
TBR=
Review URL: https://codereview.chromium.org/1240753003
Diffstat (limited to 'samplecode/SampleTextureDomain.cpp')
-rw-r--r-- | samplecode/SampleTextureDomain.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/samplecode/SampleTextureDomain.cpp b/samplecode/SampleTextureDomain.cpp index 2794a06956..dad1e0e07a 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->drawBitmapRectToRect(fBM, &srcRect, dstRect, &paint); + canvas->drawBitmapRect(fBM, &srcRect, dstRect, &paint, SkCanvas::kStrict_SrcRectConstraint); // Test that bitmap draws across separate devices also respect // the constrainted texture domain. @@ -64,8 +64,8 @@ protected: srcRect.setXYWH(1, 1, 3, 3); dstRect.setXYWH(1, 1, 3, 3); - surface->getCanvas()->drawBitmapRectToRect(fBM, &srcRect, dstRect, - &paint); + surface->getCanvas()->drawBitmapRect(fBM, &srcRect, dstRect, &paint, + SkCanvas::kStrict_SrcRectConstraint); SkAutoTUnref<SkImage> image(surface->newImageSnapshot()); @@ -98,7 +98,7 @@ protected: dstRect.setXYWH(-150, -150, 300, 300); canvas->translate(550, 550); canvas->rotate(45); - canvas->drawBitmapRectToRect(fBM, NULL, dstRect, &paint); + canvas->drawBitmapRect(fBM, dstRect, &paint); } private: typedef SkView INHERITED; |