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

Side by Side Diff: tests/GLProgramsTest.cpp

Issue 654273002: Push isEqual/onIsEqual down from GrProcessor to subclasses. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « src/gpu/effects/GrYUVtoRGBEffect.cpp ('k') | no next file » | 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 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
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
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
OLDNEW
« no previous file with comments | « src/gpu/effects/GrYUVtoRGBEffect.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698