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

Side by Side Diff: tests/BlurTest.cpp

Issue 132293005: Add a DEF_GPUTEST() macro. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fatory -> factory Created 6 years, 11 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 | « no previous file | tests/ClipCacheTest.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"
9 #include "SkBlurMask.h" 8 #include "SkBlurMask.h"
10 #include "SkBlurMaskFilter.h" 9 #include "SkBlurMaskFilter.h"
11 #include "SkCanvas.h" 10 #include "SkCanvas.h"
12 #include "SkMath.h" 11 #include "SkMath.h"
13 #include "SkPaint.h" 12 #include "SkPaint.h"
13 #include "Test.h"
14 #include "TestClassDef.h"
15
14 #if SK_SUPPORT_GPU 16 #if SK_SUPPORT_GPU
15 #include "GrContextFactory.h" 17 #include "GrContextFactory.h"
16 #include "SkGpuDevice.h" 18 #include "SkGpuDevice.h"
17 #endif 19 #endif
18 20
19 #define WRITE_CSV 0 21 #define WRITE_CSV 0
20 22
21 /////////////////////////////////////////////////////////////////////////////// 23 ///////////////////////////////////////////////////////////////////////////////
22 24
23 #define ILLEGAL_MODE ((SkXfermode::Mode)-1) 25 #define ILLEGAL_MODE ((SkXfermode::Mode)-1)
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 write_as_csv("GeneralCase", sigma, generalCaseResult, kSize); 378 write_as_csv("GeneralCase", sigma, generalCaseResult, kSize);
377 #if SK_SUPPORT_GPU 379 #if SK_SUPPORT_GPU
378 write_as_csv("GPU", sigma, gpuResult, kSize); 380 write_as_csv("GPU", sigma, gpuResult, kSize);
379 #endif 381 #endif
380 write_as_csv("GroundTruth2D", sigma, groundTruthResult, kSize); 382 write_as_csv("GroundTruth2D", sigma, groundTruthResult, kSize);
381 write_as_csv("BruteForce1D", sigma, bruteForce1DResult, kSize); 383 write_as_csv("BruteForce1D", sigma, bruteForce1DResult, kSize);
382 #endif 384 #endif
383 } 385 }
384 } 386 }
385 387
386 /////////////////////////////////////////////////////////////////////////////// 388 DEF_GPUTEST(Blur, reporter, factory) {
387
388 static void test_blur(skiatest::Reporter* reporter, GrContextFactory* factory) {
389 test_blur_drawing(reporter); 389 test_blur_drawing(reporter);
390 test_sigma_range(reporter, factory); 390 test_sigma_range(reporter, factory);
391 } 391 }
392
393 #include "TestClassDef.h"
394 DEFINE_GPUTESTCLASS("BlurMaskFilter", BlurTestClass, test_blur)
OLDNEW
« no previous file with comments | « no previous file | tests/ClipCacheTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698