[particles] Clean up build - remove test deps
Bug: skia:
Change-Id: I499262277ac1c8d92a39a66f6e846e248b102aef
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/197767
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
diff --git a/modules/particles/src/SkParticleDrawable.cpp b/modules/particles/src/SkParticleDrawable.cpp
index 0adc87d..9c31cc0 100644
--- a/modules/particles/src/SkParticleDrawable.cpp
+++ b/modules/particles/src/SkParticleDrawable.cpp
@@ -7,7 +7,6 @@
#include "SkParticleDrawable.h"
-#include "Resources.h"
#include "SkAutoMalloc.h"
#include "SkCanvas.h"
#include "SkImage.h"
@@ -137,8 +136,11 @@
}
void rebuild() {
- fImage = GetResourceAsImage(fPath.c_str());
+ fImage = SkImage::MakeFromEncoded(SkData::MakeFromFileName(fPath.c_str()));
if (!fImage) {
+ if (!fPath.isEmpty()) {
+ SkDebugf("Could not load image \"%s\"\n", fPath.c_str());
+ }
fImage = make_circle_image(1);
}
}