Readd "immediate" mode
This isn't an exact replacement. The accumulated batches are now flushed at drawContext-entry-point granularity (via the AutoCheckFlush objects) rather than per batch.
TBR=bsalomon@google.com
Review URL: https://codereview.chromium.org/1439533003
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h
index 572b9ca..2ee7a37 100644
--- a/include/gpu/GrCaps.h
+++ b/include/gpu/GrCaps.h
@@ -206,7 +206,9 @@
return fConfigTextureSupport[config];
}
- bool suppressPrints() const { return fSupressPrints; }
+ bool suppressPrints() const { return fSuppressPrints; }
+
+ bool immediateFlush() const { return fImmediateFlush; }
bool drawPathMasksToCompressedTexturesSupport() const {
return fDrawPathMasksToCompressedTextureSupport;
@@ -277,7 +279,8 @@
private:
virtual void onApplyOptionsOverrides(const GrContextOptions&) {};
- bool fSupressPrints : 1;
+ bool fSuppressPrints : 1;
+ bool fImmediateFlush: 1;
bool fDrawPathMasksToCompressedTextureSupport : 1;
typedef SkRefCnt INHERITED;