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

Side by Side Diff: tests/BlurTest.cpp

Issue 12334131: Change random number generator for tests to SkMWCRandom (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Rebase to latest Created 7 years, 9 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 | « tests/AAClipTest.cpp ('k') | tests/ClampRangeTest.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 "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
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)
OLDNEW
« no previous file with comments | « tests/AAClipTest.cpp ('k') | tests/ClampRangeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698