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
13
14namespace flutter {
15
17 public:
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,
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
42};
43
44} // namespace flutter
45
46#endif // FLUTTER_SHELL_PLATFORM_ANDROID_IMAGE_EXTERNAL_TEXTURE_GL_SKIA_H_
ImageLifecycle
Whether the last image should be reset when the context is destroyed.
FlutterVulkanImage * image
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27