aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-06-01 07:13:42 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-01 07:13:42 -0700
commitc59a1df65516eb60f9d41823d52e7ebffa900e9a (patch)
treeb1d71d42f6d8a1e0c44423f76607018aac7215d3 /include
parentc58e5326bbb296ddf598f7d3cdb652baad7bcb6b (diff)
Stretch small textures up to 16 pixels on PowerVR 54x
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