aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm/DM.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dm/DM.cpp')
-rw-r--r--dm/DM.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/dm/DM.cpp b/dm/DM.cpp
index d2c127c133..ebd2fe4b56 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -1357,12 +1357,8 @@ int main(int argc, char** argv) {
SkTaskGroup::Enabler enabled(FLAGS_threads);
gCreateTypefaceDelegate = &create_from_name;
- {
- SkString testResourcePath = GetResourcePath("images/color_wheel.png");
- SkFILEStream testResource(testResourcePath.c_str());
- if (!testResource.isValid()) {
- info("Some resources are missing. Do you need to set --resourcePath?\n");
- }
+ if (nullptr == GetResourceAsData("images/color_wheel.png")) {
+ info("Some resources are missing. Do you need to set --resourcePath?\n");
}
gather_gold();
gather_uninteresting_hashes();