commit | 773a0b8c7e744e1492e118c08ebab314b9e85dd1 | [log] [tgz] |
---|---|---|
author | Chris Dalton <csmartdalton@google.com> | Wed Jun 23 23:03:16 2021 -0600 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Wed Jul 14 16:10:58 2021 +0000 |
tree | 1c287a88b5f7f71ec1b6e9111a687691e696a81f | |
parent | bdc2cd07446448501d7a426bee4c61594de62b61 [diff] [blame] |
Use stencil clips when DMSAA is supported Never use SW masks if we can use DMSAA instead. Bug: skia:11396 Change-Id: I44b09e352b62bd5979586fb6b9db033dd058034f Reviewed-on: https://skia-review.googlesource.com/c/skia/+/421196 Reviewed-by: Michael Ludwig <michaelludwig@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
diff --git a/src/gpu/GrStencilMaskHelper.cpp b/src/gpu/GrStencilMaskHelper.cpp index d75112c..dd74966 100644 --- a/src/gpu/GrStencilMaskHelper.cpp +++ b/src/gpu/GrStencilMaskHelper.cpp
@@ -322,6 +322,9 @@ } static GrAA supported_aa(GrSurfaceDrawContext* sdc, GrAA aa) { + if (sdc->canUseDynamicMSAA()) { + return GrAA::kYes; + } if (sdc->numSamples() > 1) { if (sdc->caps()->multisampleDisableSupport()) { return aa;