Flutter Engine
FlutterExternalTextureGL.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 #import <Foundation/Foundation.h>
6 
7 #import "flutter/shell/platform/darwin/macos/framework/Source/FlutterMacOSExternalTexture.h"
8 
9 /**
10  * Used to bridge FlutterTexture object and handle the texture copy request the
11  * Flutter engine.
12  */
14 
15 /**
16  * Initializes a texture adapter with |texture|.
17  */
18 - (nonnull instancetype)initWithFlutterTexture:(nonnull id<FlutterTexture>)texture;
19 
20 /**
21  * Accepts texture buffer copy request from the Flutter engine.
22  * When the user side marks the textureID as available, the Flutter engine will
23  * callback to this method and ask for populate the |openGLTexture| object,
24  * such as the texture type and the format of the pixel buffer and the texture object.
25  */
26 - (BOOL)populateTexture:(nonnull FlutterOpenGLTexture*)openGLTexture;
27 
28 @end
int BOOL
Definition: windows_types.h:37