| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "GrGLFragmentProcessor.h" | 8 #include "GrGLFragmentProcessor.h" |
| 9 #include "GrFragmentProcessor.h" | 9 #include "GrFragmentProcessor.h" |
| 10 #include "builders/GrGLFragmentShaderBuilder.h" | 10 #include "builders/GrGLFragmentShaderBuilder.h" |
| 11 #include "builders/GrGLProgramBuilder.h" | 11 #include "builders/GrGLProgramBuilder.h" |
| 12 | 12 |
| 13 void GrGLFragmentProcessor::setData(const GrGLProgramDataManager& pdman, | 13 void GrGLFragmentProcessor::setData(const GrGLSLProgramDataManager& pdman, |
| 14 const GrFragmentProcessor& processor) { | 14 const GrFragmentProcessor& processor) { |
| 15 this->onSetData(pdman, processor); | 15 this->onSetData(pdman, processor); |
| 16 SkASSERT(fChildProcessors.count() == processor.numChildProcessors()); | 16 SkASSERT(fChildProcessors.count() == processor.numChildProcessors()); |
| 17 for (int i = 0; i < fChildProcessors.count(); ++i) { | 17 for (int i = 0; i < fChildProcessors.count(); ++i) { |
| 18 fChildProcessors[i]->setData(pdman, processor.childProcessor(i)); | 18 fChildProcessors[i]->setData(pdman, processor.childProcessor(i)); |
| 19 } | 19 } |
| 20 } | 20 } |
| 21 | 21 |
| 22 void GrGLFragmentProcessor::emitChild(int childIndex, const char* inputColor, Em
itArgs& args) { | 22 void GrGLFragmentProcessor::emitChild(int childIndex, const char* inputColor, Em
itArgs& args) { |
| 23 this->internalEmitChild(childIndex, inputColor, args.fOutputColor, args); | 23 this->internalEmitChild(childIndex, inputColor, args.fOutputColor, args); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 childProc, | 96 childProc, |
| 97 outputColor, | 97 outputColor, |
| 98 inputColor, | 98 inputColor, |
| 99 childCoords, | 99 childCoords, |
| 100 childSamplers); | 100 childSamplers); |
| 101 this->childProcessor(childIndex)->emitCode(childArgs); | 101 this->childProcessor(childIndex)->emitCode(childArgs); |
| 102 fb->codeAppend("}\n"); | 102 fb->codeAppend("}\n"); |
| 103 | 103 |
| 104 fb->onAfterChildProcEmitCode(); | 104 fb->onAfterChildProcEmitCode(); |
| 105 } | 105 } |
| OLD | NEW |