| Index: src/gpu/GrDrawTarget.h
|
| diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
|
| index 266dc0712bdf7ee6ef9002772a8bc1491100e3b6..c5058699b5ef880c2e2277099f7dae8e1c948d3e 100644
|
| --- a/src/gpu/GrDrawTarget.h
|
| +++ b/src/gpu/GrDrawTarget.h
|
| @@ -100,6 +100,15 @@ public:
|
| */
|
| bool canApplyCoverage() const;
|
|
|
| + /** When we're using coverage AA but the blend is incompatible (given gpu
|
| + * limitations) we should disable AA. */
|
| + bool shouldDisableCoverageAAForBlend() {
|
| + // Enable below if we should draw with AA even when it produces
|
| + // incorrect blending.
|
| + // return false;
|
| + return !this->canApplyCoverage();
|
| + }
|
| +
|
| /**
|
| * Given the current draw state and hw support, will HW AA lines be used (if
|
| * a line primitive type is drawn)?
|
|
|