Skip to content

Commit 80ba8b6

Browse files
xiaowei-guanswift-kim
authored andcommitted
Fix texture build error (#51)
* Fix build error Tizen not implement texture, add empety implementation. * Resolve header file name conflict issue Change flutter_texture_registrar.h to flutter_tizen_texture_registrar.h this header file only for tizen platfrom. * Change tizen_embedder_engine.h access permission Change from 755 to 644
1 parent d64468b commit 80ba8b6

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

shell/platform/tizen/BUILD.gn

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ shared_library("flutter_tizen_library") {
2121
source_set("flutter_tizen_headers") {
2222
public = [
2323
"public/flutter_platform_view.h",
24-
"public/flutter_texture_registrar.h",
24+
"public/flutter_tizen_texture_registrar.h",
2525
"public/flutter_tizen.h",
2626
]
2727

shell/platform/tizen/flutter_tizen.cc

+26-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/standard_message_codec.h"
1010
#include "flutter/shell/platform/common/cpp/incoming_message_dispatcher.h"
1111
#include "flutter/shell/platform/tizen/public/flutter_platform_view.h"
12-
#include "flutter/shell/platform/tizen/public/flutter_texture_registrar.h"
12+
#include "flutter/shell/platform/tizen/public/flutter_tizen_texture_registrar.h"
1313
#include "flutter/shell/platform/tizen/tizen_embedder_engine.h"
1414
#include "flutter/shell/platform/tizen/tizen_log.h"
1515

@@ -215,3 +215,28 @@ void FlutterRegisterViewFactory(
215215
std::pair<std::string, std::unique_ptr<PlatformViewFactory>>(
216216
view_type, std::move(view_factory)));
217217
}
218+
219+
FlutterDesktopTextureRegistrarRef FlutterDesktopRegistrarGetTextureRegistrar(
220+
FlutterDesktopPluginRegistrarRef registrar) {
221+
FT_LOGE("Tizen DesktopTexture support is not implemented yet.");
222+
return nullptr;
223+
}
224+
225+
int64_t FlutterDesktopTextureRegistrarRegisterExternalTexture(
226+
FlutterDesktopTextureRegistrarRef texture_registrar,
227+
const FlutterDesktopTextureInfo* texture_info) {
228+
FT_LOGE("Tizen DesktopTexture support is not implemented yet.");
229+
return -1;
230+
}
231+
232+
bool FlutterDesktopTextureRegistrarUnregisterExternalTexture(
233+
FlutterDesktopTextureRegistrarRef texture_registrar, int64_t texture_id) {
234+
FT_LOGE("Tizen DesktopTexture support is not implemented yet.");
235+
return false;
236+
}
237+
238+
bool FlutterDesktopTextureRegistrarMarkExternalTextureFrameAvailable(
239+
FlutterDesktopTextureRegistrarRef texture_registrar, int64_t texture_id) {
240+
FT_LOGE("Tizen DesktopTexture support is not implemented yet.");
241+
return false;
242+
}

shell/platform/tizen/tizen_embedder_engine.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#include "flutter/shell/platform/tizen/channels/text_input_channel.h"
2121
#include "flutter/shell/platform/tizen/external_texture_gl.h"
2222
#include "flutter/shell/platform/tizen/key_event_handler.h"
23-
#include "flutter/shell/platform/tizen/public/flutter_texture_registrar.h"
2423
#include "flutter/shell/platform/tizen/public/flutter_tizen.h"
24+
#include "flutter/shell/platform/tizen/public/flutter_tizen_texture_registrar.h"
2525
#include "flutter/shell/platform/tizen/tizen_event_loop.h"
2626
#include "flutter/shell/platform/tizen/tizen_renderer.h"
2727
#ifdef FLUTTER_TIZEN_4

0 commit comments

Comments
 (0)