Add caps overrides to GMs
Review URL: https://codereview.chromium.org/1158963002
diff --git a/src/gpu/GrCaps.cpp b/src/gpu/GrCaps.cpp
index eb2cf7d..625bd90 100644
--- a/src/gpu/GrCaps.cpp
+++ b/src/gpu/GrCaps.cpp
@@ -73,6 +73,10 @@
return r;
}
+void GrShaderCaps::applyOptionsOverrides(const GrContextOptions&) {
+ // Currently no overrides apply to shader caps.
+}
+
///////////////////////////////////////////////////////////////////////////////
GrCaps::GrCaps(const GrContextOptions& options) {
@@ -103,6 +107,10 @@
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) {