Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: tools/Resources.h

Issue 1810813003: update callsites for Make image factories (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: start to take advantage of sk_sp drawImage Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/TextureStorageAllocator.cpp ('k') | tools/Resources.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/Resources.h
diff --git a/tools/Resources.h b/tools/Resources.h
index 5e76eb3ae81693449b73f564af5db55651787c8a..678e4c8627cfe878d17ca49f858a6cca4b09f6b2 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);
« no previous file with comments | « tests/TextureStorageAllocator.cpp ('k') | tools/Resources.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698