| Index: src/gpu/GrCaps.cpp
|
| diff --git a/src/gpu/GrCaps.cpp b/src/gpu/GrCaps.cpp
|
| index 4095f1ab10e016404d02d894513b2113b97535ed..75cecdfb8c0b8d00111b2f3ed37e0be9fae0dcbd 100644
|
| --- a/src/gpu/GrCaps.cpp
|
| +++ b/src/gpu/GrCaps.cpp
|
| @@ -121,6 +121,12 @@ GrCaps::GrCaps(const GrContextOptions& options) {
|
|
|
| void GrCaps::applyOptionsOverrides(const GrContextOptions& options) {
|
| fMaxTextureSize = SkTMin(fMaxTextureSize, options.fMaxTextureSizeOverride);
|
| + // If the max tile override is zero, it means we should use the max texture size.
|
| + if (!options.fMaxTileSizeOverride || options.fMaxTileSizeOverride > fMaxTextureSize) {
|
| + fMaxTileSize = fMaxTextureSize;
|
| + } else {
|
| + fMaxTileSize = options.fMaxTileSizeOverride;
|
| + }
|
| }
|
|
|
| static SkString map_flags_to_string(uint32_t flags) {
|
|
|