| Index: samplecode/SampleTextureDomain.cpp
|
| diff --git a/samplecode/SampleTextureDomain.cpp b/samplecode/SampleTextureDomain.cpp
|
| index af511c7b031e461ec913c8b9149f23efac9adb2e..926c5596b0905802c0669c1e7c0503a5df5d8d95 100644
|
| --- a/samplecode/SampleTextureDomain.cpp
|
| +++ b/samplecode/SampleTextureDomain.cpp
|
| @@ -71,7 +71,7 @@
|
|
|
| srcRect.setXYWH(1, 1, 3, 3);
|
| dstRect.setXYWH(405, 5, 305, 305);
|
| - canvas->drawImageRect(image, &srcRect, dstRect, &paint);
|
| + image->draw(canvas, &srcRect, dstRect, &paint);
|
|
|
| // Test that bitmap blurring using a subrect
|
| // renders correctly
|
| @@ -83,7 +83,7 @@
|
| SkBlurMaskFilter::kHighQuality_BlurFlag |
|
| SkBlurMaskFilter::kIgnoreTransform_BlurFlag);
|
| paint.setMaskFilter(mf)->unref();
|
| - canvas->drawImageRect(image, &srcRect, dstRect, &paint);
|
| + image->draw(canvas, &srcRect, dstRect, &paint);
|
|
|
| // Blur and a rotation + NULL src rect
|
| // This should not trigger the texture domain code
|
|
|