Flutter Engine
Loading...
Searching...
No Matches
image_external_texture_gl_skia.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_SHELL_PLATFORM_ANDROID_IMAGE_EXTERNAL_TEXTURE_GL_SKIA_H_
6
#define FLUTTER_SHELL_PLATFORM_ANDROID_IMAGE_EXTERNAL_TEXTURE_GL_SKIA_H_
7
8
#include <memory>
9
#include <optional>
10
11
#include "
flutter/shell/platform/android/android_context_gl_skia.h
"
12
#include "
flutter/shell/platform/android/image_external_texture_gl.h
"
13
14
namespace
flutter
{
15
16
class
ImageExternalTextureGLSkia
:
public
ImageExternalTextureGL
{
17
public
:
18
ImageExternalTextureGLSkia
(
19
const
std::shared_ptr<AndroidContextGLSkia>& context,
20
int64_t
id
,
21
const
fml::jni::ScopedJavaGlobalRef<jobject>
& image_textury_entry,
22
const
std::shared_ptr<PlatformViewAndroidJNI>& jni_facade,
23
ImageExternalTexture::ImageLifecycle
lifecycle);
24
25
private
:
26
// |ImageExternalTexture|
27
void
Attach(
PaintContext
& context)
override
;
28
29
// |ImageExternalTexture|
30
void
Detach()
override
;
31
32
// |ImageExternalTextureGL|
33
sk_sp<flutter::DlImage> CreateDlImage(
34
PaintContext
& context,
35
const
SkRect& bounds,
36
std::optional<HardwareBufferKey>
id
,
37
impeller::UniqueEGLImageKHR
&& egl_image)
override
;
38
39
void
BindImageToTexture(
const
impeller::UniqueEGLImageKHR
&
image
, GLuint tex);
40
41
FML_DISALLOW_COPY_AND_ASSIGN
(
ImageExternalTextureGLSkia
);
42
};
43
44
}
// namespace flutter
45
46
#endif
// FLUTTER_SHELL_PLATFORM_ANDROID_IMAGE_EXTERNAL_TEXTURE_GL_SKIA_H_
android_context_gl_skia.h
flutter::ImageExternalTextureGL
Definition
image_external_texture_gl.h:18
flutter::ImageExternalTextureGLSkia
Definition
image_external_texture_gl_skia.h:16
flutter::ImageExternalTexture::ImageLifecycle
ImageLifecycle
Whether the last image should be reset when the context is destroyed.
Definition
image_external_texture.h:39
fml::UniqueObject< EGLImageKHRWithDisplay, EGLImageKHRWithDisplayTraits >
fml::jni::ScopedJavaGlobalRef
Definition
scoped_java_ref.h:163
image
FlutterVulkanImage * image
Definition
embedder_test_backingstore_producer_vulkan.cc:19
FML_DISALLOW_COPY_AND_ASSIGN
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition
macros.h:27
image_external_texture_gl.h
flutter
Definition
asset_manager.cc:10
flutter::Texture::PaintContext
Definition
texture.h:39
shell
platform
android
image_external_texture_gl_skia.h
Generated on Thu Nov 6 2025 16:11:25 for Flutter Engine by
1.9.8