From 2f0a728e5aed1553811a44c4203b68853255f1bd Mon Sep 17 00:00:00 2001 From: halcanary Date: Fri, 21 Aug 2015 07:47:23 -0700 Subject: 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 --- tools/Resources.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/Resources.h') 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); -- cgit v1.2.3