File tree Expand file tree Collapse file tree 3 files changed +0
-35
lines changed
flutter_inappwebview_windows/windows Expand file tree Collapse file tree 3 files changed +0
-35
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments