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