aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/gpu/GrCaps.h4
-rw-r--r--include/gpu/GrContextOptions.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h
index 25f3caaded..38cf9019cf 100644
--- a/include/gpu/GrCaps.h
+++ b/include/gpu/GrCaps.h
@@ -180,6 +180,9 @@ public:
int maxRenderTargetSize() const { return fMaxRenderTargetSize; }
int maxTextureSize() const { return fMaxTextureSize; }
+ /** 0 unless GPU has problems with small textures */
+ int minTextureSize() const { return fMinTextureSize; }
+
// Will be 0 if MSAA is not supported
int maxSampleCount() const { return fMaxSampleCount; }
@@ -229,6 +232,7 @@ protected:
int fMaxRenderTargetSize;
int fMaxTextureSize;
+ int fMinTextureSize;
int fMaxSampleCount;
// The first entry for each config is without msaa and the second is with.
diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h
index d8d59fac3a..231aa30a3f 100644
--- a/include/gpu/GrContextOptions.h
+++ b/include/gpu/GrContextOptions.h
@@ -15,6 +15,7 @@ struct GrContextOptions {
: fDrawPathToCompressedTexture(false)
, fSuppressPrints(false)
, fMaxTextureSizeOverride(SK_MaxS32)
+ , fMinTextureSizeOverride(0)
, fSuppressDualSourceBlending(false)
, fGeometryBufferMapThreshold(1 << 15) {}
@@ -31,6 +32,7 @@ struct GrContextOptions {
detected values. */
int fMaxTextureSizeOverride;
+ int fMinTextureSizeOverride;
bool fSuppressDualSourceBlending;
/** fGeometryBufferMapThreshold gives a threshold (in bytes) for when Gr should