Index: src/gpu/GrClipMaskManager.cpp |
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp |
index f8e045ba7f8f41f6d96a625bff3b6b5daea8f59a..9279ba5450b8c2c03ea6f15bc4a74d3c0e2398e8 100644 |
--- a/src/gpu/GrClipMaskManager.cpp |
+++ b/src/gpu/GrClipMaskManager.cpp |
@@ -489,7 +489,7 @@ |
desc.fFlags = kRenderTarget_GrSurfaceFlag; |
desc.fWidth = width; |
desc.fHeight = height; |
- if (this->getContext()->caps()->isConfigRenderable(kAlpha_8_GrPixelConfig, false)) { |
+ if (this->getContext()->isConfigRenderable(kAlpha_8_GrPixelConfig, false)) { |
desc.fConfig = kAlpha_8_GrPixelConfig; |
} else { |
desc.fConfig = kRGBA_8888_GrPixelConfig; |
@@ -526,8 +526,7 @@ |
desc.fWidth = clipSpaceIBounds.width(); |
desc.fHeight = clipSpaceIBounds.height(); |
desc.fConfig = kRGBA_8888_GrPixelConfig; |
- if (willUpload || |
- this->getContext()->caps()->isConfigRenderable(kAlpha_8_GrPixelConfig, false)) { |
+ if (willUpload || this->getContext()->isConfigRenderable(kAlpha_8_GrPixelConfig, false)) { |
// We would always like A8 but it isn't supported on all platforms |
desc.fConfig = kAlpha_8_GrPixelConfig; |
} |