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

Side by Side Diff: src/gpu/GrAAConvexPathRenderer.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/fonts/SkTestScalerContext.cpp ('k') | src/gpu/GrAADistanceFieldPathRenderer.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 #include "GrAAConvexPathRenderer.h" 9 #include "GrAAConvexPathRenderer.h"
10 10
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 typedef GrGeometryProcessor INHERITED; 666 typedef GrGeometryProcessor INHERITED;
667 }; 667 };
668 668
669 GR_DEFINE_GEOMETRY_PROCESSOR_TEST(QuadEdgeEffect); 669 GR_DEFINE_GEOMETRY_PROCESSOR_TEST(QuadEdgeEffect);
670 670
671 GrGeometryProcessor* QuadEdgeEffect::TestCreate(GrProcessorTestData* d) { 671 GrGeometryProcessor* QuadEdgeEffect::TestCreate(GrProcessorTestData* d) {
672 // Doesn't work without derivative instructions. 672 // Doesn't work without derivative instructions.
673 return d->fCaps->shaderCaps()->shaderDerivativeSupport() ? 673 return d->fCaps->shaderCaps()->shaderDerivativeSupport() ?
674 QuadEdgeEffect::Create(GrRandomColor(d->fRandom), 674 QuadEdgeEffect::Create(GrRandomColor(d->fRandom),
675 GrTest::TestMatrix(d->fRandom), 675 GrTest::TestMatrix(d->fRandom),
676 d->fRandom->nextBool()) : NULL; 676 d->fRandom->nextBool()) : nullptr;
677 } 677 }
678 678
679 /////////////////////////////////////////////////////////////////////////////// 679 ///////////////////////////////////////////////////////////////////////////////
680 680
681 bool GrAAConvexPathRenderer::onCanDrawPath(const CanDrawPathArgs& args) const { 681 bool GrAAConvexPathRenderer::onCanDrawPath(const CanDrawPathArgs& args) const {
682 return (args.fShaderCaps->shaderDerivativeSupport() && args.fAntiAlias && 682 return (args.fShaderCaps->shaderDerivativeSupport() && args.fAntiAlias &&
683 args.fStroke->isFillStyle() && !args.fPath->isInverseFillType() && 683 args.fStroke->isFillStyle() && !args.fPath->isInverseFillType() &&
684 args.fPath->isConvex()); 684 args.fPath->isConvex());
685 } 685 }
686 686
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 DRAW_BATCH_TEST_DEFINE(AAConvexPathBatch) { 1013 DRAW_BATCH_TEST_DEFINE(AAConvexPathBatch) {
1014 AAConvexPathBatch::Geometry geometry; 1014 AAConvexPathBatch::Geometry geometry;
1015 geometry.fColor = GrRandomColor(random); 1015 geometry.fColor = GrRandomColor(random);
1016 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random); 1016 geometry.fViewMatrix = GrTest::TestMatrixInvertible(random);
1017 geometry.fPath = GrTest::TestPathConvex(random); 1017 geometry.fPath = GrTest::TestPathConvex(random);
1018 1018
1019 return AAConvexPathBatch::Create(geometry); 1019 return AAConvexPathBatch::Create(geometry);
1020 } 1020 }
1021 1021
1022 #endif 1022 #endif
OLDNEW
« no previous file with comments | « src/fonts/SkTestScalerContext.cpp ('k') | src/gpu/GrAADistanceFieldPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698