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 "SkRefCnt.h"
12 #include "SkString.h"
13 
14 class SkBitmap;
15 class SkData;
16 class SkImage;
17 class SkStreamAsset;
18 class SkTypeface;
19 
20 SkString GetResourcePath(const char* resource = "");
21 void SetResourcePath(const char* );
22 
23 bool GetResourceAsBitmap(const char* resource, SkBitmap* dst);
24 sk_sp<SkImage> GetResourceAsImage(const char* resource);
25 SkStreamAsset* GetResourceAsStream(const char* resource);
26 sk_sp<SkData> GetResourceAsData(const char* resource);
27 sk_sp<SkTypeface> MakeResourceAsTypeface(const char* resource);
28 
29 #endif  // Resources_DEFINED
30