Chromium Code Reviews| Index: src/gpu/GrCaps.cpp |
| diff --git a/src/gpu/GrCaps.cpp b/src/gpu/GrCaps.cpp |
| index eb2cf7dcbd45a270524e875b80f0c0f40aa04e0c..c3c004c32f4b2a605b54fe34be73e49b2dc9e6ce 100644 |
| --- a/src/gpu/GrCaps.cpp |
| +++ b/src/gpu/GrCaps.cpp |
| @@ -103,6 +103,10 @@ GrCaps::GrCaps(const GrContextOptions& options) { |
| fDrawPathMasksToCompressedTextureSupport = options.fDrawPathToCompressedTexture; |
| } |
| +void GrCaps::applyOptionsOverrides(const GrContextOptions& options) { |
|
Chris Dalton
2015/05/27 19:57:13
Do we want a similar method on the shader caps, or
bsalomon
2015/05/27 20:17:33
I think we'd do it here as well. I added a stub fu
|
| + fMaxTextureSize = SkTMin(fMaxTextureSize, options.fMaxTextureSizeOverride); |
| +} |
| + |
| static SkString map_flags_to_string(uint32_t flags) { |
| SkString str; |
| if (GrCaps::kNone_MapFlags == flags) { |