diff options
author | tfarina <tfarina@chromium.org> | 2014-06-09 12:05:34 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-06-09 12:05:34 -0700 |
commit | 880914c35c8f7fc2e9c57134134c883baf66e538 (patch) | |
tree | 5170dfdcc9002502d25fa5b45723e7a04cd96c3d /gm/gm.h | |
parent | 4d517fdbb145cb95e5e935470df331e1b6667cfc (diff) |
Reland "Clean up Test's resourcePath code."
This relands commit 91359bed48bc006a4319da86eb26db3b2e6d4afb (Clean up
Test's resourcePath code."
BUG=None
TEST=make dm && out/Debug/dm
R=mtklein@google.com
Author: tfarina@chromium.org
Review URL: https://codereview.chromium.org/321723002
Diffstat (limited to 'gm/gm.h')
-rw-r--r-- | gm/gm.h | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -96,13 +96,8 @@ namespace skiagm { // GM's getISize bounds. void drawSizeBounds(SkCanvas*, SkColor); - static void SetResourcePath(const char* resourcePath) { - gResourcePath = resourcePath; - } - - static SkString& GetResourcePath() { - return gResourcePath; - } + static void SetResourcePath(const char*); + static SkString GetResourcePath(); bool isCanvasDeferred() const { return fCanvasIsDeferred; } void setCanvasIsDeferred(bool isDeferred) { @@ -115,7 +110,7 @@ namespace skiagm { } protected: - static SkString gResourcePath; + static const char* gResourcePath; virtual void onOnceBeforeDraw() {} virtual void onDraw(SkCanvas*) = 0; |