Skip to content

Commit fbebe5a

Browse files
author
Aleksandr Melnyk
committed
Revert "fix windows hang-on"
This reverts commit c75705b.
1 parent 6b14c3b commit fbebe5a

File tree

3 files changed

+0
-35
lines changed

3 files changed

+0
-35
lines changed

flutter_inappwebview_windows/windows/custom_platform_view/graphics_context.cc

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,6 @@ namespace flutter_inappwebview_plugin
2222
valid_ = true;
2323
}
2424

25-
GraphicsContext::~GraphicsContext()
26-
{
27-
// Explicitly release DirectX resources to prevent hanging process
28-
if (device_context_) {
29-
device_context_->ClearState();
30-
device_context_->Flush();
31-
device_context_ = nullptr;
32-
}
33-
34-
device_winrt_ = nullptr;
35-
device_ = nullptr;
36-
valid_ = false;
37-
}
38-
3925
winrt::com_ptr<ABI::Windows::UI::Composition::ICompositor>
4026
GraphicsContext::CreateCompositor()
4127
{

flutter_inappwebview_windows/windows/custom_platform_view/graphics_context.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ namespace flutter_inappwebview_plugin
1212
class GraphicsContext {
1313
public:
1414
GraphicsContext(rx::RoHelper* rohelper);
15-
~GraphicsContext();
1615

1716
inline bool IsValid() const { return valid_; }
1817

flutter_inappwebview_windows/windows/in_app_webview/in_app_webview_manager.cpp

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -256,26 +256,6 @@ namespace flutter_inappwebview_plugin
256256
keepAliveWebViews.clear();
257257
windowWebViews.clear();
258258
UnregisterClass(windowClass_.lpszClassName, nullptr);
259-
260-
// Properly cleanup static DirectX resources to prevent hanging process
261-
if (compositor_) {
262-
// Release the extra reference we added in constructor
263-
compositor_->Release();
264-
compositor_ = nullptr;
265-
}
266-
267-
// Reset graphics context to release DirectX resources
268-
graphics_context_.reset();
269-
270-
// Cleanup dispatcher queue controller
271-
if (dispatcher_queue_controller_) {
272-
dispatcher_queue_controller_ = nullptr;
273-
}
274-
275-
// Reset RoHelper
276-
rohelper_.reset();
277-
278-
valid_ = false;
279259
plugin = nullptr;
280260
}
281261
}

0 commit comments

Comments
 (0)