Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
image.cc
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
11
13 flutter::DisplayList* display_list,
14 int32_t width,
15 int32_t height) {
17 return Skwasm::MakeImageFromPicture(display_list, width, height).release();
18}
19
21 SkData* data,
22 int width,
23 int height,
24 Skwasm::PixelFormat pixel_format,
25 size_t row_byte_count) {
27 return Skwasm::MakeImageFromPixels(data, width, height, pixel_format,
28 row_byte_count)
29 .release();
30}
31
33 SkwasmObject texture_source,
34 int width,
35 int height,
36 Skwasm::Surface* surface) {
38 return Skwasm::MakeImageFromTexture(texture_source, width, height, surface)
39 .release();
40}
41
46
51
55
57 return image->height();
58}
Represents an image whose allocation is (usually) resident on device memory.
Definition dl_image.h:32
FlutterVulkanImage * image
VkSurfaceKHR surface
Definition main.cc:65
sk_sp< flutter::DlImage > MakeImageFromTexture(SkwasmObject texture_source, int width, int height, Skwasm::Surface *surface)
uint32_t live_image_count
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
#define SKWASM_EXPORT
Definition export.h:10
SKWASM_EXPORT flutter::DlImage * image_createFromTextureSource(SkwasmObject texture_source, int width, int height, Skwasm::Surface *surface)
Definition image.cc:32
SKWASM_EXPORT void image_dispose(flutter::DlImage *image)
Definition image.cc:47
SKWASM_EXPORT int image_getHeight(flutter::DlImage *image)
Definition image.cc:56
SKWASM_EXPORT void image_ref(flutter::DlImage *image)
Definition image.cc:42
SKWASM_EXPORT flutter::DlImage * image_createFromPicture(flutter::DisplayList *display_list, int32_t width, int32_t height)
Definition image.cc:12
SKWASM_EXPORT flutter::DlImage * image_createFromPixels(SkData *data, int width, int height, Skwasm::PixelFormat pixel_format, size_t row_byte_count)
Definition image.cc:20
SKWASM_EXPORT int image_getWidth(flutter::DlImage *image)
Definition image.cc:52
__externref_t SkwasmObject
std::shared_ptr< const fml::Mapping > data