Index: src/gpu/GrCaps.cpp |
diff --git a/src/gpu/GrCaps.cpp b/src/gpu/GrCaps.cpp |
index 1f277b7f7e3821bc95589151c347980e191e71d0..aaa585e3bbbde083324d9e6f453cd7b6704f901a 100644 |
--- a/src/gpu/GrCaps.cpp |
+++ b/src/gpu/GrCaps.cpp |
@@ -98,6 +98,7 @@ GrCaps::GrCaps(const GrContextOptions& options) { |
fMaxRenderTargetSize = 0; |
fMaxTextureSize = 0; |
+ fMinTextureSize = 0; |
fMaxSampleCount = 0; |
memset(fConfigRenderSupport, 0, sizeof(fConfigRenderSupport)); |
@@ -110,6 +111,7 @@ GrCaps::GrCaps(const GrContextOptions& options) { |
void GrCaps::applyOptionsOverrides(const GrContextOptions& options) { |
fMaxTextureSize = SkTMin(fMaxTextureSize, options.fMaxTextureSizeOverride); |
+ fMinTextureSize = SkTMax(fMinTextureSize, options.fMinTextureSizeOverride); |
} |
static SkString map_flags_to_string(uint32_t flags) { |
@@ -148,6 +150,7 @@ SkString GrCaps::dump() const { |
r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOfClear]); |
r.appendf("Max Texture Size : %d\n", fMaxTextureSize); |
+ r.appendf("Min Texture Size : %d\n", fMinTextureSize); |
r.appendf("Max Render Target Size : %d\n", fMaxRenderTargetSize); |
r.appendf("Max Sample Count : %d\n", fMaxSampleCount); |