OLD | NEW |
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 | 8 |
9 // This is a GPU-backend specific test. It relies on static intializers to work | 9 // This is a GPU-backend specific test. It relies on static intializers to work |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 static const char* Name() { return "Big ol' Key"; } | 41 static const char* Name() { return "Big ol' Key"; } |
42 | 42 |
43 virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERR
IDE { | 43 virtual const GrBackendFragmentProcessorFactory& getFactory() const SK_OVERR
IDE { |
44 return GrTBackendFragmentProcessorFactory<BigKeyProcessor>::getInstance(
); | 44 return GrTBackendFragmentProcessorFactory<BigKeyProcessor>::getInstance(
); |
45 } | 45 } |
46 | 46 |
47 typedef GLBigKeyProcessor GLProcessor; | 47 typedef GLBigKeyProcessor GLProcessor; |
48 | 48 |
49 private: | 49 private: |
50 BigKeyProcessor() { } | 50 BigKeyProcessor() { } |
51 virtual bool onIsEqual(const GrProcessor&) const SK_OVERRIDE { return true;
} | 51 virtual bool onIsEqual(const GrFragmentProcessor&) const SK_OVERRIDE { retur
n true; } |
52 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE { } | 52 virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERR
IDE { } |
53 | 53 |
54 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; | 54 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; |
55 | 55 |
56 typedef GrFragmentProcessor INHERITED; | 56 typedef GrFragmentProcessor INHERITED; |
57 }; | 57 }; |
58 | 58 |
59 GR_DEFINE_FRAGMENT_PROCESSOR_TEST(BigKeyProcessor); | 59 GR_DEFINE_FRAGMENT_PROCESSOR_TEST(BigKeyProcessor); |
60 | 60 |
61 GrFragmentProcessor* BigKeyProcessor::TestCreate(SkRandom*, | 61 GrFragmentProcessor* BigKeyProcessor::TestCreate(SkRandom*, |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 if (type == GrContextFactory::kANGLE_GLContextType) { | 514 if (type == GrContextFactory::kANGLE_GLContextType) { |
515 maxStages = 3; | 515 maxStages = 3; |
516 } | 516 } |
517 #endif | 517 #endif |
518 REPORTER_ASSERT(reporter, gpu->programUnitTest(maxStages)); | 518 REPORTER_ASSERT(reporter, gpu->programUnitTest(maxStages)); |
519 } | 519 } |
520 } | 520 } |
521 } | 521 } |
522 | 522 |
523 #endif | 523 #endif |
OLD | NEW |