Index: gm/giantbitmap.cpp |
diff --git a/gm/giantbitmap.cpp b/gm/giantbitmap.cpp |
index c284809b16af530e3bb5557f774d50000d3d094c..ed4190a8145e0248a12e4e7cc17bfb018ceaf568 100644 |
--- a/gm/giantbitmap.cpp |
+++ b/gm/giantbitmap.cpp |
@@ -95,7 +95,6 @@ protected: |
virtual void onDraw(SkCanvas* canvas) { |
SkPaint paint; |
- SkShader* s = SkShader::CreateBitmapShader(getBitmap(), fMode, fMode); |
SkMatrix m; |
if (fDoRotate) { |
@@ -106,7 +105,7 @@ protected: |
SkScalar scale = 11*SK_Scalar1/12; |
m.setScale(scale, scale); |
} |
- s->setLocalMatrix(m); |
+ SkShader* s = SkShader::CreateBitmapShader(getBitmap(), fMode, fMode, &m); |
paint.setShader(s)->unref(); |
paint.setFilterLevel(fDoFilter ? SkPaint::kLow_FilterLevel : SkPaint::kNone_FilterLevel); |