fix for 440671
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index a456a79..e3b590a 100755
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -1574,9 +1574,10 @@
}
target->copySurface(dst, src, srcRect, dstPoint);
- if (kFlushWrites_PixelOp & pixelOpsFlags) {
- this->flush();
- }
+ // always flush, this is not the behavior of TOT Skia but some uses of GrContext copySurface
+ // in chrome rely on this behavior
+ // see crbug:440671
+ this->flush();
}
void GrContext::flushSurfaceWrites(GrSurface* surface) {