File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ typedef const FlutterDesktopGpuBuffer* (
67
67
size_t height ,
68
68
void * user_data );
69
69
70
- typedef void (* FlutterDesktopDestructionCallback )(void * user_data );
70
+ typedef void (* FlutterDesktopGpuBufferDestructionCallback )(void * user_data );
71
71
72
72
// An object used to configure pixel buffer textures.
73
73
typedef struct {
@@ -79,10 +79,10 @@ typedef struct {
79
79
80
80
// An object used to configure GPU buffer textures.
81
81
typedef struct {
82
- // The callback used by the engine to copy the GPU buffer object.
82
+ // The callback used by the engine to obtain the GPU buffer object.
83
83
FlutterDesktopGpuBufferTextureCallback callback ;
84
- // The callback used by the engine to desturction GPU buffer object.
85
- FlutterDesktopDestructionCallback destruction_callback ;
84
+ // The callback used by the engine to destruct GPU buffer object.
85
+ FlutterDesktopGpuBufferDestructionCallback destruction_callback ;
86
86
// Opaque data that will get passed to the provided |callback|.
87
87
void * user_data ;
88
88
} FlutterDesktopGPUBufferTextureConfig ;
Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ struct ExternalTextureGLState {
29
29
GLuint gl_texture;
30
30
};
31
31
32
- static std::atomic_long nextTextureId = {1 };
32
+ static std::atomic_long kNextTextureId = {1 };
33
33
34
34
// An adaptation class of flutter engine and external texture interface.
35
35
class ExternalTexture : public std ::enable_shared_from_this<ExternalTexture> {
36
36
public:
37
37
ExternalTexture ()
38
38
: state_(std::make_unique<ExternalTextureGLState>()),
39
- texture_id_ (nextTextureId ++) {}
39
+ texture_id_ (kNextTextureId ++) {}
40
40
virtual ~ExternalTexture () = default ;
41
41
42
42
/* *
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ static void OnCollectTexture(void* textureGL) {
37
37
38
38
ExternalTextureSurfaceGL::ExternalTextureSurfaceGL (
39
39
FlutterDesktopGpuBufferTextureCallback texture_callback,
40
- FlutterDesktopDestructionCallback destruction_callback,
40
+ FlutterDesktopGpuBufferDestructionCallback destruction_callback,
41
41
void * user_data)
42
42
: ExternalTexture(),
43
43
texture_callback_(texture_callback),
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ class ExternalTextureSurfaceGL : public ExternalTexture {
14
14
public:
15
15
ExternalTextureSurfaceGL (
16
16
FlutterDesktopGpuBufferTextureCallback texture_callback,
17
- FlutterDesktopDestructionCallback destruction_callback,
17
+ FlutterDesktopGpuBufferDestructionCallback destruction_callback,
18
18
void * user_data);
19
19
20
20
virtual ~ExternalTextureSurfaceGL ();
@@ -34,7 +34,7 @@ class ExternalTextureSurfaceGL : public ExternalTexture {
34
34
35
35
private:
36
36
FlutterDesktopGpuBufferTextureCallback texture_callback_ = nullptr ;
37
- FlutterDesktopDestructionCallback destruction_callback_ = nullptr ;
37
+ FlutterDesktopGpuBufferDestructionCallback destruction_callback_ = nullptr ;
38
38
void * user_data_ = nullptr ;
39
39
};
40
40
You can’t perform that action at this time.
0 commit comments