Update the Vulkan backend to account for GPUSurface API updates. (flutter/engine#3933)

This commit is contained in:
Chinmay Garde
2017-07-28 18:25:13 -07:00
committed by GitHub
parent a802c739ee
commit a8b230ae6c
3 changed files with 0 additions and 11 deletions

View File

@@ -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();
}

View File

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

View File

@@ -49,10 +49,6 @@ std::unique_ptr<Surface> AndroidSurfaceVulkan::CreateGPUSurface() {
return nullptr;
}
if (!gpu_surface->Setup()) {
return nullptr;
}
return gpu_surface;
}