diff --git a/shell/platform/embedder/tests/embedder_test_backingstore_producer.cc b/shell/platform/embedder/tests/embedder_test_backingstore_producer.cc index f2c7175efc501..1a5b800c9d36e 100644 --- a/shell/platform/embedder/tests/embedder_test_backingstore_producer.cc +++ b/shell/platform/embedder/tests/embedder_test_backingstore_producer.cc @@ -11,6 +11,7 @@ #include "third_party/skia/include/core/SkImageInfo.h" #include "third_party/skia/include/core/SkSize.h" #include "third_party/skia/include/core/SkSurface.h" +#include "third_party/skia/include/gpu/ganesh/SkSurfaceGanesh.h" #include #include @@ -97,8 +98,8 @@ bool EmbedderTestBackingStoreProducer::CreateFramebuffer( return false; } - GrBackendRenderTarget render_target = surface->getBackendRenderTarget( - SkSurface::BackendHandleAccess::kDiscardWrite_BackendHandleAccess); + GrBackendRenderTarget render_target = SkSurfaces::GetBackendRenderTarget( + surface.get(), SkSurfaces::BackendHandleAccess::kDiscardWrite); if (!render_target.isValid()) { FML_LOG(ERROR) << "Backend render target was invalid."; @@ -150,8 +151,8 @@ bool EmbedderTestBackingStoreProducer::CreateTexture( return false; } - GrBackendTexture render_texture = surface->getBackendTexture( - SkSurface::BackendHandleAccess::kDiscardWrite_BackendHandleAccess); + GrBackendTexture render_texture = SkSurfaces::GetBackendTexture( + surface.get(), SkSurfaces::BackendHandleAccess::kDiscardWrite); if (!render_texture.isValid()) { FML_LOG(ERROR) << "Backend render texture was invalid."; diff --git a/shell/platform/fuchsia/flutter/vulkan_surface_producer.cc b/shell/platform/fuchsia/flutter/vulkan_surface_producer.cc index 00282c068841d..7c5c2b27fc231 100644 --- a/shell/platform/fuchsia/flutter/vulkan_surface_producer.cc +++ b/shell/platform/fuchsia/flutter/vulkan_surface_producer.cc @@ -18,6 +18,7 @@ #include "third_party/skia/include/core/SkSurface.h" #include "third_party/skia/include/gpu/GrBackendSemaphore.h" #include "third_party/skia/include/gpu/GrBackendSurface.h" +#include "third_party/skia/include/gpu/ganesh/SkSurfaceGanesh.h" #include "third_party/skia/include/gpu/vk/GrVkBackendContext.h" #include "third_party/skia/include/gpu/vk/GrVkExtensions.h" #include "third_party/skia/include/gpu/vk/GrVkTypes.h" @@ -221,9 +222,9 @@ bool VulkanSurfaceProducer::TransitionSurfacesToExternal( if (!command_buffer->Begin()) return false; - GrBackendRenderTarget backendRT = - vk_surface->GetSkiaSurface()->getBackendRenderTarget( - SkSurface::kFlushRead_BackendHandleAccess); + GrBackendRenderTarget backendRT = SkSurfaces::GetBackendRenderTarget( + vk_surface->GetSkiaSurface().get(), + SkSurfaces::BackendHandleAccess::kFlushRead); if (!backendRT.isValid()) { return false; } diff --git a/vulkan/vulkan_swapchain.cc b/vulkan/vulkan_swapchain.cc index e6d5b780c27e0..00269228b260f 100644 --- a/vulkan/vulkan_swapchain.cc +++ b/vulkan/vulkan_swapchain.cc @@ -10,6 +10,7 @@ #include "third_party/skia/include/core/SkSurface.h" #include "third_party/skia/include/gpu/GrBackendSurface.h" #include "third_party/skia/include/gpu/GrDirectContext.h" +#include "third_party/skia/include/gpu/ganesh/SkSurfaceGanesh.h" #include "third_party/skia/include/gpu/vk/GrVkTypes.h" #include "vulkan_backbuffer.h" @@ -476,8 +477,8 @@ VulkanSwapchain::AcquireResult VulkanSwapchain::AcquireSurface() { return error; } - GrBackendRenderTarget backendRT = surface->getBackendRenderTarget( - SkSurface::kFlushRead_BackendHandleAccess); + GrBackendRenderTarget backendRT = SkSurfaces::GetBackendRenderTarget( + surface.get(), SkSurfaces::BackendHandleAccess::kFlushRead); if (!backendRT.isValid()) { FML_DLOG(INFO) << "Could not get backend render target."; return error;