File tree Expand file tree Collapse file tree 4 files changed +41
-6
lines changed Expand file tree Collapse file tree 4 files changed +41
-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/tizen/logger.h"
11+
12+ namespace flutter {
13+
14+ ExternalTextureSurfaceGL::ExternalTextureSurfaceGL (
15+ FlutterDesktopGpuBufferTextureCallback texture_callback,
16+ FlutterDesktopGpuBufferDestructionCallback destruction_callback,
17+ void * user_data)
18+ : ExternalTexture(),
19+ texture_callback_ (texture_callback),
20+ destruction_callback_(destruction_callback),
21+ user_data_(user_data) {}
22+
23+ ExternalTextureSurfaceGL::~ExternalTextureSurfaceGL () {
24+ FT_UNIMPLEMENTED ();
25+ }
26+
27+ bool ExternalTextureSurfaceGL::PopulateTexture (
28+ size_t width,
29+ size_t height,
30+ FlutterOpenGLTexture* opengl_texture) {
31+ FT_UNIMPLEMENTED ();
32+ return false ;
33+ }
34+
35+ void ExternalTextureSurfaceGL::OnDestruction () {
36+ FT_UNIMPLEMENTED ();
37+ }
38+
39+ } // namespace flutter
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ EVAS_GL_GLOBAL_GLES3_DECLARE();
1818
1919#include < tbm_surface.h>
2020
21- #include " flutter/shell/platform/common/public/flutter_texture_registrar.h"
2221#include " flutter/shell/platform/tizen/logger.h"
2322
2423namespace flutter {
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