aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/Resources.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Resources.h')
-rw-r--r--tools/Resources.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/Resources.h b/tools/Resources.h
index 5e76eb3ae8..678e4c8627 100644
--- a/tools/Resources.h
+++ b/tools/Resources.h
@@ -8,6 +8,7 @@
#ifndef Resources_DEFINED
#define Resources_DEFINED
+#include "SkRefCnt.h"
#include "SkString.h"
class SkBitmap;
@@ -19,7 +20,7 @@ SkString GetResourcePath(const char* resource = "");
void SetResourcePath(const char* );
bool GetResourceAsBitmap(const char* resource, SkBitmap* dst);
-SkImage* GetResourceAsImage(const char* resource);
+sk_sp<SkImage> GetResourceAsImage(const char* resource);
SkStreamAsset* GetResourceAsStream(const char* resource);
SkTypeface* GetResourceAsTypeface(const char* resource);