Skip to content

Commit 4086964

Browse files
committed
Revert "Add RestartEngine API to handle cold-restart scenario"
This reverts commit 330072d.
1 parent 330072d commit 4086964

File tree

4 files changed

+0
-21
lines changed

4 files changed

+0
-21
lines changed

shell/platform/tizen/channels/platform_view_channel.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ void PlatformViewChannel::ClearViewFactories() {
8080
view_factories_.clear();
8181
}
8282

83-
void PlatformViewChannel::PreEngineRestart() {
84-
ClearViewInstances();
85-
}
86-
8783
void PlatformViewChannel::SendKeyEvent(Ecore_Event_Key* key, bool is_down) {
8884
auto instances = ViewInstances();
8985
auto it = instances.find(CurrentFocusedViewId());

shell/platform/tizen/channels/platform_view_channel.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ class PlatformViewChannel {
3838
void DispatchCompositionUpdateEvent(const std::string& key);
3939
void DispatchCompositionEndEvent(const std::string& key);
4040

41-
void PreEngineRestart();
42-
4341
private:
4442
void HandleMethodCall(
4543
const flutter::MethodCall<flutter::EncodableValue>& call,

shell/platform/tizen/flutter_tizen_engine.cc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -194,12 +194,6 @@ bool FlutterTizenEngine::RunEngine(
194194
auto engine = reinterpret_cast<FlutterTizenEngine*>(user_data);
195195
auto message = engine->ConvertToDesktopMessage(*engine_message);
196196
engine->message_dispatcher->HandleMessage(message);
197-
198-
// Workarounds for handling engine restarts. Needs to be replaced by
199-
// PlatformView::OnPreEngineRestart.
200-
if (strncmp(message.channel, "flutter/isolate", 15) == 0) {
201-
engine->RestartEngine();
202-
}
203197
};
204198
args.custom_task_runners = &custom_task_runners;
205199
#ifndef TIZEN_RENDERER_EVAS_GL
@@ -276,13 +270,6 @@ bool FlutterTizenEngine::StopEngine() {
276270
return false;
277271
}
278272

279-
void FlutterTizenEngine::RestartEngine() {
280-
// Need to reset native resource.
281-
if (platform_view_channel) {
282-
platform_view_channel->PreEngineRestart();
283-
}
284-
}
285-
286273
FlutterDesktopPluginRegistrarRef FlutterTizenEngine::GetPluginRegistrar() {
287274
return plugin_registrar_.get();
288275
}

shell/platform/tizen/flutter_tizen_engine.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ class FlutterTizenEngine : public TizenRenderer::Delegate {
7070
bool RunEngine(const FlutterDesktopEngineProperties& engine_properties);
7171
bool StopEngine();
7272

73-
void RestartEngine();
74-
7573
// Returns the currently configured Plugin Registrar.
7674
FlutterDesktopPluginRegistrarRef GetPluginRegistrar();
7775

0 commit comments

Comments
 (0)