Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: src/gpu/batches/GrMSAAPathRenderer.cpp

Issue 2037243002: More Unref GrXPFactory. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 //////////////////////////////////////////////////////////////////////////////// ///////////////////
OLDNEW
« no previous file with comments | « src/gpu/batches/GrDefaultPathRenderer.cpp ('k') | src/gpu/batches/GrStencilAndCoverPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698