Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index 06c27ea2cfaf3b71791caf3b3b408ed4efa90972..5f4e663580a7e525cdac0f07f110a9b7f70e909e 100644 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -594,6 +594,14 @@ void GrContext::flushSurfaceWrites(GrSurface* surface) { |
} |
} |
+void GrContext::flushSurfaceIO(GrSurface* surface) { |
+ ASSERT_SINGLE_OWNER |
+ RETURN_IF_ABANDONED |
+ if (surface->surfacePriv().hasPendingIO()) { |
+ this->flush(); |
+ } |
+} |
+ |
//////////////////////////////////////////////////////////////////////////////// |
int GrContext::getRecommendedSampleCount(GrPixelConfig config, |
SkScalar dpi) const { |