aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkAlphaThresholdFilter.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-05-28 08:13:16 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-28 08:13:16 -0700
commit9138c46e572085870638b6f7ad7fcdfcdf3cac99 (patch)
tree81724ed66336cfc21c7139860914d70fb726e34c /src/effects/SkAlphaThresholdFilter.cpp
parent9c240a1e6d314056fe0d6a8a33a3c60a6e19288f (diff)
Add direct getter for GrCaps to GrContext.
TBR=joshualitt@google.com Review URL: https://codereview.chromium.org/1149773005
Diffstat (limited to 'src/effects/SkAlphaThresholdFilter.cpp')
-rw-r--r--src/effects/SkAlphaThresholdFilter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp
index 395408c23e..fe8887f54e 100644
--- a/src/effects/SkAlphaThresholdFilter.cpp
+++ b/src/effects/SkAlphaThresholdFilter.cpp
@@ -271,7 +271,7 @@ bool SkAlphaThresholdFilterImpl::asFragmentProcessor(GrFragmentProcessor** fp,
if (fp) {
GrContext* context = texture->getContext();
GrSurfaceDesc maskDesc;
- if (context->isConfigRenderable(kAlpha_8_GrPixelConfig, false)) {
+ if (context->caps()->isConfigRenderable(kAlpha_8_GrPixelConfig, false)) {
maskDesc.fConfig = kAlpha_8_GrPixelConfig;
} else {
maskDesc.fConfig = kRGBA_8888_GrPixelConfig;