Flutter Engine
The Flutter Engine
DecodeUtils.h
Go to the documentation of this file.
1/*
2 * Copyright 2023 Google LLC
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 DecodeUtils_DEFINED
9#define DecodeUtils_DEFINED
10
13#include "tools/Resources.h"
14
15class SkBitmap;
16class SkData;
17
18namespace ToolUtils {
20
21inline bool GetResourceAsBitmap(const char* resource, SkBitmap* dst) {
23}
24
27}
28
29} // namespace ToolUtils
30
31#endif
sk_sp< SkData > GetResourceAsData(const char *resource)
Definition: Resources.cpp:42
static SkString resource(SkPDFResourceType type, int index)
Definition: SkData.h:25
SK_API sk_sp< SkImage > DeferredFromEncodedData(sk_sp< SkData > encoded, std::optional< SkAlphaType > alphaType=std::nullopt)
bool DecodeDataToBitmap(sk_sp< SkData > data, SkBitmap *dst)
Definition: DecodeUtils.cpp:22
sk_sp< SkImage > GetResourceAsImage(const char *resource)
Definition: DecodeUtils.h:25
bool GetResourceAsBitmap(const char *resource, SkBitmap *dst)
Definition: DecodeUtils.h:21
dst
Definition: cp.py:12
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63