| Index: gm/gm.h
|
| diff --git a/gm/gm.h b/gm/gm.h
|
| index a48976b20efdbe86f3b3d347b5387ff460718d87..90de96f7e80826e13f94e20dce6174f3f88ab48e 100644
|
| --- a/gm/gm.h
|
| +++ b/gm/gm.h
|
| @@ -96,8 +96,13 @@
|
| // GM's getISize bounds.
|
| void drawSizeBounds(SkCanvas*, SkColor);
|
|
|
| - static void SetResourcePath(const char*);
|
| - static SkString GetResourcePath();
|
| + static void SetResourcePath(const char* resourcePath) {
|
| + gResourcePath = resourcePath;
|
| + }
|
| +
|
| + static SkString& GetResourcePath() {
|
| + return gResourcePath;
|
| + }
|
|
|
| bool isCanvasDeferred() const { return fCanvasIsDeferred; }
|
| void setCanvasIsDeferred(bool isDeferred) {
|
| @@ -110,7 +115,7 @@
|
| }
|
|
|
| protected:
|
| - static const char* gResourcePath;
|
| + static SkString gResourcePath;
|
|
|
| virtual void onOnceBeforeDraw() {}
|
| virtual void onDraw(SkCanvas*) = 0;
|
|
|