tfarina | bcbc178 | 2014-06-18 14:32:48 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #ifndef Resources_DEFINED |
| 9 | #define Resources_DEFINED |
| 10 | |
| 11 | #include "SkString.h" |
| 12 | |
halcanary | 30b83d4 | 2014-10-26 05:23:53 -0700 | [diff] [blame] | 13 | class SkBitmap; |
bungeman | 3ffa126 | 2015-04-30 17:12:58 -0400 | [diff] [blame] | 14 | class SkStreamAsset; |
| 15 | class SkTypeface; |
halcanary | 30b83d4 | 2014-10-26 05:23:53 -0700 | [diff] [blame] | 16 | |
tfarina | bcbc178 | 2014-06-18 14:32:48 -0700 | [diff] [blame] | 17 | SkString GetResourcePath(const char* resource = ""); |
caryclark | 936b734 | 2014-07-11 12:14:51 -0700 | [diff] [blame] | 18 | void SetResourcePath(const char* ); |
tfarina | bcbc178 | 2014-06-18 14:32:48 -0700 | [diff] [blame] | 19 | |
halcanary | 30b83d4 | 2014-10-26 05:23:53 -0700 | [diff] [blame] | 20 | bool GetResourceAsBitmap(const char* resource, SkBitmap* dst); |
bungeman | 3ffa126 | 2015-04-30 17:12:58 -0400 | [diff] [blame] | 21 | SkStreamAsset* GetResourceAsStream(const char* resource); |
| 22 | SkTypeface* GetResourceAsTypeface(const char* resource); |
halcanary | 30b83d4 | 2014-10-26 05:23:53 -0700 | [diff] [blame] | 23 | |
tfarina | bcbc178 | 2014-06-18 14:32:48 -0700 | [diff] [blame] | 24 | #endif // Resources_DEFINED |