| Index: samplecode/SamplePictFile.cpp
|
| diff --git a/samplecode/SamplePictFile.cpp b/samplecode/SamplePictFile.cpp
|
| index 867118dee30c1de7766caa2193d41e98bd2225d4..b8298d4e19d2f34695adeab724a383147df01da7 100644
|
| --- a/samplecode/SamplePictFile.cpp
|
| +++ b/samplecode/SamplePictFile.cpp
|
| @@ -27,6 +27,7 @@
|
| #include "SkXfermode.h"
|
|
|
| #include "SkStream.h"
|
| +#include "SkSurface.h"
|
| #include "SkXMLParser.h"
|
|
|
| class PictFileView : public SampleView {
|
| @@ -53,6 +54,11 @@ class PictFileView : public SampleView {
|
| SkDebugf("coun't load picture at \"path\"\n", path);
|
| }
|
|
|
| + if (false) {
|
| + SkSurface* surf = SkSurface::NewRasterPMColor(pic->width(), pic->height());
|
| + surf->getCanvas()->drawPicture(*pic);
|
| + surf->unref();
|
| + }
|
| if (false) { // re-record
|
| SkPicture p2;
|
| pic->draw(p2.beginRecording(pic->width(), pic->height()));
|
|
|