diff options
author | 2015-05-29 08:02:10 -0700 | |
---|---|---|
committer | 2015-05-29 08:02:10 -0700 | |
commit | 762286309545c8a1e4bbc05dcd1fe3085d2a1f47 (patch) | |
tree | 0b939756bc2106ec4bf46d90362c6292a2ae4435 /src/effects/SkAlphaThresholdFilter.cpp | |
parent | ff2f423d90147dba710186ec4b63de75da7be8ed (diff) |
Add direct getter for GrCaps to GrContext.
TBR=joshualitt@google.com
Committed: https://skia.googlesource.com/skia/+/9138c46e572085870638b6f7ad7fcdfcdf3cac99
Review URL: https://codereview.chromium.org/1149773005
Diffstat (limited to 'src/effects/SkAlphaThresholdFilter.cpp')
-rw-r--r-- | src/effects/SkAlphaThresholdFilter.cpp | 2 |
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; |