| OLD | NEW |
| 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 "Test.h" | 8 #include "Test.h" |
| 9 #include "SkBlurMaskFilter.h" | 9 #include "SkBlurMaskFilter.h" |
| 10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
| 11 #include "SkMath.h" | 11 #include "SkMath.h" |
| 12 #include "SkPaint.h" | 12 #include "SkPaint.h" |
| 13 #include "SkRandom.h" | |
| 14 | 13 |
| 15 /////////////////////////////////////////////////////////////////////////////// | 14 /////////////////////////////////////////////////////////////////////////////// |
| 16 | 15 |
| 17 #define ILLEGAL_MODE ((SkXfermode::Mode)-1) | 16 #define ILLEGAL_MODE ((SkXfermode::Mode)-1) |
| 18 | 17 |
| 19 static const int outset = 100; | 18 static const int outset = 100; |
| 20 static const SkColor bgColor = SK_ColorWHITE; | 19 static const SkColor bgColor = SK_ColorWHITE; |
| 21 static const int strokeWidth = 4; | 20 static const int strokeWidth = 4; |
| 22 | 21 |
| 23 static void create(SkBitmap* bm, SkIRect bound, SkBitmap::Config config) { | 22 static void create(SkBitmap* bm, SkIRect bound, SkBitmap::Config config) { |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 REPORTER_ASSERT(reporter, | 152 REPORTER_ASSERT(reporter, |
| 154 compare(refBitmap, iref, testBitmap, itest)); | 153 compare(refBitmap, iref, testBitmap, itest)); |
| 155 } | 154 } |
| 156 } | 155 } |
| 157 } | 156 } |
| 158 } | 157 } |
| 159 } | 158 } |
| 160 | 159 |
| 161 #include "TestClassDef.h" | 160 #include "TestClassDef.h" |
| 162 DEFINE_TESTCLASS("BlurMaskFilter", BlurTestClass, test_blur) | 161 DEFINE_TESTCLASS("BlurMaskFilter", BlurTestClass, test_blur) |
| OLD | NEW |