Flutter Engine
Loading...
Searching...
No Matches
surface_texture_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_SURFACE_TEXTURE_EXTERNAL_TEXTURE_GL_SKIA_H_
6
#define FLUTTER_SHELL_PLATFORM_ANDROID_SURFACE_TEXTURE_EXTERNAL_TEXTURE_GL_SKIA_H_
7
8
#include <memory>
9
10
#include "
flutter/shell/platform/android/surface_texture_external_texture.h
"
11
12
namespace
flutter
{
13
14
//------------------------------------------------------------------------------
15
/// @brief Binds the surface texture to a Skia SkImage.
16
///
17
class
SurfaceTextureExternalTextureGLSkia
18
:
public
SurfaceTextureExternalTexture
{
19
public
:
20
SurfaceTextureExternalTextureGLSkia
(
21
int64_t
id
,
22
const
fml::jni::ScopedJavaGlobalRef<jobject>
& surface_texture,
23
const
std::shared_ptr<PlatformViewAndroidJNI>& jni_facade);
24
25
// |SurfaceTextureExternalTexture|
26
~SurfaceTextureExternalTextureGLSkia
()
override
;
27
28
private
:
29
// |SurfaceTextureExternalTexture|
30
virtual
void
ProcessFrame(
PaintContext
& context,
31
const
SkRect& bounds)
override
;
32
33
// |SurfaceTextureExternalTexture|
34
virtual
void
Detach()
override
;
35
36
GLuint texture_name_ = 0;
37
38
FML_DISALLOW_COPY_AND_ASSIGN
(
SurfaceTextureExternalTextureGLSkia
);
39
};
40
41
}
// namespace flutter
42
43
#endif
// FLUTTER_SHELL_PLATFORM_ANDROID_SURFACE_TEXTURE_EXTERNAL_TEXTURE_GL_SKIA_H_
flutter::SurfaceTextureExternalTextureGLSkia
Binds the surface texture to a Skia SkImage.
Definition
surface_texture_external_texture_gl_skia.h:18
flutter::SurfaceTextureExternalTextureGLSkia::~SurfaceTextureExternalTextureGLSkia
~SurfaceTextureExternalTextureGLSkia() override
Definition
surface_texture_external_texture_gl_skia.cc:26
flutter::SurfaceTextureExternalTexture
Instances of external textures peered to android.graphics.SurfaceTexture.
Definition
surface_texture_external_texture.h:33
fml::jni::ScopedJavaGlobalRef
Definition
scoped_java_ref.h:163
FML_DISALLOW_COPY_AND_ASSIGN
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition
macros.h:27
flutter
Definition
asset_manager.cc:10
flutter::Texture::PaintContext
Definition
texture.h:39
surface_texture_external_texture.h
shell
platform
android
surface_texture_external_texture_gl_skia.h
Generated on Thu Nov 6 2025 16:11:25 for Flutter Engine by
1.9.8