| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |