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

Side by Side Diff: gm/giantbitmap.cpp

Issue 1518893002: Use DEF_GM everywhere (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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/dropshadowimagefilter.cpp ('k') | gm/imagefilterscropexpand.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 * 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // canvas->drawRect(r, paint); return; 115 // canvas->drawRect(r, paint); return;
116 canvas->drawPaint(paint); 116 canvas->drawPaint(paint);
117 } 117 }
118 118
119 private: 119 private:
120 typedef GM INHERITED; 120 typedef GM INHERITED;
121 }; 121 };
122 122
123 /////////////////////////////////////////////////////////////////////////////// 123 ///////////////////////////////////////////////////////////////////////////////
124 124
125 static skiagm::GM* G000(void*) { return new GiantBitmapGM(SkShader::kClamp_TileM ode, false, false); } 125 DEF_GM( return new GiantBitmapGM(SkShader::kClamp_TileMode, false, false); )
126 static skiagm::GM* G100(void*) { return new GiantBitmapGM(SkShader::kRepeat_Tile Mode, false, false); } 126 DEF_GM( return new GiantBitmapGM(SkShader::kRepeat_TileMode, false, false); )
127 static skiagm::GM* G200(void*) { return new GiantBitmapGM(SkShader::kMirror_Tile Mode, false, false); } 127 DEF_GM( return new GiantBitmapGM(SkShader::kMirror_TileMode, false, false); )
128 static skiagm::GM* G010(void*) { return new GiantBitmapGM(SkShader::kClamp_TileM ode, true, false); } 128 DEF_GM( return new GiantBitmapGM(SkShader::kClamp_TileMode, true, false); )
129 static skiagm::GM* G110(void*) { return new GiantBitmapGM(SkShader::kRepeat_Tile Mode, true, false); } 129 DEF_GM( return new GiantBitmapGM(SkShader::kRepeat_TileMode, true, false); )
130 static skiagm::GM* G210(void*) { return new GiantBitmapGM(SkShader::kMirror_Tile Mode, true, false); } 130 DEF_GM( return new GiantBitmapGM(SkShader::kMirror_TileMode, true, false); )
131 131
132 static skiagm::GM* G001(void*) { return new GiantBitmapGM(SkShader::kClamp_TileM ode, false, true); } 132 DEF_GM( return new GiantBitmapGM(SkShader::kClamp_TileMode, false, true); )
133 static skiagm::GM* G101(void*) { return new GiantBitmapGM(SkShader::kRepeat_Tile Mode, false, true); } 133 DEF_GM( return new GiantBitmapGM(SkShader::kRepeat_TileMode, false, true); )
134 static skiagm::GM* G201(void*) { return new GiantBitmapGM(SkShader::kMirror_Tile Mode, false, true); } 134 DEF_GM( return new GiantBitmapGM(SkShader::kMirror_TileMode, false, true); )
135 static skiagm::GM* G011(void*) { return new GiantBitmapGM(SkShader::kClamp_TileM ode, true, true); } 135 DEF_GM( return new GiantBitmapGM(SkShader::kClamp_TileMode, true, true); )
136 static skiagm::GM* G111(void*) { return new GiantBitmapGM(SkShader::kRepeat_Tile Mode, true, true); } 136 DEF_GM( return new GiantBitmapGM(SkShader::kRepeat_TileMode, true, true); )
137 static skiagm::GM* G211(void*) { return new GiantBitmapGM(SkShader::kMirror_Tile Mode, true, true); } 137 DEF_GM( return new GiantBitmapGM(SkShader::kMirror_TileMode, true, true); )
138
139 static skiagm::GMRegistry reg000(G000);
140 static skiagm::GMRegistry reg100(G100);
141 static skiagm::GMRegistry reg200(G200);
142 static skiagm::GMRegistry reg010(G010);
143 static skiagm::GMRegistry reg110(G110);
144 static skiagm::GMRegistry reg210(G210);
145
146 static skiagm::GMRegistry reg001(G001);
147 static skiagm::GMRegistry reg101(G101);
148 static skiagm::GMRegistry reg201(G201);
149 static skiagm::GMRegistry reg011(G011);
150 static skiagm::GMRegistry reg111(G111);
151 static skiagm::GMRegistry reg211(G211);
OLDNEW
« no previous file with comments | « gm/dropshadowimagefilter.cpp ('k') | gm/imagefilterscropexpand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698