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

Side by Side Diff: gm/giantbitmap.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/fontmgr.cpp ('k') | gm/gm.h » ('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 * Copyright 2011 Google Inc. 2 * Copyright 2011 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 "gm.h" 8 #include "gm.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 return *fBM; 59 return *fBM;
60 } 60 }
61 61
62 public: 62 public:
63 GiantBitmapGM(SkShader::TileMode mode, bool doFilter, bool doRotate) : fBM(N ULL) { 63 GiantBitmapGM(SkShader::TileMode mode, bool doFilter, bool doRotate) : fBM(N ULL) {
64 fMode = mode; 64 fMode = mode;
65 fDoFilter = doFilter; 65 fDoFilter = doFilter;
66 fDoRotate = doRotate; 66 fDoRotate = doRotate;
67 } 67 }
68 68
69 virtual ~GiantBitmapGM() { 69 virtual ~GiantBitmapGM() { delete fBM; }
70 SkDELETE(fBM);
71 }
72 70
73 protected: 71 protected:
74 72
75 SkString onShortName() override { 73 SkString onShortName() override {
76 SkString str("giantbitmap_"); 74 SkString str("giantbitmap_");
77 switch (fMode) { 75 switch (fMode) {
78 case SkShader::kClamp_TileMode: 76 case SkShader::kClamp_TileMode:
79 str.append("clamp"); 77 str.append("clamp");
80 break; 78 break;
81 case SkShader::kRepeat_TileMode: 79 case SkShader::kRepeat_TileMode:
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 static skiagm::GMRegistry reg010(G010); 142 static skiagm::GMRegistry reg010(G010);
145 static skiagm::GMRegistry reg110(G110); 143 static skiagm::GMRegistry reg110(G110);
146 static skiagm::GMRegistry reg210(G210); 144 static skiagm::GMRegistry reg210(G210);
147 145
148 static skiagm::GMRegistry reg001(G001); 146 static skiagm::GMRegistry reg001(G001);
149 static skiagm::GMRegistry reg101(G101); 147 static skiagm::GMRegistry reg101(G101);
150 static skiagm::GMRegistry reg201(G201); 148 static skiagm::GMRegistry reg201(G201);
151 static skiagm::GMRegistry reg011(G011); 149 static skiagm::GMRegistry reg011(G011);
152 static skiagm::GMRegistry reg111(G111); 150 static skiagm::GMRegistry reg111(G111);
153 static skiagm::GMRegistry reg211(G211); 151 static skiagm::GMRegistry reg211(G211);
OLDNEW
« no previous file with comments | « gm/fontmgr.cpp ('k') | gm/gm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698