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

Side by Side Diff: samplecode/SampleFuzz.cpp

Issue 253833002: move common blur types into central header (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase Created 6 years, 7 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
« no previous file with comments | « samplecode/SampleEffects.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 /* 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 case 5: 183 case 5:
184 paint.setStrokeWidth(make_number()); 184 paint.setStrokeWidth(make_number());
185 break; 185 break;
186 186
187 case 6: 187 case 6:
188 paint.setStrokeMiter(make_number()); 188 paint.setStrokeMiter(make_number());
189 break; 189 break;
190 190
191 case 7: 191 case 7:
192 if (quick == true) break; 192 if (quick == true) break;
193 SkSafeUnref(paint.setMaskFilter(SkBlurMaskFilter::Create( 193 SkSafeUnref(paint.setMaskFilter(SkBlurMaskFilter::Create(kNormal_SkBlu rStyle,
194 SkBlurMaskFilter::kNormal_Blur Style, 194 make_number() )));
195 make_number())));
196 break; 195 break;
197 196
198 case 8: 197 case 8:
199 if (quick == true) break; 198 if (quick == true) break;
200 //ctx.shadowColor = make_fill(); 199 //ctx.shadowColor = make_fill();
201 break; 200 break;
202 201
203 case 9: 202 case 9:
204 if (quick == true) break; 203 if (quick == true) break;
205 //ctx.shadowOffsetX = make_number(); 204 //ctx.shadowOffsetX = make_number();
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 } 387 }
389 388
390 private: 389 private:
391 typedef SkView INHERITED; 390 typedef SkView INHERITED;
392 }; 391 };
393 392
394 ////////////////////////////////////////////////////////////////////////////// 393 //////////////////////////////////////////////////////////////////////////////
395 394
396 static SkView* MyFactory() { return new FuzzView; } 395 static SkView* MyFactory() { return new FuzzView; }
397 static SkViewRegister reg(MyFactory); 396 static SkViewRegister reg(MyFactory);
OLDNEW
« no previous file with comments | « samplecode/SampleEffects.cpp ('k') | samplecode/SampleSlides.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698