Remove AndroidSurface::SetFlutterView (flutter/engine#4208)
This was used by AndroidSurfaceSoftware but is now obsolete
This commit is contained in:
@@ -35,9 +35,6 @@ class AndroidSurface {
|
||||
|
||||
virtual bool SetNativeWindow(fxl::RefPtr<AndroidNativeWindow> window,
|
||||
PlatformView::SurfaceConfig config = {}) = 0;
|
||||
|
||||
virtual void SetFlutterView(
|
||||
const fml::jni::JavaObjectWeakGlobalRef& flutter_view) = 0;
|
||||
};
|
||||
|
||||
} // namespace shell
|
||||
|
||||
@@ -153,7 +153,4 @@ intptr_t AndroidSurfaceGL::GLContextFBO() const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void AndroidSurfaceGL::SetFlutterView(
|
||||
const fml::jni::JavaObjectWeakGlobalRef& flutter_view) {}
|
||||
|
||||
} // namespace shell
|
||||
|
||||
@@ -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<AndroidContextGL> onscreen_context_;
|
||||
fxl::RefPtr<AndroidContextGL> offscreen_context_;
|
||||
|
||||
@@ -148,9 +148,4 @@ bool AndroidSurfaceSoftware::SetNativeWindow(
|
||||
return true;
|
||||
}
|
||||
|
||||
void AndroidSurfaceSoftware::SetFlutterView(
|
||||
const fml::jni::JavaObjectWeakGlobalRef& flutter_view) {
|
||||
flutter_view_ = flutter_view;
|
||||
}
|
||||
|
||||
} // namespace shell
|
||||
|
||||
@@ -39,14 +39,9 @@ class AndroidSurfaceSoftware : public AndroidSurface,
|
||||
bool SetNativeWindow(fxl::RefPtr<AndroidNativeWindow> window,
|
||||
PlatformView::SurfaceConfig config) override;
|
||||
|
||||
void SetFlutterView(
|
||||
const fml::jni::JavaObjectWeakGlobalRef& flutter_view) override;
|
||||
|
||||
private:
|
||||
sk_sp<SkSurface> sk_surface_;
|
||||
|
||||
fml::jni::JavaObjectWeakGlobalRef flutter_view_;
|
||||
|
||||
fxl::RefPtr<AndroidNativeWindow> native_window_;
|
||||
SkColorType target_color_type_;
|
||||
|
||||
|
||||
@@ -64,9 +64,6 @@ bool AndroidSurfaceVulkan::ResourceContextMakeCurrent() {
|
||||
return false;
|
||||
}
|
||||
|
||||
void AndroidSurfaceVulkan::SetFlutterView(
|
||||
const fml::jni::JavaObjectWeakGlobalRef& flutter_view) {}
|
||||
|
||||
bool AndroidSurfaceVulkan::SetNativeWindow(
|
||||
fxl::RefPtr<AndroidNativeWindow> window,
|
||||
PlatformView::SurfaceConfig config) {
|
||||
|
||||
@@ -35,9 +35,6 @@ class AndroidSurfaceVulkan : public AndroidSurface {
|
||||
bool SetNativeWindow(fxl::RefPtr<AndroidNativeWindow> window,
|
||||
PlatformView::SurfaceConfig config) override;
|
||||
|
||||
void SetFlutterView(
|
||||
const fml::jni::JavaObjectWeakGlobalRef& flutter_view) override;
|
||||
|
||||
private:
|
||||
fxl::RefPtr<vulkan::VulkanProcTable> proc_table_;
|
||||
fxl::RefPtr<AndroidNativeWindow> native_window_;
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user