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

Side by Side Diff: tests/GLProgramsTest.cpp

Issue 1316513002: Change SkShader;asFragmentProcessor signature to no longer take skpaint\grcolor* (Closed) Base URL: https://skia.googlesource.com/skia.git@things
Patch Set: Address comments, fix roll(?) Created 5 years, 3 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/GrTextureDomain.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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 } 303 }
304 #endif 304 #endif
305 GrTestTarget target; 305 GrTestTarget target;
306 context->getTestTarget(&target); 306 context->getTestTarget(&target);
307 REPORTER_ASSERT(reporter, target.target()->programUnitTest(context, maxStages)); 307 REPORTER_ASSERT(reporter, target.target()->programUnitTest(context, maxStages));
308 } 308 }
309 } 309 }
310 } 310 }
311 311
312 #endif 312 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrTextureDomain.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698