aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/coloremoji.cpp
diff options
context:
space:
mode:
authorGravatar tfarina <tfarina@chromium.org>2014-07-01 12:35:49 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-07-01 12:35:49 -0700
commitc846f4a96bcde1ffeaf17afc1469db6f2cbd1ad3 (patch)
tree0fcf98e7bc8c1ed90a9d9a61b685d998d362768b /gm/coloremoji.cpp
parent696d3611760b0465caaebf6243824960034c3592 (diff)
Cleanup usage of GetResourcePath() after commit bcbc1788b478b1e54079318ad073e8490aa66fae.
There was a clean up opportunity left over after https://skia.googlesource.com/skia/+/bcbc1788b478b1e54079318ad073e8490aa66fae, that could make use of the default parameter of GetResourcePath() function to make some call sites cleaner. We decided to make it in a separate CL to make reviewer's and author's life easier, so we could catch errors and/or mistakes easily. BUG=None TEST=make all && out/Debug/dm && out/Debug/SampleApp R=mtklein@google.com Author: tfarina@chromium.org Review URL: https://codereview.chromium.org/351133003
Diffstat (limited to 'gm/coloremoji.cpp')
-rw-r--r--gm/coloremoji.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/gm/coloremoji.cpp b/gm/coloremoji.cpp
index cf4500819a..7fe54f515f 100644
--- a/gm/coloremoji.cpp
+++ b/gm/coloremoji.cpp
@@ -29,9 +29,7 @@ protected:
}
virtual void onOnceBeforeDraw() SK_OVERRIDE {
- SkString filename = GetResourcePath();
- filename.append("/Funkster.ttf");
-
+ SkString filename = GetResourcePath("/Funkster.ttf");
SkAutoTUnref<SkFILEStream> stream(new SkFILEStream(filename.c_str()));
if (!stream->isValid()) {
SkDebugf("Could not find Funkster.ttf, please set --resourcePath correctly.\n");