0

[graphite] Always use new precompile argument

Following up on https://crrev.com/c/6302372 now that the corresponding
Skia change has rolled into Chrome.

Change-Id: Ieb09beb49a362f302d617a418495308c2d9a901f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6304903
Reviewed-by: Robert Phillips <robertphillips@google.com>
Reviewed-by: Vasiliy Telezhnikov <vasilyt@chromium.org>
Commit-Queue: James Godfrey-Kittle <jamesgk@google.com>
Cr-Commit-Position: refs/heads/main@{#1425302}
This commit is contained in:
James Godfrey-Kittle
2025-02-26 11:41:10 -08:00
committed by Chromium LUCI CQ
parent 76a6c3614e
commit 93049ba857
2 changed files with 2 additions and 9 deletions
gpu/command_buffer/service
skia/config

@ -106,16 +106,11 @@ size_t MaxNumSkSurface() {
#endif
}
// TODO: crbug.com/376667859 - passing the graphite::Context to here isn't safe.
// Correct when a suitable Skia object is added.
void PerformPrecompilation(
std::unique_ptr<skgpu::graphite::PrecompileContext> precompileContext) {
static const skgpu::graphite::RenderPassProperties kProps = {
const skgpu::graphite::RenderPassProperties kProps = {
skgpu::graphite::DepthStencilFlags::kDepth, kBGRA_8888_SkColorType,
#if !defined(SK_IGNORE_RENDER_PASS_PROPERTIES_COLOR_SPACE)
/* dstColorSpace= */ nullptr,
#endif
/* requiresMSAA= */ false};
/* dstColorSpace= */ nullptr, /* requiresMSAA= */ false};
// TODO: crbug.com/358074434 - add actually relevant precompilation
skgpu::graphite::PaintOptions paintOptions;

@ -241,8 +241,6 @@ SK_API void SkDebugf_FileLine(const char* file,
#define SK_DAWN_TEXTURE_INFO_IS_STRUCT
#define SK_IGNORE_RENDER_PASS_PROPERTIES_COLOR_SPACE
///////////////////////// Imported from BUILD.gn and skia_common.gypi
/* In some places Skia can use static initializers for global initialization,