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: samplecode/SampleFuzz.cpp

Issue 21835004: Blur refactoring (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: hide constant Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 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 #include "SampleCode.h" 8 #include "SampleCode.h"
9 #include "SkView.h" 9 #include "SkView.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 case 5: 169 case 5:
170 paint.setStrokeWidth(make_number()); 170 paint.setStrokeWidth(make_number());
171 break; 171 break;
172 172
173 case 6: 173 case 6:
174 paint.setStrokeMiter(make_number()); 174 paint.setStrokeMiter(make_number());
175 break; 175 break;
176 176
177 case 7: 177 case 7:
178 if (quick == true) break; 178 if (quick == true) break;
179 SkSafeUnref(paint.setMaskFilter(SkBlurMaskFilter::Create(make_number() , SkBlurMaskFilter::kNormal_BlurStyle))); 179 SkSafeUnref(paint.setMaskFilter(SkBlurMaskFilter::Create(make_number() ,
180 SkBlurMaskFilter::kNormal_BlurSt yle,
181 SkBlurMaskFilter::kNone_BlurFlag )));
180 break; 182 break;
181 183
182 case 8: 184 case 8:
183 if (quick == true) break; 185 if (quick == true) break;
184 //ctx.shadowColor = make_fill(); 186 //ctx.shadowColor = make_fill();
185 break; 187 break;
186 188
187 case 9: 189 case 9:
188 if (quick == true) break; 190 if (quick == true) break;
189 //ctx.shadowOffsetX = make_number(); 191 //ctx.shadowOffsetX = make_number();
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 } 374 }
373 375
374 private: 376 private:
375 typedef SkView INHERITED; 377 typedef SkView INHERITED;
376 }; 378 };
377 379
378 ////////////////////////////////////////////////////////////////////////////// 380 //////////////////////////////////////////////////////////////////////////////
379 381
380 static SkView* MyFactory() { return new FuzzView; } 382 static SkView* MyFactory() { return new FuzzView; }
381 static SkViewRegister reg(MyFactory); 383 static SkViewRegister reg(MyFactory);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698