diff --git a/engine/src/flutter/shell/platform/android/android_surface.h b/engine/src/flutter/shell/platform/android/android_surface.h index 6d66353c15..2425a61e20 100644 --- a/engine/src/flutter/shell/platform/android/android_surface.h +++ b/engine/src/flutter/shell/platform/android/android_surface.h @@ -35,9 +35,6 @@ class AndroidSurface { virtual bool SetNativeWindow(fxl::RefPtr window, PlatformView::SurfaceConfig config = {}) = 0; - - virtual void SetFlutterView( - const fml::jni::JavaObjectWeakGlobalRef& flutter_view) = 0; }; } // namespace shell diff --git a/engine/src/flutter/shell/platform/android/android_surface_gl.cc b/engine/src/flutter/shell/platform/android/android_surface_gl.cc index 76b2e4ee28..ebaa9c730a 100644 --- a/engine/src/flutter/shell/platform/android/android_surface_gl.cc +++ b/engine/src/flutter/shell/platform/android/android_surface_gl.cc @@ -153,7 +153,4 @@ intptr_t AndroidSurfaceGL::GLContextFBO() const { return 0; } -void AndroidSurfaceGL::SetFlutterView( - const fml::jni::JavaObjectWeakGlobalRef& flutter_view) {} - } // namespace shell diff --git a/engine/src/flutter/shell/platform/android/android_surface_gl.h b/engine/src/flutter/shell/platform/android/android_surface_gl.h index 5abe472948..671c665564 100644 --- a/engine/src/flutter/shell/platform/android/android_surface_gl.h +++ b/engine/src/flutter/shell/platform/android/android_surface_gl.h @@ -49,9 +49,6 @@ class AndroidSurfaceGL : public GPUSurfaceGLDelegate, public AndroidSurface { bool SurfaceSupportsSRGB() const override; - void SetFlutterView( - const fml::jni::JavaObjectWeakGlobalRef& flutter_view) override; - private: fxl::RefPtr onscreen_context_; fxl::RefPtr offscreen_context_; diff --git a/engine/src/flutter/shell/platform/android/android_surface_software.cc b/engine/src/flutter/shell/platform/android/android_surface_software.cc index 5b916b0ec3..7b3135a564 100644 --- a/engine/src/flutter/shell/platform/android/android_surface_software.cc +++ b/engine/src/flutter/shell/platform/android/android_surface_software.cc @@ -148,9 +148,4 @@ bool AndroidSurfaceSoftware::SetNativeWindow( return true; } -void AndroidSurfaceSoftware::SetFlutterView( - const fml::jni::JavaObjectWeakGlobalRef& flutter_view) { - flutter_view_ = flutter_view; -} - } // namespace shell diff --git a/engine/src/flutter/shell/platform/android/android_surface_software.h b/engine/src/flutter/shell/platform/android/android_surface_software.h index 82e776bcb5..d9675d2361 100644 --- a/engine/src/flutter/shell/platform/android/android_surface_software.h +++ b/engine/src/flutter/shell/platform/android/android_surface_software.h @@ -39,14 +39,9 @@ class AndroidSurfaceSoftware : public AndroidSurface, bool SetNativeWindow(fxl::RefPtr window, PlatformView::SurfaceConfig config) override; - void SetFlutterView( - const fml::jni::JavaObjectWeakGlobalRef& flutter_view) override; - private: sk_sp sk_surface_; - fml::jni::JavaObjectWeakGlobalRef flutter_view_; - fxl::RefPtr native_window_; SkColorType target_color_type_; diff --git a/engine/src/flutter/shell/platform/android/android_surface_vulkan.cc b/engine/src/flutter/shell/platform/android/android_surface_vulkan.cc index 94d1f7e002..ccacf538b8 100644 --- a/engine/src/flutter/shell/platform/android/android_surface_vulkan.cc +++ b/engine/src/flutter/shell/platform/android/android_surface_vulkan.cc @@ -64,9 +64,6 @@ bool AndroidSurfaceVulkan::ResourceContextMakeCurrent() { return false; } -void AndroidSurfaceVulkan::SetFlutterView( - const fml::jni::JavaObjectWeakGlobalRef& flutter_view) {} - bool AndroidSurfaceVulkan::SetNativeWindow( fxl::RefPtr window, PlatformView::SurfaceConfig config) { diff --git a/engine/src/flutter/shell/platform/android/android_surface_vulkan.h b/engine/src/flutter/shell/platform/android/android_surface_vulkan.h index 3959785097..f1ecf610c8 100644 --- a/engine/src/flutter/shell/platform/android/android_surface_vulkan.h +++ b/engine/src/flutter/shell/platform/android/android_surface_vulkan.h @@ -35,9 +35,6 @@ class AndroidSurfaceVulkan : public AndroidSurface { bool SetNativeWindow(fxl::RefPtr window, PlatformView::SurfaceConfig config) override; - void SetFlutterView( - const fml::jni::JavaObjectWeakGlobalRef& flutter_view) override; - private: fxl::RefPtr proc_table_; fxl::RefPtr native_window_; diff --git a/engine/src/flutter/shell/platform/android/platform_view_android.h b/engine/src/flutter/shell/platform/android/platform_view_android.h index c6d90e569c..0766ddd636 100644 --- a/engine/src/flutter/shell/platform/android/platform_view_android.h +++ b/engine/src/flutter/shell/platform/android/platform_view_android.h @@ -99,7 +99,6 @@ class PlatformViewAndroid : public PlatformView { void set_flutter_view(const fml::jni::JavaObjectWeakGlobalRef& flutter_view) { flutter_view_ = flutter_view; - android_surface_->SetFlutterView(flutter_view); } private: