diff options
author | 2015-09-14 12:01:42 -0700 | |
---|---|---|
committer | 2015-09-14 12:01:42 -0700 | |
commit | 59ce45fe7984b3ee1bdbd107805a3146a0064fab (patch) | |
tree | fa6b9a0da4910a3dc2dd91274daf8b10b778ec74 /include/gpu/GrProcessorUnitTest.h | |
parent | 72c58e7052af2a0855412ce4b249f977069db751 (diff) |
Revert of Test that GrFragmentProcessors work without input colors. (patchset #2 id:20001 of https://codereview.chromium.org/1341853002/ )
Reason for revert:
Need to fix up more processor subclasses.
Original issue's description:
> Test that GrFragmentProcessors work without input colors.
>
> Committed: https://skia.googlesource.com/skia/+/72c58e7052af2a0855412ce4b249f977069db751
TBR=joshualitt@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
Review URL: https://codereview.chromium.org/1338403003
Diffstat (limited to 'include/gpu/GrProcessorUnitTest.h')
-rw-r--r-- | include/gpu/GrProcessorUnitTest.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/include/gpu/GrProcessorUnitTest.h b/include/gpu/GrProcessorUnitTest.h index 8a17521bfc..66ba239602 100644 --- a/include/gpu/GrProcessorUnitTest.h +++ b/include/gpu/GrProcessorUnitTest.h @@ -68,19 +68,10 @@ public: GetFactories()->push_back(this); } - /** Pick a random factory function and create a processor. */ - static const Processor* Create(GrProcessorTestData* data) { + static const Processor* CreateStage(GrProcessorTestData* data) { VerifyFactoryCount(); SkASSERT(GetFactories()->count()); uint32_t idx = data->fRandom->nextRangeU(0, GetFactories()->count() - 1); - return CreateIdx(idx, data); - } - - /** Number of registered factory functions */ - static int Count() { return GetFactories()->count(); } - - /** Use factory function at Index idx to create a processor. */ - static const Processor* CreateIdx(int idx, GrProcessorTestData* data) { GrProcessorTestFactory<Processor>* factory = (*GetFactories())[idx]; return factory->fCreateProc(data); } |