Flutter Engine
The Flutter Engine
|
#include "tools/Resources.h"
#include "include/core/SkData.h"
#include "include/core/SkStream.h"
#include "include/private/base/SkDebug.h"
#include "src/utils/SkOSPath.h"
#include "tools/flags/CommandLineFlags.h"
#include <utility>
Go to the source code of this file.
Functions | |
static | DEFINE_string2 (resourcePath, i, "resources", "Directory with test resources: images, fonts, etc.") |
SkString | GetResourcePath (const char *resource) |
void | SetResourcePath (const char *resource) |
std::unique_ptr< SkStreamAsset > | GetResourceAsStream (const char *resource, bool useFileStream) |
sk_sp< SkData > | GetResourceAsData (const char *resource) |
Variables | |
sk_sp< SkData >(* | gResourceFactory )(const char *) = nullptr |
|
static |
Definition at line 42 of file Resources.cpp.
std::unique_ptr< SkStreamAsset > GetResourceAsStream | ( | const char * | resource, |
bool | useFileStream | ||
) |
Definition at line 31 of file Resources.cpp.
SkString GetResourcePath | ( | const char * | resource | ) |
Definition at line 23 of file Resources.cpp.
void SetResourcePath | ( | const char * | resource | ) |
Definition at line 27 of file Resources.cpp.
Definition at line 18 of file Resources.cpp.