| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "GrMSAAPathRenderer.h" | 8 #include "GrMSAAPathRenderer.h" |
| 9 | 9 |
| 10 #include "GrAuditTrail.h" | 10 #include "GrAuditTrail.h" |
| (...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 false); | 744 false); |
| 745 } | 745 } |
| 746 | 746 |
| 747 void GrMSAAPathRenderer::onStencilPath(const StencilPathArgs& args) { | 747 void GrMSAAPathRenderer::onStencilPath(const StencilPathArgs& args) { |
| 748 GR_AUDIT_TRAIL_AUTO_FRAME(args.fDrawContext->auditTrail(), | 748 GR_AUDIT_TRAIL_AUTO_FRAME(args.fDrawContext->auditTrail(), |
| 749 "GrMSAAPathRenderer::onStencilPath"); | 749 "GrMSAAPathRenderer::onStencilPath"); |
| 750 SkASSERT(SkPath::kInverseEvenOdd_FillType != args.fPath->getFillType()); | 750 SkASSERT(SkPath::kInverseEvenOdd_FillType != args.fPath->getFillType()); |
| 751 SkASSERT(SkPath::kInverseWinding_FillType != args.fPath->getFillType()); | 751 SkASSERT(SkPath::kInverseWinding_FillType != args.fPath->getFillType()); |
| 752 | 752 |
| 753 GrPaint paint; | 753 GrPaint paint; |
| 754 paint.setXPFactory(GrDisableColorXPFactory::Create()); | 754 SkSafeUnref(paint.setXPFactory(GrDisableColorXPFactory::Create())); |
| 755 paint.setAntiAlias(args.fIsAA); | 755 paint.setAntiAlias(args.fIsAA); |
| 756 | 756 |
| 757 this->internalDrawPath(args.fDrawContext, | 757 this->internalDrawPath(args.fDrawContext, |
| 758 paint, | 758 paint, |
| 759 &GrUserStencilSettings::kUnused, | 759 &GrUserStencilSettings::kUnused, |
| 760 *args.fClip, | 760 *args.fClip, |
| 761 GrColor_WHITE, | 761 GrColor_WHITE, |
| 762 *args.fViewMatrix, | 762 *args.fViewMatrix, |
| 763 *args.fPath, | 763 *args.fPath, |
| 764 true); | 764 true); |
| 765 } | 765 } |
| 766 | 766 |
| 767 ////////////////////////////////////////////////////////////////////////////////
/////////////////// | 767 ////////////////////////////////////////////////////////////////////////////////
/////////////////// |
| OLD | NEW |