| OLD | NEW |
| 1 #if !SK_SUPPORT_GPU | 1 #if !SK_SUPPORT_GPU |
| 2 #error "GPU support required" | 2 #error "GPU support required" |
| 3 #endif | 3 #endif |
| 4 | 4 |
| 5 #include "GrContext.h" | 5 #include "GrContext.h" |
| 6 #include "GrContextFactory.h" | 6 #include "GrContextFactory.h" |
| 7 #include "GrRenderTarget.h" | 7 #include "GrRenderTarget.h" |
| 8 #include "SkGpuDevice.h" | 8 #include "SkGpuDevice.h" |
| 9 #include "gl/GrGLDefines.h" | 9 #include "gl/GrGLDefines.h" |
| 10 | 10 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 public: | 139 public: |
| 140 SkpSkGrThreadedRunnable(void (*testFun)(SkpSkGrThreadState*), int dirNo, con
st char* str, | 140 SkpSkGrThreadedRunnable(void (*testFun)(SkpSkGrThreadState*), int dirNo, con
st char* str, |
| 141 SkpSkGrThreadedTestRunner* runner) { | 141 SkpSkGrThreadedTestRunner* runner) { |
| 142 SkASSERT(strlen(str) < sizeof(fState.fResult.fFilename) - 1); | 142 SkASSERT(strlen(str) < sizeof(fState.fResult.fFilename) - 1); |
| 143 fState.init(dirNo); | 143 fState.init(dirNo); |
| 144 strcpy(fState.fResult.fFilename, str); | 144 strcpy(fState.fResult.fFilename, str); |
| 145 fState.fReporter = runner->fReporter; | 145 fState.fReporter = runner->fReporter; |
| 146 fTestFun = testFun; | 146 fTestFun = testFun; |
| 147 } | 147 } |
| 148 | 148 |
| 149 virtual void run() SK_OVERRIDE { | 149 void run() SK_OVERRIDE { |
| 150 SkGraphics::SetTLSFontCacheLimit(1 * 1024 * 1024); | 150 SkGraphics::SetTLSFontCacheLimit(1 * 1024 * 1024); |
| 151 (*fTestFun)(&fState); | 151 (*fTestFun)(&fState); |
| 152 } | 152 } |
| 153 | 153 |
| 154 SkpSkGrThreadState fState; | 154 SkpSkGrThreadState fState; |
| 155 void (*fTestFun)(SkpSkGrThreadState*); | 155 void (*fTestFun)(SkpSkGrThreadState*); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 SkpSkGrThreadedTestRunner::~SkpSkGrThreadedTestRunner() { | 158 SkpSkGrThreadedTestRunner::~SkpSkGrThreadedTestRunner() { |
| 159 for (int index = 0; index < fRunnables.count(); index++) { | 159 for (int index = 0; index < fRunnables.count(); index++) { |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 int testIndex = 166; | 743 int testIndex = 166; |
| 744 int dirIndex = skipOverSkGr[testIndex - 166].directory; | 744 int dirIndex = skipOverSkGr[testIndex - 166].directory; |
| 745 SkString pictDir = make_in_dir_name(dirIndex); | 745 SkString pictDir = make_in_dir_name(dirIndex); |
| 746 if (pictDir.size() == 0) { | 746 if (pictDir.size() == 0) { |
| 747 return; | 747 return; |
| 748 } | 748 } |
| 749 SkString filename(skipOverSkGr[testIndex - 166].filename); | 749 SkString filename(skipOverSkGr[testIndex - 166].filename); |
| 750 TestResult::Test(dirIndex, filename.c_str(), kCompareBits, reporter->verbose
()); | 750 TestResult::Test(dirIndex, filename.c_str(), kCompareBits, reporter->verbose
()); |
| 751 TestResult::Test(dirIndex, filename.c_str(), kEncodeFiles, reporter->verbose
()); | 751 TestResult::Test(dirIndex, filename.c_str(), kEncodeFiles, reporter->verbose
()); |
| 752 } | 752 } |
| OLD | NEW |