| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "Sk1DPathEffect.h" | 8 #include "Sk1DPathEffect.h" |
| 9 #include "Sk2DPathEffect.h" | 9 #include "Sk2DPathEffect.h" |
| 10 #include "SkAlphaThresholdFilter.h" | 10 #include "SkAlphaThresholdFilter.h" |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 } | 191 } |
| 192 | 192 |
| 193 static SkBlurMaskFilter::BlurFlags make_blur_mask_filter_flag() { | 193 static SkBlurMaskFilter::BlurFlags make_blur_mask_filter_flag() { |
| 194 return static_cast<SkBlurMaskFilter::BlurFlags>(R(SkBlurMaskFilter::kAll_Blu
rFlag+1)); | 194 return static_cast<SkBlurMaskFilter::BlurFlags>(R(SkBlurMaskFilter::kAll_Blu
rFlag+1)); |
| 195 } | 195 } |
| 196 | 196 |
| 197 static SkFilterQuality make_filter_quality() { | 197 static SkFilterQuality make_filter_quality() { |
| 198 return static_cast<SkFilterQuality>(R(kHigh_SkFilterQuality+1)); | 198 return static_cast<SkFilterQuality>(R(kHigh_SkFilterQuality+1)); |
| 199 } | 199 } |
| 200 | 200 |
| 201 static SkTypeface::Style make_typeface_style() { | 201 static SkFontStyle make_typeface_style() { |
| 202 return static_cast<SkTypeface::Style>(R(SkTypeface::kBoldItalic+1)); | 202 return SkFontStyle::FromOldStyle(SkTypeface::kBoldItalic+1); |
| 203 } | 203 } |
| 204 | 204 |
| 205 static SkPath1DPathEffect::Style make_path_1d_path_effect_style() { | 205 static SkPath1DPathEffect::Style make_path_1d_path_effect_style() { |
| 206 return static_cast<SkPath1DPathEffect::Style>(R((int)SkPath1DPathEffect::kLa
stEnum_Style + 1)); | 206 return static_cast<SkPath1DPathEffect::Style>(R((int)SkPath1DPathEffect::kLa
stEnum_Style + 1)); |
| 207 } | 207 } |
| 208 | 208 |
| 209 static SkColor make_color() { | 209 static SkColor make_color() { |
| 210 return (R(2) == 1) ? 0xFFC0F0A0 : 0xFF000090; | 210 return (R(2) == 1) ? 0xFFC0F0A0 : 0xFF000090; |
| 211 } | 211 } |
| 212 | 212 |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 } | 830 } |
| 831 | 831 |
| 832 private: | 832 private: |
| 833 typedef SkView INHERITED; | 833 typedef SkView INHERITED; |
| 834 }; | 834 }; |
| 835 | 835 |
| 836 ////////////////////////////////////////////////////////////////////////////// | 836 ////////////////////////////////////////////////////////////////////////////// |
| 837 | 837 |
| 838 static SkView* MyFactory() { return new ImageFilterFuzzView; } | 838 static SkView* MyFactory() { return new ImageFilterFuzzView; } |
| 839 static SkViewRegister reg(MyFactory); | 839 static SkViewRegister reg(MyFactory); |
| OLD | NEW |