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

Side by Side Diff: gm/beziereffects.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 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 | « gm/badpaint.cpp ('k') | gm/bigblurs.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 2013 Google Inc. 3 * Copyright 2013 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 // This test only works with the GPU backend. 9 // This test only works with the GPU backend.
10 10
(...skipping 22 matching lines...) Expand all
33 class BezierCubicOrConicTestBatch : public GrTestBatch { 33 class BezierCubicOrConicTestBatch : public GrTestBatch {
34 public: 34 public:
35 struct Geometry : public GrTestBatch::Geometry { 35 struct Geometry : public GrTestBatch::Geometry {
36 SkRect fBounds; 36 SkRect fBounds;
37 }; 37 };
38 38
39 const char* name() const override { return "BezierCubicOrConicTestBatch"; } 39 const char* name() const override { return "BezierCubicOrConicTestBatch"; }
40 40
41 static GrDrawBatch* Create(const GrGeometryProcessor* gp, const Geometry& ge o, 41 static GrDrawBatch* Create(const GrGeometryProcessor* gp, const Geometry& ge o,
42 const SkScalar klmEqs[9], SkScalar sign) { 42 const SkScalar klmEqs[9], SkScalar sign) {
43 return SkNEW_ARGS(BezierCubicOrConicTestBatch, (gp, geo, klmEqs, sign)); 43 return new BezierCubicOrConicTestBatch(gp, geo, klmEqs, sign);
44 } 44 }
45 45
46 private: 46 private:
47 BezierCubicOrConicTestBatch(const GrGeometryProcessor* gp, const Geometry& g eo, 47 BezierCubicOrConicTestBatch(const GrGeometryProcessor* gp, const Geometry& g eo,
48 const SkScalar klmEqs[9], SkScalar sign) 48 const SkScalar klmEqs[9], SkScalar sign)
49 : INHERITED(gp, geo.fBounds) { 49 : INHERITED(gp, geo.fBounds) {
50 this->initClassID<BezierCubicOrConicTestBatch>(); 50 this->initClassID<BezierCubicOrConicTestBatch>();
51 for (int i = 0; i < 9; i++) { 51 for (int i = 0; i < 9; i++) {
52 fKlmEqs[i] = klmEqs[i]; 52 fKlmEqs[i] = klmEqs[i];
53 } 53 }
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 class BezierQuadTestBatch : public GrTestBatch { 433 class BezierQuadTestBatch : public GrTestBatch {
434 public: 434 public:
435 struct Geometry : public GrTestBatch::Geometry { 435 struct Geometry : public GrTestBatch::Geometry {
436 SkRect fBounds; 436 SkRect fBounds;
437 }; 437 };
438 438
439 const char* name() const override { return "BezierQuadTestBatch"; } 439 const char* name() const override { return "BezierQuadTestBatch"; }
440 440
441 static GrDrawBatch* Create(const GrGeometryProcessor* gp, const Geometry& ge o, 441 static GrDrawBatch* Create(const GrGeometryProcessor* gp, const Geometry& ge o,
442 const GrPathUtils::QuadUVMatrix& devToUV) { 442 const GrPathUtils::QuadUVMatrix& devToUV) {
443 return SkNEW_ARGS(BezierQuadTestBatch, (gp, geo, devToUV)); 443 return new BezierQuadTestBatch(gp, geo, devToUV);
444 } 444 }
445 445
446 private: 446 private:
447 BezierQuadTestBatch(const GrGeometryProcessor* gp, const Geometry& geo, 447 BezierQuadTestBatch(const GrGeometryProcessor* gp, const Geometry& geo,
448 const GrPathUtils::QuadUVMatrix& devToUV) 448 const GrPathUtils::QuadUVMatrix& devToUV)
449 : INHERITED(gp, geo.fBounds) 449 : INHERITED(gp, geo.fBounds)
450 , fGeometry(geo) 450 , fGeometry(geo)
451 , fDevToUV(devToUV) { 451 , fDevToUV(devToUV) {
452 this->initClassID<BezierQuadTestBatch>(); 452 this->initClassID<BezierQuadTestBatch>();
453 } 453 }
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 ++row; 624 ++row;
625 } 625 }
626 } 626 }
627 } 627 }
628 } 628 }
629 629
630 private: 630 private:
631 typedef GM INHERITED; 631 typedef GM INHERITED;
632 }; 632 };
633 633
634 DEF_GM( return SkNEW(BezierCubicEffects); ) 634 DEF_GM(return new BezierCubicEffects;)
635 DEF_GM( return SkNEW(BezierConicEffects); ) 635 DEF_GM(return new BezierConicEffects;)
636 DEF_GM( return SkNEW(BezierQuadEffects); ) 636 DEF_GM(return new BezierQuadEffects;)
637
638 } 637 }
639 638
640 #endif 639 #endif
OLDNEW
« no previous file with comments | « gm/badpaint.cpp ('k') | gm/bigblurs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698