diff options
author | 2015-11-04 08:34:07 -0800 | |
---|---|---|
committer | 2015-11-04 08:34:07 -0800 | |
commit | 6f45c1714786a54adec156f2416a14aa142adf05 (patch) | |
tree | 9aa6a5a3e76f415db03e25fc8f0c9c7d64e85b69 /samplecode/SampleAll.cpp | |
parent | 81919d3c67c5cb74e6ff229d185e4508a9b03ef9 (diff) |
Revert[4] of "stop using drawSprite (at least w/ no filters) as it is going away"
This reverts commit 67b8b5e67a427382fed8c5d8b3c70a21ed2492c6.
BUG=skia:
TBR=
Previous revert was due to faulty unittest (now fixed) -- unrelated to this CL.
Review URL: https://codereview.chromium.org/1422703009
Diffstat (limited to 'samplecode/SampleAll.cpp')
-rw-r--r-- | samplecode/SampleAll.cpp | 6 |
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 |