From d93793dfc1fec512d8bd130b8c4738ed48071f9d Mon Sep 17 00:00:00 2001 From: Thomas Smith Date: Mon, 18 May 2026 13:04:35 -0400 Subject: [PATCH] [graphite] ensure drawlist resources are cleared on failure Note: Original patch included DrawListLayer.cpp, that does not exist in m146. Bug: https://issues.chromium.org/issues/514063977 Change-Id: I03ccdf8224f6d6413c4632adf1d75216d8093e81 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/1238257 Commit-Queue: Thomas Smith Reviewed-by: Kaylee Lubick Reviewed-by: Michael Ludwig --- src/gpu/graphite/DrawList.cpp | 1 + src/gpu/graphite/DrawListLayer.cpp | 1 + 2 files changed, 2 insertions(+) --- a/src/gpu/graphite/DrawList.cpp +++ b/src/gpu/graphite/DrawList.cpp @@ -217,6 +217,7 @@ if (bufferMgr->hasMappingFailed()) { SKGPU_LOG_W("Failed to write necessary vertex/instance data for DrawPass, dropping!"); + this->reset(LoadOp::kLoad); return nullptr; }