Index: src/gpu/GrSurface.cpp |
diff --git a/src/gpu/GrSurface.cpp b/src/gpu/GrSurface.cpp |
index 37fd73f4f415a82f526a88d018043a1f3bddc3f4..d067f07d0df167512e1259106d52dac4a4bc53b7 100644 |
--- a/src/gpu/GrSurface.cpp |
+++ b/src/gpu/GrSurface.cpp |
@@ -48,6 +48,12 @@ bool GrSurface::savePixels(const char* filename) { |
return true; |
} |
+void GrSurface::flushWrites() { |
+ if (!this->wasDestroyed()) { |
+ this->getContext()->flushSurfaceWrites(this); |
+ } |
+} |
+ |
bool GrSurface::hasPendingRead() const { |
const GrTexture* thisTex = this->asTexture(); |
if (thisTex && thisTex->internalHasPendingRead()) { |