Index: src/gpu/GrSWMaskHelper.cpp |
diff --git a/src/gpu/GrSWMaskHelper.cpp b/src/gpu/GrSWMaskHelper.cpp |
index aa922ca170c832253537e8f2c77885b5ebc76435..25911866cbb3467577879f25a727ec9386c6726d 100644 |
--- a/src/gpu/GrSWMaskHelper.cpp |
+++ b/src/gpu/GrSWMaskHelper.cpp |
@@ -174,7 +174,7 @@ bool GrSWMaskHelper::init(const SkIRect& resultBounds, |
resultBounds.height()); |
if (allowCompression && |
- fContext->getOptions().fDrawPathToCompressedTexture && |
+ fContext->getGpu()->caps()->drawPathMasksToCompressedTexturesSupport() && |
choose_compressed_fmt(fContext->getGpu()->caps(), &fCompressedFormat)) { |
fCompressionMode = kCompress_CompressionMode; |
} |