aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-11-02 12:11:13 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-02 12:11:13 -0800
commit4a21602982d411bb764e46dc47e009b12bd5cb39 (patch)
tree02dfe942284eb4666d3f1083c3bc91cc57afef3f /samplecode
parent8de01c642c145e9a6e0b9d68066e9fe63c4c5492 (diff)
stop using drawSprite (at least w/ no filters) as it is going away
Diffstat (limited to 'samplecode')
-rw-r--r--samplecode/SampleAll.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/samplecode/SampleAll.cpp b/samplecode/SampleAll.cpp
index 628504d90d..b5a0fe568d 100644
--- a/samplecode/SampleAll.cpp
+++ b/samplecode/SampleAll.cpp
@@ -440,14 +440,10 @@ protected:
canvas->drawPath(path, paint);
paint.setShader(nullptr);
- // bitmap, sprite
+ // bitmap
canvas->translate(SkIntToScalar(50), 0);
paint.setStyle(SkPaint::kFill_Style);
canvas->drawBitmap(fBug, left, top, &paint);
- canvas->translate(SkIntToScalar(30), 0);
- canvas->drawSprite(fTb,
- SkScalarRoundToInt(canvas->getTotalMatrix().getTranslateX()),
- spriteOffset + 10, &paint);
canvas->translate(-SkIntToScalar(30), SkIntToScalar(30));
paint.setShader(shaderTest())->unref(); // test compose shader