Flutter Engine
The Flutter Engine
Resources.h
Go to the documentation of this file.
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 "include/core/SkData.h" // IWYU pragma: keep
14
15#include <memory>
16#include <string>
17
18class SkStreamAsset;
19
20SkString GetResourcePath(const char* resource = "");
21
22void SetResourcePath(const char*);
23
25
26inline sk_sp<SkData> GetResourceAsData(const std::string& resource) {
28}
29
30std::unique_ptr<SkStreamAsset> GetResourceAsStream(const char* resource,
31 bool useFileStream = false);
32
33#endif // Resources_DEFINED
void SetResourcePath(const char *)
Definition: Resources.cpp:27
SkString GetResourcePath(const char *resource="")
Definition: Resources.cpp:23
sk_sp< SkData > GetResourceAsData(const char *resource)
Definition: Resources.cpp:42
std::unique_ptr< SkStreamAsset > GetResourceAsStream(const char *resource, bool useFileStream=false)
Definition: Resources.cpp:31
static SkString resource(SkPDFResourceType type, int index)
const char * c_str() const
Definition: SkString.h:133