OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef Resources_DEFINED | 8 #ifndef Resources_DEFINED |
9 #define Resources_DEFINED | 9 #define Resources_DEFINED |
10 | 10 |
11 #include "SkRefCnt.h" | 11 #include "SkRefCnt.h" |
12 #include "SkString.h" | 12 #include "SkString.h" |
13 | 13 |
14 class SkBitmap; | 14 class SkBitmap; |
15 class SkImage; | 15 class SkImage; |
16 class SkStreamAsset; | 16 class SkStreamAsset; |
17 class SkTypeface; | 17 class SkTypeface; |
18 | 18 |
19 SkString GetResourcePath(const char* resource = ""); | 19 SkString GetResourcePath(const char* resource = ""); |
20 void SetResourcePath(const char* ); | 20 void SetResourcePath(const char* ); |
21 | 21 |
22 bool GetResourceAsBitmap(const char* resource, SkBitmap* dst); | 22 bool GetResourceAsBitmap(const char* resource, SkBitmap* dst); |
23 sk_sp<SkImage> GetResourceAsImage(const char* resource); | 23 sk_sp<SkImage> GetResourceAsImage(const char* resource); |
24 SkStreamAsset* GetResourceAsStream(const char* resource); | 24 SkStreamAsset* GetResourceAsStream(const char* resource); |
25 SkTypeface* GetResourceAsTypeface(const char* resource); | 25 sk_sp<SkTypeface> MakeResourceAsTypeface(const char* resource); |
26 | 26 |
27 #endif // Resources_DEFINED | 27 #endif // Resources_DEFINED |
OLD | NEW |