From ba5c439809fb2be3b1db159b29aeffaa39f786df Mon Sep 17 00:00:00 2001 From: Robert Phillips Date: Wed, 25 Jul 2018 12:37:14 -0400 Subject: Fix GPU explicit resource allocation bug The explicit resource allocator assumes that it has complete control over the resources it hands out thus, they can have no pre-existing pending IO. Change-Id: I59d8d079d8b8514688c458a54424329b86922cb6 Reviewed-on: https://skia-review.googlesource.com/143300 Reviewed-by: Greg Daniel Commit-Queue: Robert Phillips --- src/gpu/GrOpList.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gpu/GrOpList.cpp') diff --git a/src/gpu/GrOpList.cpp b/src/gpu/GrOpList.cpp index 313c38f14c..c724ea9ba4 100644 --- a/src/gpu/GrOpList.cpp +++ b/src/gpu/GrOpList.cpp @@ -145,8 +145,10 @@ static const char* op_to_name(GrLoadOp op) { void GrOpList::dump(bool printDependencies) const { SkDebugf("--------------------------------------------------------------\n"); - SkDebugf("opListID: %d -> proxyID: %d\n", fUniqueID, - fTarget.get() ? fTarget.get()->uniqueID().asUInt() : -1); + SkDebugf("opListID: %d - proxyID: %d - surfaceID: %d\n", fUniqueID, + fTarget.get() ? fTarget.get()->uniqueID().asUInt() : -1, + fTarget.get() && fTarget.get()->priv().peekSurface() + ? fTarget.get()->priv().peekSurface()->uniqueID().asUInt() : -1); SkDebugf("ColorLoadOp: %s %x StencilLoadOp: %s\n", op_to_name(fColorLoadOp), GrLoadOp::kClear == fColorLoadOp ? fLoadClearColor : 0x0, -- cgit v1.2.3