File tree 5 files changed +8
-22
lines changed
client_wrapper/include/flutter
5 files changed +8
-22
lines changed Original file line number Diff line number Diff line change @@ -50,15 +50,15 @@ class GpuBufferTexture {
50
50
size_t height)>
51
51
ObtainGpuBufferCallback;
52
52
53
- typedef std::function<void (void * buffer)> DestructionGpuBufferCallback ;
53
+ typedef std::function<void (void * buffer)> DestructGpuBufferCallback ;
54
54
55
- // Creates a gpu buffer texture that uses the provided |copy_buffer_cb | to
55
+ // Creates a gpu buffer texture that uses the provided |obtain_buffer_cb | to
56
56
// retrieve the buffer.
57
57
// As the callback is usually invoked from the render thread, the callee must
58
58
// take care of proper synchronization. It also needs to be ensured that the
59
59
// returned buffer isn't released prior to unregistering this texture.
60
60
GpuBufferTexture (ObtainGpuBufferCallback obtain_buffer_callback,
61
- DestructionGpuBufferCallback destruction_callback)
61
+ DestructGpuBufferCallback destruction_callback)
62
62
: obtain_gpu_buffer_callback_(obtain_buffer_callback),
63
63
destruct_gpu_buffer_callback_ (destruction_callback),
64
64
buffer_(nullptr ) {}
@@ -79,7 +79,7 @@ class GpuBufferTexture {
79
79
80
80
private:
81
81
const ObtainGpuBufferCallback obtain_gpu_buffer_callback_;
82
- const DestructionGpuBufferCallback destruct_gpu_buffer_callback_;
82
+ const DestructGpuBufferCallback destruct_gpu_buffer_callback_;
83
83
void * buffer_;
84
84
};
85
85
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ typedef struct {
81
81
typedef struct {
82
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 destruct GPU buffer object.
84
+ // The callback used by the engine to destruct the GPU buffer object.
85
85
FlutterDesktopGpuBufferDestructionCallback destruction_callback ;
86
86
// Opaque data that will get passed to the provided |callback|.
87
87
void * user_data ;
Original file line number Diff line number Diff line change 12
12
13
13
#ifdef TIZEN_RENDERER_EVAS_GL
14
14
#undef EFL_BETA_API_SUPPORT
15
- #include < Ecore.h>
16
- #include < Elementary.h>
17
- #include < Evas_GL_GLES3_Helpers.h>
18
- extern Evas_GL* g_evas_gl;
19
- EVAS_GL_GLOBAL_GLES3_DECLARE ();
15
+ #include < Evas_GL.h>
20
16
#else
21
- #include < EGL/egl.h>
22
- #include < EGL/eglext.h>
23
17
#include < GLES2/gl2.h>
24
- #include < GLES2/gl2ext.h>
25
- #include < GLES3/gl32.h>
26
18
#endif
27
19
28
20
struct ExternalTextureGLState {
29
21
GLuint gl_texture;
30
22
};
31
23
32
- static std::atomic_long kNextTextureId = {1 };
24
+ static std::atomic_long next_texture_id = {1 };
33
25
34
26
// An adaptation class of flutter engine and external texture interface.
35
27
class ExternalTexture : public std ::enable_shared_from_this<ExternalTexture> {
36
28
public:
37
29
ExternalTexture ()
38
30
: state_(std::make_unique<ExternalTextureGLState>()),
39
- texture_id_ (kNextTextureId ++) {}
31
+ texture_id_ (next_texture_id ++) {}
40
32
virtual ~ExternalTexture () = default ;
41
33
42
34
/* *
Original file line number Diff line number Diff line change 6
6
7
7
#ifdef TIZEN_RENDERER_EVAS_GL
8
8
#undef EFL_BETA_API_SUPPORT
9
- #include < Ecore.h>
10
- #include < Elementary.h>
11
9
#include < Evas_GL_GLES3_Helpers.h>
12
10
extern Evas_GL* g_evas_gl;
13
11
EVAS_GL_GLOBAL_GLES3_DECLARE ();
14
12
#else
15
13
#include < EGL/egl.h>
16
14
#include < EGL/eglext.h>
17
- #include < GLES2/gl2.h>
18
15
#include < GLES2/gl2ext.h>
19
16
#include < GLES3/gl32.h>
20
17
#endif
Original file line number Diff line number Diff line change 8
8
9
9
#ifdef TIZEN_RENDERER_EVAS_GL
10
10
#undef EFL_BETA_API_SUPPORT
11
- #include < Ecore.h>
12
- #include < Elementary.h>
13
11
#include < Evas_GL_GLES3_Helpers.h>
14
12
extern Evas_GL* g_evas_gl;
15
13
EVAS_GL_GLOBAL_GLES3_DECLARE ();
16
14
#else
17
15
#include < EGL/egl.h>
18
16
#include < EGL/eglext.h>
19
- #include < GLES2/gl2.h>
20
17
#include < GLES2/gl2ext.h>
21
18
#include < GLES3/gl32.h>
22
19
#endif
You can’t perform that action at this time.
0 commit comments