Index: src/gpu/SkGrPixelRef.cpp |
diff --git a/src/gpu/SkGrPixelRef.cpp b/src/gpu/SkGrPixelRef.cpp |
index 18fefcc7893b01146698027edf5c451e87e170e3..fd21f1073bf1560a34a95d8b0ac8cdecebd22d33 100644 |
--- a/src/gpu/SkGrPixelRef.cpp |
+++ b/src/gpu/SkGrPixelRef.cpp |
@@ -167,7 +167,7 @@ SkPixelRef* SkGrPixelRef::deepCopy(SkBitmap::Config dstConfig, const SkIRect* su |
} |
bool SkGrPixelRef::onReadPixels(SkBitmap* dst, const SkIRect* subset) { |
- if (NULL == fSurface || !fSurface->isValid()) { |
+ if (NULL == fSurface || fSurface->wasDestroyed()) { |
return false; |
} |