From 6d0433831e70bd33432b466092cb52c800c895c9 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Tue, 13 Jul 2021 07:41:02 -0700 Subject: [PATCH] Do not use the centralized graphics context options for Fuchsia Vulkan contexts (flutter/engine#27347) --- .../platform/fuchsia/flutter/vulkan_surface_producer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/src/flutter/shell/platform/fuchsia/flutter/vulkan_surface_producer.cc b/engine/src/flutter/shell/platform/fuchsia/flutter/vulkan_surface_producer.cc index 7cd757e5cc..53bf3b3eae 100644 --- a/engine/src/flutter/shell/platform/fuchsia/flutter/vulkan_surface_producer.cc +++ b/engine/src/flutter/shell/platform/fuchsia/flutter/vulkan_surface_producer.cc @@ -12,7 +12,6 @@ #include #include "flutter/fml/trace_event.h" -#include "flutter/shell/common/context_options.h" #include "third_party/skia/include/gpu/GrBackendSemaphore.h" #include "third_party/skia/include/gpu/GrBackendSurface.h" #include "third_party/skia/include/gpu/GrDirectContext.h" @@ -138,8 +137,9 @@ bool VulkanSurfaceProducer::Initialize(scenic::Session* scenic_session) { backend_context.fPhysicalDevice, 0, nullptr, countof(device_extensions), device_extensions); backend_context.fVkExtensions = &vk_extensions; - const auto options = flutter::MakeDefaultContextOptions( - flutter::ContextType::kRender, GrBackendApi::kVulkan); + GrContextOptions options; + options.fReduceOpsTaskSplitting = GrContextOptions::Enable::kNo; + context_ = GrDirectContext::MakeVulkan(backend_context, options); if (context_ == nullptr) {