Remove AndroidSurface::SetFlutterView (flutter/engine#4208)

This was used by AndroidSurfaceSoftware but is now obsolete
This commit is contained in:
Jason Simmons
2017-10-12 13:49:56 -07:00
committed by GitHub
parent dcdf709491
commit e069095af0
8 changed files with 0 additions and 26 deletions

View File

@@ -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

View File

@@ -153,7 +153,4 @@ intptr_t AndroidSurfaceGL::GLContextFBO() const {
return 0;
}
void AndroidSurfaceGL::SetFlutterView(
const fml::jni::JavaObjectWeakGlobalRef& flutter_view) {}
} // namespace shell

View File

@@ -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_;

View File

@@ -148,9 +148,4 @@ bool AndroidSurfaceSoftware::SetNativeWindow(
return true;
}
void AndroidSurfaceSoftware::SetFlutterView(
const fml::jni::JavaObjectWeakGlobalRef& flutter_view) {
flutter_view_ = flutter_view;
}
} // namespace shell

View File

@@ -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_;

View File

@@ -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) {

View File

@@ -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_;

View File

@@ -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: