blob: 5e76eb3ae81693449b73f564af5db55651787c8a [file] [log] [blame]
tfarinabcbc1782014-06-18 14:32:48 -07001/*
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
halcanary30b83d42014-10-26 05:23:53 -070013class SkBitmap;
halcanary2f0a7282015-08-21 07:47:23 -070014class SkImage;
bungeman3ffa1262015-04-30 17:12:58 -040015class SkStreamAsset;
16class SkTypeface;
halcanary30b83d42014-10-26 05:23:53 -070017
tfarinabcbc1782014-06-18 14:32:48 -070018SkString GetResourcePath(const char* resource = "");
caryclark936b7342014-07-11 12:14:51 -070019void SetResourcePath(const char* );
tfarinabcbc1782014-06-18 14:32:48 -070020
halcanary30b83d42014-10-26 05:23:53 -070021bool GetResourceAsBitmap(const char* resource, SkBitmap* dst);
halcanary2f0a7282015-08-21 07:47:23 -070022SkImage* GetResourceAsImage(const char* resource);
bungeman3ffa1262015-04-30 17:12:58 -040023SkStreamAsset* GetResourceAsStream(const char* resource);
24SkTypeface* GetResourceAsTypeface(const char* resource);
halcanary30b83d42014-10-26 05:23:53 -070025
tfarinabcbc1782014-06-18 14:32:48 -070026#endif // Resources_DEFINED