Index: gm/clippedbitmapshaders.cpp |
diff --git a/gm/clippedbitmapshaders.cpp b/gm/clippedbitmapshaders.cpp |
index 72c04742608c1591e2a02f0dd62c4fd0cb10b36f..ee20847726bb7e17be53644f574fdb8d7fa240ce 100644 |
--- a/gm/clippedbitmapshaders.cpp |
+++ b/gm/clippedbitmapshaders.cpp |
@@ -78,15 +78,14 @@ protected: |
virtual void onDraw(SkCanvas* canvas) { |
SkBitmap bmp = create_bitmap(); |
- SkShader* shader = SkShader::CreateBitmapShader( |
- bmp, fMode, fMode); |
- |
- SkPaint paint; |
SkMatrix s; |
s.reset(); |
s.setScale(8, 8); |
s.postTranslate(SLIDE_SIZE / 2, SLIDE_SIZE / 2); |
- shader->setLocalMatrix(s); |
+ SkShader* shader = SkShader::CreateBitmapShader( |
+ bmp, fMode, fMode, &s); |
+ |
+ SkPaint paint; |
paint.setShader(shader)->unref(); |
if (fHQ) { |