Index: src/gpu/GrDrawingManager.cpp |
diff --git a/src/gpu/GrDrawingManager.cpp b/src/gpu/GrDrawingManager.cpp |
index 6e84f22e2cc7e05f98c26c1bbf7152587f2aa313..7aa0fdbe0a281094edff5936373012cc03353c91 100644 |
--- a/src/gpu/GrDrawingManager.cpp |
+++ b/src/gpu/GrDrawingManager.cpp |
@@ -64,6 +64,11 @@ void GrDrawingManager::reset() { |
} |
void GrDrawingManager::flush() { |
+ if (fFlushing) { |
+ return; |
+ } |
+ fFlushing = true; |
+ |
SkDEBUGCODE(bool result =) |
SkTTopoSort<GrDrawTarget, GrDrawTarget::TopoSortTraits>(&fDrawTargets); |
SkASSERT(result); |
@@ -107,6 +112,7 @@ void GrDrawingManager::flush() { |
#endif |
fFlushState.reset(); |
+ fFlushing = false; |
} |
GrTextContext* GrDrawingManager::textContext(const SkSurfaceProps& props, |