Index: src/gpu/GrDrawingManager.cpp |
diff --git a/src/gpu/GrDrawingManager.cpp b/src/gpu/GrDrawingManager.cpp |
index 4642e1a3fe5e491d54856c9bdf1313060482701b..6c75c0d1474512a7db41b860f89a7e7680f1cca7 100644 |
--- a/src/gpu/GrDrawingManager.cpp |
+++ b/src/gpu/GrDrawingManager.cpp |
@@ -5,10 +5,8 @@ |
* found in the LICENSE file. |
*/ |
+#include "GrDrawContext.h" |
#include "GrDrawingManager.h" |
- |
-#include "GrContext.h" |
-#include "GrDrawContext.h" |
#include "GrDrawTarget.h" |
#include "GrPathRenderingDrawContext.h" |
#include "GrResourceProvider.h" |
@@ -76,9 +74,9 @@ |
fFlushState.reset(); |
} |
-void GrDrawingManager::internalFlush(GrResourceCache::FlushType type) { |
+bool GrDrawingManager::flush() { |
if (fFlushing || this->wasAbandoned()) { |
- return; |
+ return false; |
} |
fFlushing = true; |
bool flushed = false; |
@@ -128,11 +126,8 @@ |
#endif |
fFlushState.reset(); |
- // We always have to notify the cache when it requested a flush so it can reset its state. |
- if (flushed || type == GrResourceCache::FlushType::kCacheRequested) { |
- fContext->getResourceCache()->notifyFlushOccurred(type); |
- } |
fFlushing = false; |
+ return flushed; |
} |
GrDrawTarget* GrDrawingManager::newDrawTarget(GrRenderTarget* rt) { |