| Index: src/gpu/GrDrawTarget.cpp
|
| diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
|
| index 72204fa14bfecbd81bff6619f709120e96ac4d3d..28369fde887e604abc6a2fa1bfb8290548ff8ba7 100644
|
| --- a/src/gpu/GrDrawTarget.cpp
|
| +++ b/src/gpu/GrDrawTarget.cpp
|
| @@ -613,19 +613,6 @@ void GrDrawTarget::removeGpuTraceMarker(const GrGpuTraceMarker* marker) {
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
|
|
| -bool GrDrawTarget::willUseHWAALines() const {
|
| - // There is a conflict between using smooth lines and our use of premultiplied alpha. Smooth
|
| - // lines tweak the incoming alpha value but not in a premul-alpha way. So we only use them when
|
| - // our alpha is 0xff and tweaking the color for partial coverage is OK
|
| - if (!this->caps()->hwAALineSupport() ||
|
| - !this->getDrawState().isHWAntialiasState()) {
|
| - return false;
|
| - }
|
| - GrDrawState::BlendOptFlags opts = this->getDrawState().getBlendOpts();
|
| - return (GrDrawState::kDisableBlend_BlendOptFlag & opts) &&
|
| - (GrDrawState::kCoverageAsAlpha_BlendOptFlag & opts);
|
| -}
|
| -
|
| bool GrDrawTarget::canApplyCoverage() const {
|
| // we can correctly apply coverage if a) we have dual source blending
|
| // or b) one of our blend optimizations applies.
|
|
|