Index: src/gpu/GrCaps.cpp |
diff --git a/src/gpu/GrCaps.cpp b/src/gpu/GrCaps.cpp |
index eb2cf7dcbd45a270524e875b80f0c0f40aa04e0c..625bd90e8f5adc45b88c0d59cad0d3d1648f1c09 100644 |
--- a/src/gpu/GrCaps.cpp |
+++ b/src/gpu/GrCaps.cpp |
@@ -73,6 +73,10 @@ SkString GrShaderCaps::dump() const { |
return r; |
} |
+void GrShaderCaps::applyOptionsOverrides(const GrContextOptions&) { |
+ // Currently no overrides apply to shader caps. |
+} |
+ |
/////////////////////////////////////////////////////////////////////////////// |
GrCaps::GrCaps(const GrContextOptions& options) { |
@@ -103,6 +107,10 @@ GrCaps::GrCaps(const GrContextOptions& options) { |
fDrawPathMasksToCompressedTextureSupport = options.fDrawPathToCompressedTexture; |
} |
+void GrCaps::applyOptionsOverrides(const GrContextOptions& options) { |
+ fMaxTextureSize = SkTMin(fMaxTextureSize, options.fMaxTextureSizeOverride); |
+} |
+ |
static SkString map_flags_to_string(uint32_t flags) { |
SkString str; |
if (GrCaps::kNone_MapFlags == flags) { |