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

Side by Side Diff: samplecode/SampleFuzz.cpp

Issue 1852113003: switch maskfilters to sk_sp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « samplecode/SampleFilterFuzz.cpp ('k') | samplecode/SampleSlides.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 #include "SampleCode.h" 7 #include "SampleCode.h"
8 #include "SkView.h" 8 #include "SkView.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkBlurMaskFilter.h" 10 #include "SkBlurMaskFilter.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 case 5: 182 case 5:
183 paint.setStrokeWidth(make_number()); 183 paint.setStrokeWidth(make_number());
184 break; 184 break;
185 185
186 case 6: 186 case 6:
187 paint.setStrokeMiter(make_number()); 187 paint.setStrokeMiter(make_number());
188 break; 188 break;
189 189
190 case 7: 190 case 7:
191 if (quick == true) break; 191 if (quick == true) break;
192 SkSafeUnref(paint.setMaskFilter(SkBlurMaskFilter::Create(kNormal_SkBlu rStyle, 192 paint.setMaskFilter(SkBlurMaskFilter::Make(kNormal_SkBlurStyle, make_numbe r()));
193 make_number() )));
194 break; 193 break;
195 194
196 case 8: 195 case 8:
197 if (quick == true) break; 196 if (quick == true) break;
198 //ctx.shadowColor = make_fill(); 197 //ctx.shadowColor = make_fill();
199 break; 198 break;
200 199
201 case 9: 200 case 9:
202 if (quick == true) break; 201 if (quick == true) break;
203 //ctx.shadowOffsetX = make_number(); 202 //ctx.shadowOffsetX = make_number();
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 } 385 }
387 386
388 private: 387 private:
389 typedef SkView INHERITED; 388 typedef SkView INHERITED;
390 }; 389 };
391 390
392 ////////////////////////////////////////////////////////////////////////////// 391 //////////////////////////////////////////////////////////////////////////////
393 392
394 static SkView* MyFactory() { return new FuzzView; } 393 static SkView* MyFactory() { return new FuzzView; }
395 static SkViewRegister reg(MyFactory); 394 static SkViewRegister reg(MyFactory);
OLDNEW
« no previous file with comments | « samplecode/SampleFilterFuzz.cpp ('k') | samplecode/SampleSlides.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698