add context override of GeometryBufferMapThreshold
BUG=skia:
Review URL: https://codereview.chromium.org/1159713006
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h
index e083042..25f3caa 100644
--- a/include/gpu/GrCaps.h
+++ b/include/gpu/GrCaps.h
@@ -196,7 +196,12 @@
bool suppressPrints() const { return fSupressPrints; }
bool drawPathMasksToCompressedTexturesSupport() const {
- return fDrawPathMasksToCompressedTextureSupport; }
+ return fDrawPathMasksToCompressedTextureSupport;
+ }
+
+ size_t geometryBufferMapThreshold() const {
+ return fGeometryBufferMapThreshold;
+ }
protected:
/** Subclasses must call this at the end of their constructors in order to apply caps
@@ -233,6 +238,7 @@
private:
bool fSupressPrints : 1;
bool fDrawPathMasksToCompressedTextureSupport : 1;
+ size_t fGeometryBufferMapThreshold;
typedef SkRefCnt INHERITED;
};