diff options
author | halcanary <halcanary@google.com> | 2015-08-21 07:47:23 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-21 07:47:23 -0700 |
commit | 2f0a728e5aed1553811a44c4203b68853255f1bd (patch) | |
tree | 7002fb23b222addcdc57d119436e964a3a91e6b7 /tools/Resources.h | |
parent | b30e9d3960567571946ed89cbe7f5a2bd8255f85 (diff) |
GMs: change some GMs to use SkImage over SkBitmap
Also, add GetResourceAsImage() to Resources.h
Motivation: test drawImage() as much as we test drawBitmap()
Review URL: https://codereview.chromium.org/1306133003
Diffstat (limited to 'tools/Resources.h')
-rw-r--r-- | tools/Resources.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/Resources.h b/tools/Resources.h index c9785a574c..5e76eb3ae8 100644 --- a/tools/Resources.h +++ b/tools/Resources.h @@ -11,6 +11,7 @@ #include "SkString.h" class SkBitmap; +class SkImage; class SkStreamAsset; class SkTypeface; @@ -18,6 +19,7 @@ SkString GetResourcePath(const char* resource = ""); void SetResourcePath(const char* ); bool GetResourceAsBitmap(const char* resource, SkBitmap* dst); +SkImage* GetResourceAsImage(const char* resource); SkStreamAsset* GetResourceAsStream(const char* resource); SkTypeface* GetResourceAsTypeface(const char* resource); |