From c846f4a96bcde1ffeaf17afc1469db6f2cbd1ad3 Mon Sep 17 00:00:00 2001 From: tfarina Date: Tue, 1 Jul 2014 12:35:49 -0700 Subject: 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 --- gm/filterindiabox.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gm/filterindiabox.cpp') diff --git a/gm/filterindiabox.cpp b/gm/filterindiabox.cpp index 1987c95bf7..c3316b4ea2 100644 --- a/gm/filterindiabox.cpp +++ b/gm/filterindiabox.cpp @@ -104,11 +104,8 @@ protected: } void makeBitmap() { - SkString resourcePath = GetResourcePath(); - resourcePath.append("/"); - resourcePath.append(fFilename); - SkImageDecoder* codec = NULL; + SkString resourcePath = GetResourcePath(fFilename.c_str()); SkFILEStream stream(resourcePath.c_str()); if (stream.isValid()) { codec = SkImageDecoder::Factory(&stream); -- cgit v1.2.3