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
11
12namespace flutter {
13
14//------------------------------------------------------------------------------
15/// @brief Binds the surface texture to a Skia SkImage.
16///
19 public:
21 int64_t id,
22 const fml::jni::ScopedJavaGlobalRef<jobject>& surface_texture,
23 const std::shared_ptr<PlatformViewAndroidJNI>& jni_facade);
24
25 // |SurfaceTextureExternalTexture|
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
39};
40
41} // namespace flutter
42
43#endif // FLUTTER_SHELL_PLATFORM_ANDROID_SURFACE_TEXTURE_EXTERNAL_TEXTURE_GL_SKIA_H_
Instances of external textures peered to android.graphics.SurfaceTexture.
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition macros.h:27