Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
images.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_SKWASM_IMAGES_H_
6#define FLUTTER_SKWASM_IMAGES_H_
7
10
11namespace Skwasm {
12
13enum class PixelFormat {
17};
18
19extern sk_sp<flutter::DlImage> MakeImageFromPicture(
20 flutter::DisplayList* display_list,
21 int32_t width,
22 int32_t height);
23extern sk_sp<flutter::DlImage> MakeImageFromTexture(SkwasmObject texture_source,
24 int width,
25 int height,
26 Skwasm::Surface* surface);
27extern sk_sp<flutter::DlImage> MakeImageFromPixels(SkData* data,
28 int width,
29 int height,
30 PixelFormat pixel_format,
31 size_t row_byte_count);
32
33} // namespace Skwasm
34
35#endif // FLUTTER_SKWASM_IMAGES_H_
sk_sp< flutter::DlImage > MakeImageFromTexture(SkwasmObject texture_source, int width, int height, Skwasm::Surface *surface)
sk_sp< flutter::DlImage > MakeImageFromPicture(flutter::DisplayList *display_list, int32_t width, int32_t height)
PixelFormat
Definition images.h:13
sk_sp< flutter::DlImage > MakeImageFromPixels(SkData *data, int width, int height, PixelFormat pixel_format, size_t row_byte_count)
int32_t height
int32_t width
__externref_t SkwasmObject
std::shared_ptr< const fml::Mapping > data