| 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 "GrPipelineBuilder.h" | 8 #include "GrPipelineBuilder.h" |
| 9 | 9 |
| 10 #include "GrBlend.h" | 10 #include "GrBlend.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 for (int i = 0; i < fColorFragmentProcessors.count(); ++i) { | 89 for (int i = 0; i < fColorFragmentProcessors.count(); ++i) { |
| 90 fColorFragmentProcessors[i]->unref(); | 90 fColorFragmentProcessors[i]->unref(); |
| 91 } | 91 } |
| 92 for (int i = 0; i < fCoverageFragmentProcessors.count(); ++i) { | 92 for (int i = 0; i < fCoverageFragmentProcessors.count(); ++i) { |
| 93 fCoverageFragmentProcessors[i]->unref(); | 93 fCoverageFragmentProcessors[i]->unref(); |
| 94 } | 94 } |
| 95 } | 95 } |
| 96 | 96 |
| 97 //////////////////////////////////////////////////////////////////////////////// | 97 //////////////////////////////////////////////////////////////////////////////// |
| 98 | 98 |
| 99 void GrPipelineBuilder::calcColorInvariantOutput(const GrPrimitiveProcessor* pp)
const { | |
| 100 fColorProcInfo.calcColorWithPrimProc(pp, fColorFragmentProcessors.begin(), | |
| 101 this->numColorFragmentProcessors()); | |
| 102 | |
| 103 } | |
| 104 | |
| 105 void GrPipelineBuilder::calcCoverageInvariantOutput(const GrPrimitiveProcessor*
pp) const { | |
| 106 fCoverageProcInfo.calcCoverageWithPrimProc(pp, fCoverageFragmentProcessors.b
egin(), | |
| 107 this->numCoverageFragmentProcesso
rs()); | |
| 108 } | |
| 109 | |
| 110 void GrPipelineBuilder::calcColorInvariantOutput(const GrDrawBatch* batch) const
{ | 99 void GrPipelineBuilder::calcColorInvariantOutput(const GrDrawBatch* batch) const
{ |
| 111 fColorProcInfo.calcColorWithBatch(batch, fColorFragmentProcessors.begin(), | 100 fColorProcInfo.calcColorWithBatch(batch, fColorFragmentProcessors.begin(), |
| 112 this->numColorFragmentProcessors()); | 101 this->numColorFragmentProcessors()); |
| 113 } | 102 } |
| 114 | 103 |
| 115 void GrPipelineBuilder::calcCoverageInvariantOutput(const GrDrawBatch* batch) co
nst { | 104 void GrPipelineBuilder::calcCoverageInvariantOutput(const GrDrawBatch* batch) co
nst { |
| 116 fCoverageProcInfo.calcCoverageWithBatch(batch, fCoverageFragmentProcessors.b
egin(), | 105 fCoverageProcInfo.calcCoverageWithBatch(batch, fCoverageFragmentProcessors.b
egin(), |
| 117 this->numCoverageFragmentProcessors(
)); | 106 this->numCoverageFragmentProcessors(
)); |
| 118 } | 107 } |
| OLD | NEW |