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

Side by Side Diff: tests/GLProgramsTest.cpp

Issue 1362873002: Mangle output var in GrGLFragmentProcessor::emitChild (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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/gl/GrGLFragmentProcessor.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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 108 }
109 109
110 const char* name() const override { return "Block Input"; } 110 const char* name() const override { return "Block Input"; }
111 111
112 GrGLFragmentProcessor* onCreateGLInstance() const override { return new GLFP ; } 112 GrGLFragmentProcessor* onCreateGLInstance() const override { return new GLFP ; }
113 113
114 private: 114 private:
115 class GLFP : public GrGLFragmentProcessor { 115 class GLFP : public GrGLFragmentProcessor {
116 public: 116 public:
117 void emitCode(EmitArgs& args) override { 117 void emitCode(EmitArgs& args) override {
118 this->emitChild(0, nullptr, args.fOutputColor, args); 118 this->emitChild(0, nullptr, args);
119 } 119 }
120 120
121 private: 121 private:
122 typedef GrGLFragmentProcessor INHERITED; 122 typedef GrGLFragmentProcessor INHERITED;
123 }; 123 };
124 124
125 BlockInputFragmentProcessor(const GrFragmentProcessor* child) { 125 BlockInputFragmentProcessor(const GrFragmentProcessor* child) {
126 this->initClassID<BlockInputFragmentProcessor>(); 126 this->initClassID<BlockInputFragmentProcessor>();
127 this->registerChildProcessor(child); 127 this->registerChildProcessor(child);
128 } 128 }
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 } 442 }
443 #endif 443 #endif
444 GrTestTarget target; 444 GrTestTarget target;
445 context->getTestTarget(&target); 445 context->getTestTarget(&target);
446 REPORTER_ASSERT(reporter, target.target()->programUnitTest(context, maxStages)); 446 REPORTER_ASSERT(reporter, target.target()->programUnitTest(context, maxStages));
447 } 447 }
448 } 448 }
449 } 449 }
450 450
451 #endif 451 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLFragmentProcessor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698