| Index: samplecode/SampleSVGPong.cpp
|
| diff --git a/samplecode/SampleSVGPong.cpp b/samplecode/SampleSVGPong.cpp
|
| index be107b64dcbe9515c75b3cc0efce82ce0ca66855..590ec1824bd132f05465636a5a1ad298349968fd 100644
|
| --- a/samplecode/SampleSVGPong.cpp
|
| +++ b/samplecode/SampleSVGPong.cpp
|
| @@ -136,7 +136,8 @@ protected:
|
| // Handle everything in a normalized 1x1 space.
|
| root->setViewBox(SkSVGViewBoxType(SkRect::MakeWH(1, 1)));
|
|
|
| - fDom = sk_sp<SkSVGDOM>(new SkSVGDOM(SkSize::Make(this->width(), this->height())));
|
| + fDom = sk_sp<SkSVGDOM>(new SkSVGDOM());
|
| + fDom->setContainerSize(SkSize::Make(this->width(), this->height()));
|
| fDom->setRoot(std::move(root));
|
|
|
| // Off we go.
|
|
|