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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 bool onIsEqual(const GrFragmentProcessor&) const override { return true; } | 83 bool onIsEqual(const GrFragmentProcessor&) const override { return true; } |
84 void onComputeInvariantOutput(GrInvariantOutput* inout) const override { } | 84 void onComputeInvariantOutput(GrInvariantOutput* inout) const override { } |
85 | 85 |
86 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; | 86 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; |
87 | 87 |
88 typedef GrFragmentProcessor INHERITED; | 88 typedef GrFragmentProcessor INHERITED; |
89 }; | 89 }; |
90 | 90 |
91 GR_DEFINE_FRAGMENT_PROCESSOR_TEST(BigKeyProcessor); | 91 GR_DEFINE_FRAGMENT_PROCESSOR_TEST(BigKeyProcessor); |
92 | 92 |
93 GrFragmentProcessor* BigKeyProcessor::TestCreate(GrProcessorTestData*) { | 93 const GrFragmentProcessor* BigKeyProcessor::TestCreate(GrProcessorTestData*) { |
94 return BigKeyProcessor::Create(); | 94 return BigKeyProcessor::Create(); |
95 } | 95 } |
96 | 96 |
97 /* | 97 /* |
98 * Begin test code | 98 * Begin test code |
99 */ | 99 */ |
100 static const int kRenderTargetHeight = 1; | 100 static const int kRenderTargetHeight = 1; |
101 static const int kRenderTargetWidth = 1; | 101 static const int kRenderTargetWidth = 1; |
102 | 102 |
103 static GrRenderTarget* random_render_target(GrTextureProvider* textureProvider,
SkRandom* random, | 103 static GrRenderTarget* random_render_target(GrTextureProvider* textureProvider,
SkRandom* random, |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 } | 296 } |
297 #endif | 297 #endif |
298 GrTestTarget target; | 298 GrTestTarget target; |
299 context->getTestTarget(&target); | 299 context->getTestTarget(&target); |
300 REPORTER_ASSERT(reporter, target.target()->programUnitTest(context,
maxStages)); | 300 REPORTER_ASSERT(reporter, target.target()->programUnitTest(context,
maxStages)); |
301 } | 301 } |
302 } | 302 } |
303 } | 303 } |
304 | 304 |
305 #endif | 305 #endif |
OLD | NEW |