Index: src/gpu/GrDrawContext.cpp |
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp |
index bac3a169f526bdc5e83a22fcb9b545b062562ce7..7fc786152b800da89e965d6c2093dbba37edc797 100644 |
--- a/src/gpu/GrDrawContext.cpp |
+++ b/src/gpu/GrDrawContext.cpp |
@@ -162,6 +162,8 @@ void GrDrawContext::discard() { |
void GrDrawContext::clear(const SkIRect* rect, |
const GrColor color, |
bool canIgnoreRect) { |
+ SkDEBUGCODE(this->validate();) |
+ |
RETURN_IF_ABANDONED |
SkDEBUGCODE(this->validate();) |