Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / skia / samplecode / SampleTextureDomain.cpp
index 926c559..af511c7 100644 (file)
@@ -71,7 +71,7 @@ protected:
 
         srcRect.setXYWH(1, 1, 3, 3);
         dstRect.setXYWH(405, 5, 305, 305);
-        image->draw(canvas, &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();
-        image->draw(canvas, &srcRect, dstRect, &paint);
+        canvas->drawImageRect(image, &srcRect, dstRect, &paint);
 
         // Blur and a rotation + NULL src rect
         // This should not trigger the texture domain code