Index: dm/DMSrcSink.cpp |
diff --git a/dm/DMSrcSink.cpp b/dm/DMSrcSink.cpp |
index e704f74d030e9b4b8784c62b687abe879957170c..6584789a0b4bf2f224bfc7a00264d1e9d597331c 100644 |
--- a/dm/DMSrcSink.cpp |
+++ b/dm/DMSrcSink.cpp |
@@ -1011,6 +1011,8 @@ Error GPUSink::draw(const Src& src, SkBitmap* dst, SkWStream*, SkString* log) co |
canvas->readPixels(dst, 0, 0); |
if (FLAGS_abandonGpuContext) { |
factory.abandonContexts(); |
+ } else if (FLAGS_releaseAndAbandonGpuContext) { |
+ factory.releaseResourcesAndAbandonContexts(); |
} |
return ""; |
} |