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

Side by Side Diff: tests/PathOpsExtendedTest.cpp

Issue 52653002: pathops work in progress (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add raster vs gpu test Created 7 years, 1 month 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/PathOpsDTriangleTest.cpp ('k') | tests/PathOpsOpTest.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 * Copyright 2012 Google Inc. 2 * Copyright 2012 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 7
8 #include "PathOpsExtendedTest.h" 8 #include "PathOpsExtendedTest.h"
9 #include "PathOpsThreadedCommon.h" 9 #include "PathOpsThreadedCommon.h"
10 #include "SkBitmap.h" 10 #include "SkBitmap.h"
11 #include "SkCanvas.h" 11 #include "SkCanvas.h"
12 #include "SkForceLinking.h" 12 #include "SkForceLinking.h"
13 #include "SkMatrix.h" 13 #include "SkMatrix.h"
14 #include "SkPaint.h" 14 #include "SkPaint.h"
15 #include "SkRTConf.h"
15 #include "SkStream.h" 16 #include "SkStream.h"
16 #include "SkThreadPool.h" 17 #include "SkThreadPool.h"
17 18
18 #ifdef SK_BUILD_FOR_MAC 19 #ifdef SK_BUILD_FOR_MAC
19 #include <sys/sysctl.h> 20 #include <sys/sysctl.h>
20 #endif 21 #endif
21 22
22 __SK_FORCE_IMAGE_DECODER_LINKING; 23 __SK_FORCE_IMAGE_DECODER_LINKING;
23 24
24 static const char marker[] = 25 static const char marker[] =
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 } 628 }
628 629
629 bool testThreadedPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkP ath& b, 630 bool testThreadedPathOp(skiatest::Reporter* reporter, const SkPath& a, const SkP ath& b,
630 const SkPathOp shapeOp, const char* testName) { 631 const SkPathOp shapeOp, const char* testName) {
631 return innerPathOp(reporter, a, b, shapeOp, testName, true); 632 return innerPathOp(reporter, a, b, shapeOp, testName, true);
632 } 633 }
633 634
634 SK_DECLARE_STATIC_MUTEX(gMutex); 635 SK_DECLARE_STATIC_MUTEX(gMutex);
635 636
636 int initializeTests(skiatest::Reporter* reporter, const char* test) { 637 int initializeTests(skiatest::Reporter* reporter, const char* test) {
638 #if 0 // doesn't work yet
639 SK_CONF_SET("images.jpeg.suppressDecoderWarnings", true);
640 SK_CONF_SET("images.png.suppressDecoderWarnings", true);
641 #endif
637 #ifdef SK_DEBUG 642 #ifdef SK_DEBUG
638 SkPathOpsDebug::gMaxWindSum = 4; 643 SkPathOpsDebug::gMaxWindSum = 4;
639 SkPathOpsDebug::gMaxWindValue = 4; 644 SkPathOpsDebug::gMaxWindValue = 4;
640 #endif 645 #endif
641 if (reporter->verbose()) { 646 if (reporter->verbose()) {
642 SkAutoMutexAcquire lock(gMutex); 647 SkAutoMutexAcquire lock(gMutex);
643 testName = test; 648 testName = test;
644 size_t testNameSize = strlen(test); 649 size_t testNameSize = strlen(test);
645 SkFILEStream inFile("../../experimental/Intersection/op.htm"); 650 SkFILEStream inFile("../../experimental/Intersection/op.htm");
646 if (inFile.isValid()) { 651 if (inFile.isValid()) {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 } 712 }
708 if (tests[index].fun == stopTest) { 713 if (tests[index].fun == stopTest) {
709 SkDebugf("lastTest\n"); 714 SkDebugf("lastTest\n");
710 } 715 }
711 if (index == last) { 716 if (index == last) {
712 break; 717 break;
713 } 718 }
714 index += reverse ? -1 : 1; 719 index += reverse ? -1 : 1;
715 } while (true); 720 } while (true);
716 } 721 }
OLDNEW
« no previous file with comments | « tests/PathOpsDTriangleTest.cpp ('k') | tests/PathOpsOpTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698