71f867c229
Bug: skia: Change-Id: I649f4435d06704a5a581a481fe3c46b6ec677baf Reviewed-on: https://skia-review.googlesource.com/26041 Reviewed-by: Mike Reed <reed@google.com> Commit-Queue: Mike Reed <reed@google.com>
30 lines
761 B
C++
30 lines
761 B
C++
/*
|
|
* Copyright 2014 Google Inc.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
#ifndef Resources_DEFINED
|
|
#define Resources_DEFINED
|
|
|
|
#include "SkRefCnt.h"
|
|
#include "SkString.h"
|
|
|
|
class SkBitmap;
|
|
class SkData;
|
|
class SkImage;
|
|
class SkStreamAsset;
|
|
class SkTypeface;
|
|
|
|
SkString GetResourcePath(const char* resource = "");
|
|
void SetResourcePath(const char* );
|
|
|
|
bool GetResourceAsBitmap(const char* resource, SkBitmap* dst);
|
|
sk_sp<SkImage> GetResourceAsImage(const char* resource);
|
|
std::unique_ptr<SkStreamAsset> GetResourceAsStream(const char* resource);
|
|
sk_sp<SkData> GetResourceAsData(const char* resource);
|
|
sk_sp<SkTypeface> MakeResourceAsTypeface(const char* resource);
|
|
|
|
#endif // Resources_DEFINED
|