| 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 | 89 |
| 90 GrPipelineBuilder::~GrPipelineBuilder() { | 90 GrPipelineBuilder::~GrPipelineBuilder() { |
| 91 SkASSERT(0 == fBlockEffectRemovalCnt); | 91 SkASSERT(0 == fBlockEffectRemovalCnt); |
| 92 for (int i = 0; i < fColorFragmentProcessors.count(); ++i) { | 92 for (int i = 0; i < fColorFragmentProcessors.count(); ++i) { |
| 93 fColorFragmentProcessors[i]->unref(); | 93 fColorFragmentProcessors[i]->unref(); |
| 94 } | 94 } |
| 95 for (int i = 0; i < fCoverageFragmentProcessors.count(); ++i) { | 95 for (int i = 0; i < fCoverageFragmentProcessors.count(); ++i) { |
| 96 fCoverageFragmentProcessors[i]->unref(); | 96 fCoverageFragmentProcessors[i]->unref(); |
| 97 } | 97 } |
| 98 } | 98 } |
| 99 | |
| 100 //////////////////////////////////////////////////////////////////////////////// | |
| 101 | |
| 102 void GrPipelineBuilder::calcColorInvariantOutput(const GrDrawBatch* batch) const
{ | |
| 103 fColorProcInfo.calcColorWithBatch(batch, fColorFragmentProcessors.begin(), | |
| 104 this->numColorFragmentProcessors()); | |
| 105 } | |
| 106 | |
| 107 void GrPipelineBuilder::calcCoverageInvariantOutput(const GrDrawBatch* batch) co
nst { | |
| 108 fCoverageProcInfo.calcCoverageWithBatch(batch, fCoverageFragmentProcessors.b
egin(), | |
| 109 this->numCoverageFragmentProcessors(
)); | |
| 110 } | |
| 111 | |
| OLD | NEW |