| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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); |
| OLD | NEW |