Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index 39916b9728496ccb91fc5b30f2b42f9ead8f78a3..9f5d7bde0b76cc77c467b5d9d375f003a9d465f2 100644 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -26,9 +26,9 @@ |
#define ASSERT_OWNED_RESOURCE(R) SkASSERT(!(R) || (R)->getContext() == this) |
#define ASSERT_SINGLE_OWNER \ |
SkDEBUGCODE(GrSingleOwner::AutoEnforce debug_SingleOwner(&fSingleOwner);) |
-#define RETURN_IF_ABANDONED if (fDrawingManager->abandoned()) { return; } |
-#define RETURN_FALSE_IF_ABANDONED if (fDrawingManager->abandoned()) { return false; } |
-#define RETURN_NULL_IF_ABANDONED if (fDrawingManager->abandoned()) { return nullptr; } |
+#define RETURN_IF_ABANDONED if (fDrawingManager->wasAbandoned()) { return; } |
+#define RETURN_FALSE_IF_ABANDONED if (fDrawingManager->wasAbandoned()) { return false; } |
+#define RETURN_NULL_IF_ABANDONED if (fDrawingManager->wasAbandoned()) { return nullptr; } |
//////////////////////////////////////////////////////////////////////////////// |
@@ -686,7 +686,7 @@ sk_sp<GrDrawContext> GrContext::newDrawContext(SkBackingFit fit, |
bool GrContext::abandoned() const { |
ASSERT_SINGLE_OWNER |
- return fDrawingManager->abandoned(); |
+ return fDrawingManager->wasAbandoned(); |
} |
namespace { |