File tree Expand file tree Collapse file tree 4 files changed +43
-6
lines changed Expand file tree Collapse file tree 4 files changed +43
-6
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ template("embedder") {
154
154
" channels/platform_channel.cc" ,
155
155
" channels/settings_channel.cc" ,
156
156
" channels/settings_channel_tizen.cc" ,
157
- " external_texture_surface_gl .cc" ,
157
+ " external_texture_surface_gl_tizen .cc" ,
158
158
" system_utils_tizen.cc" ,
159
159
]
160
160
@@ -177,6 +177,7 @@ template("embedder") {
177
177
" channels/platform_channel_stub.cc" ,
178
178
" channels/settings_channel.cc" ,
179
179
" channels/settings_channel_linux.cc" ,
180
+ " external_texture_surface_gl_linux.cc" ,
180
181
" system_utils_linux.cc" ,
181
182
]
182
183
}
Original file line number Diff line number Diff line change
1
+ // Copyright 2021 Samsung Electronics Co., Ltd. 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
+ #pragma clang diagnostic push
6
+ #pragma clang diagnostic ignored "-Wunused-private-field"
7
+ #include " external_texture_surface_gl.h"
8
+ #pragma clang diagnostic pop
9
+
10
+ #include " flutter/shell/platform/common/public/flutter_texture_registrar.h"
11
+ #include " flutter/shell/platform/tizen/logger.h"
12
+
13
+ namespace flutter {
14
+
15
+ ExternalTextureSurfaceGL::ExternalTextureSurfaceGL (
16
+ FlutterDesktopGpuBufferTextureCallback texture_callback,
17
+ FlutterDesktopGpuBufferDestructionCallback destruction_callback,
18
+ void * user_data)
19
+ : ExternalTexture(),
20
+ texture_callback_ (texture_callback),
21
+ destruction_callback_(destruction_callback),
22
+ user_data_(user_data) {}
23
+
24
+ ExternalTextureSurfaceGL::~ExternalTextureSurfaceGL () {
25
+ FT_UNIMPLEMENTED ();
26
+ }
27
+
28
+ bool ExternalTextureSurfaceGL::PopulateTexture (
29
+ size_t width,
30
+ size_t height,
31
+ FlutterOpenGLTexture* opengl_texture) {
32
+ FT_UNIMPLEMENTED ();
33
+ return false ;
34
+ }
35
+
36
+ void ExternalTextureSurfaceGL::OnDestruction () {
37
+ FT_UNIMPLEMENTED ();
38
+ }
39
+
40
+ } // namespace flutter
Original file line number Diff line number Diff line change 1
- // Copyright 2020 Samsung Electronics Co., Ltd. All rights reserved.
1
+ // Copyright 2021 Samsung Electronics Co., Ltd. All rights reserved.
2
2
// Use of this source code is governed by a BSD-style license that can be
3
3
// found in the LICENSE file.
4
4
Original file line number Diff line number Diff line change 8
8
#include < mutex>
9
9
10
10
#include " flutter/shell/platform/tizen/external_texture_pixel_gl.h"
11
- #ifndef __X64_SHELL__
12
11
#include " flutter/shell/platform/tizen/external_texture_surface_gl.h"
13
- #endif
14
12
#include " flutter/shell/platform/tizen/flutter_tizen_engine.h"
15
13
#include " flutter/shell/platform/tizen/logger.h"
16
14
@@ -96,14 +94,12 @@ FlutterTizenTextureRegistrar::CreateExternalTexture(
96
94
texture_info->pixel_buffer_config .callback ,
97
95
texture_info->pixel_buffer_config .user_data );
98
96
break ;
99
- #ifndef __X64_SHELL__
100
97
case kFlutterDesktopGpuBufferTexture :
101
98
return std::make_unique<ExternalTextureSurfaceGL>(
102
99
texture_info->gpu_buffer_config .callback ,
103
100
texture_info->gpu_buffer_config .destruction_callback ,
104
101
texture_info->gpu_buffer_config .user_data );
105
102
break ;
106
- #endif
107
103
default :
108
104
FT_LOG (Error) << " Invalid texture type." ;
109
105
return nullptr ;
You can’t perform that action at this time.
0 commit comments