| Index: bench/SKPAnimationBench.cpp
|
| diff --git a/bench/SKPAnimationBench.cpp b/bench/SKPAnimationBench.cpp
|
| index 1a1ca447e506e2bbc63330426eb02d90907ed977..89a43ddc9c4f99d6c544567c848f368b7e37fe88 100644
|
| --- a/bench/SKPAnimationBench.cpp
|
| +++ b/bench/SKPAnimationBench.cpp
|
| @@ -27,7 +27,17 @@ void SKPAnimationBench::onPerCanvasPreDraw(SkCanvas* canvas) {
|
| fAnimationTimer.start();
|
| }
|
|
|
| -void SKPAnimationBench::drawPicture() {
|
| +void SKPAnimationBench::drawPicture(SkCanvas* canvas) {
|
| + SkMatrix m;
|
| + m.setScale(this->scale(), this->scale());
|
| + fAnimation->preConcatFrameMatrix(fAnimationTimer.fWall, fDevBounds, &m);
|
| + canvas->save();
|
| + canvas->concat(m);
|
| + canvas->drawPicture(this->picture());
|
| + canvas->restore();
|
| +}
|
| +
|
| +void SKPAnimationBench::drawPictureTiled() {
|
| fAnimationTimer.end();
|
|
|
| for (int j = 0; j < this->tileRects().count(); ++j) {
|
|
|