Update the Vulkan backend to account for GPUSurface API updates. (flutter/engine#3933)
This commit is contained in:
@@ -15,11 +15,6 @@ GPUSurfaceVulkan::GPUSurfaceVulkan(
|
||||
|
||||
GPUSurfaceVulkan::~GPUSurfaceVulkan() = default;
|
||||
|
||||
bool GPUSurfaceVulkan::Setup() {
|
||||
// This backend does not have an explicit setup task post initialization.
|
||||
return window_.IsValid();
|
||||
}
|
||||
|
||||
bool GPUSurfaceVulkan::IsValid() {
|
||||
return window_.IsValid();
|
||||
}
|
||||
|
||||
@@ -21,8 +21,6 @@ class GPUSurfaceVulkan : public Surface {
|
||||
|
||||
~GPUSurfaceVulkan() override;
|
||||
|
||||
bool Setup() override;
|
||||
|
||||
bool IsValid() override;
|
||||
|
||||
std::unique_ptr<SurfaceFrame> AcquireFrame(const SkISize& size) override;
|
||||
|
||||
@@ -49,10 +49,6 @@ std::unique_ptr<Surface> AndroidSurfaceVulkan::CreateGPUSurface() {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (!gpu_surface->Setup()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return gpu_surface;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user