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

Side by Side Diff: src/gpu/GrStencilAndCoverPathRenderer.cpp

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 years, 3 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
« no previous file with comments | « src/gpu/GrSoftwarePathRenderer.cpp ('k') | src/gpu/GrStencilAndCoverTextContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "GrStencilAndCoverPathRenderer.h" 10 #include "GrStencilAndCoverPathRenderer.h"
(...skipping 19 matching lines...) Expand all
30 case SkPath::kInverseEvenOdd_FillType: 30 case SkPath::kInverseEvenOdd_FillType:
31 return GrPathRendering::kEvenOdd_FillType; 31 return GrPathRendering::kEvenOdd_FillType;
32 } 32 }
33 } 33 }
34 34
35 GrPathRenderer* GrStencilAndCoverPathRenderer::Create(GrResourceProvider* resour ceProvider, 35 GrPathRenderer* GrStencilAndCoverPathRenderer::Create(GrResourceProvider* resour ceProvider,
36 const GrCaps& caps) { 36 const GrCaps& caps) {
37 if (caps.shaderCaps()->pathRenderingSupport()) { 37 if (caps.shaderCaps()->pathRenderingSupport()) {
38 return new GrStencilAndCoverPathRenderer(resourceProvider); 38 return new GrStencilAndCoverPathRenderer(resourceProvider);
39 } else { 39 } else {
40 return NULL; 40 return nullptr;
41 } 41 }
42 } 42 }
43 43
44 GrStencilAndCoverPathRenderer::GrStencilAndCoverPathRenderer(GrResourceProvider* resourceProvider) 44 GrStencilAndCoverPathRenderer::GrStencilAndCoverPathRenderer(GrResourceProvider* resourceProvider)
45 : fResourceProvider(resourceProvider) { 45 : fResourceProvider(resourceProvider) {
46 } 46 }
47 47
48 bool GrStencilAndCoverPathRenderer::onCanDrawPath(const CanDrawPathArgs& args) c onst { 48 bool GrStencilAndCoverPathRenderer::onCanDrawPath(const CanDrawPathArgs& args) c onst {
49 if (args.fStroke->isHairlineStyle()) { 49 if (args.fStroke->isHairlineStyle()) {
50 return false; 50 return false;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 pipelineBuilder->setStencil(kStencilPass); 150 pipelineBuilder->setStencil(kStencilPass);
151 SkAutoTUnref<GrPathProcessor> pp(GrPathProcessor::Create(args.fColor, vi ewMatrix)); 151 SkAutoTUnref<GrPathProcessor> pp(GrPathProcessor::Create(args.fColor, vi ewMatrix));
152 args.fTarget->drawPath(*pipelineBuilder, pp, p, 152 args.fTarget->drawPath(*pipelineBuilder, pp, p,
153 convert_skpath_filltype(path.getFillType())); 153 convert_skpath_filltype(path.getFillType()));
154 } 154 }
155 155
156 pipelineBuilder->stencil()->setDisabled(); 156 pipelineBuilder->stencil()->setDisabled();
157 return true; 157 return true;
158 } 158 }
OLDNEW
« no previous file with comments | « src/gpu/GrSoftwarePathRenderer.cpp ('k') | src/gpu/GrStencilAndCoverTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698