blob: c9785a574c6e443d99312de8bc707718401aa4c3 [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;
bungeman3ffa1262015-04-30 17:12:58 -040014class SkStreamAsset;
15class SkTypeface;
halcanary30b83d42014-10-26 05:23:53 -070016
tfarinabcbc1782014-06-18 14:32:48 -070017SkString GetResourcePath(const char* resource = "");
caryclark936b7342014-07-11 12:14:51 -070018void SetResourcePath(const char* );
tfarinabcbc1782014-06-18 14:32:48 -070019
halcanary30b83d42014-10-26 05:23:53 -070020bool GetResourceAsBitmap(const char* resource, SkBitmap* dst);
bungeman3ffa1262015-04-30 17:12:58 -040021SkStreamAsset* GetResourceAsStream(const char* resource);
22SkTypeface* GetResourceAsTypeface(const char* resource);
halcanary30b83d42014-10-26 05:23:53 -070023
tfarinabcbc1782014-06-18 14:32:48 -070024#endif // Resources_DEFINED