未验证 提交 4092ec4c 编写于 作者: J Jason Simmons 提交者: GitHub

Do not use the centralized graphics context options for Fuchsia Vulkan contexts (#27347)

上级 b7e87779
......@@ -12,7 +12,6 @@
#include <vector>
#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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册