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") {
154154 " channels/platform_channel.cc" ,
155155 " channels/settings_channel.cc" ,
156156 " channels/settings_channel_tizen.cc" ,
157- " external_texture_surface_gl .cc" ,
157+ " external_texture_surface_gl_tizen .cc" ,
158158 " system_utils_tizen.cc" ,
159159 ]
160160
@@ -177,6 +177,7 @@ template("embedder") {
177177 " channels/platform_channel_stub.cc" ,
178178 " channels/settings_channel.cc" ,
179179 " channels/settings_channel_linux.cc" ,
180+ " external_texture_surface_gl_linux.cc" ,
180181 " system_utils_linux.cc" ,
181182 ]
182183 }
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.
22// Use of this source code is governed by a BSD-style license that can be
33// found in the LICENSE file.
44
Original file line number Diff line number Diff line change 88#include < mutex>
99
1010#include " flutter/shell/platform/tizen/external_texture_pixel_gl.h"
11- #ifndef __X64_SHELL__
1211#include " flutter/shell/platform/tizen/external_texture_surface_gl.h"
13- #endif
1412#include " flutter/shell/platform/tizen/flutter_tizen_engine.h"
1513#include " flutter/shell/platform/tizen/logger.h"
1614
@@ -96,14 +94,12 @@ FlutterTizenTextureRegistrar::CreateExternalTexture(
9694 texture_info->pixel_buffer_config .callback ,
9795 texture_info->pixel_buffer_config .user_data );
9896 break ;
99- #ifndef __X64_SHELL__
10097 case kFlutterDesktopGpuBufferTexture :
10198 return std::make_unique<ExternalTextureSurfaceGL>(
10299 texture_info->gpu_buffer_config .callback ,
103100 texture_info->gpu_buffer_config .destruction_callback ,
104101 texture_info->gpu_buffer_config .user_data );
105102 break ;
106- #endif
107103 default :
108104 FT_LOG (Error) << " Invalid texture type." ;
109105 return nullptr ;
You can’t perform that action at this time.
0 commit comments