| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "GrGeometryProcessor.h" | 8 #include "GrGeometryProcessor.h" |
| 9 | 9 |
| 10 #include "GrCoordTransform.h" | 10 #include "GrCoordTransform.h" |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 } | 509 } |
| 510 | 510 |
| 511 void GrPathProcessor::getInvariantOutputColor(GrInitInvariantOutput* out) const
{ | 511 void GrPathProcessor::getInvariantOutputColor(GrInitInvariantOutput* out) const
{ |
| 512 out->setKnownFourComponents(fColor); | 512 out->setKnownFourComponents(fColor); |
| 513 } | 513 } |
| 514 | 514 |
| 515 void GrPathProcessor::getInvariantOutputCoverage(GrInitInvariantOutput* out) con
st { | 515 void GrPathProcessor::getInvariantOutputCoverage(GrInitInvariantOutput* out) con
st { |
| 516 out->setKnownSingleComponent(0xff); | 516 out->setKnownSingleComponent(0xff); |
| 517 } | 517 } |
| 518 | 518 |
| 519 void GrPathProcessor::initBatchTracker(GrBatchTracker* bt, const InitBT& init) c
onst { | 519 void GrPathProcessor::initBatchTracker(GrBatchTracker* bt, const GrPipelineInfo&
init) const { |
| 520 PathBatchTracker* local = bt->cast<PathBatchTracker>(); | 520 PathBatchTracker* local = bt->cast<PathBatchTracker>(); |
| 521 if (init.fColorIgnored) { | 521 if (init.fColorIgnored) { |
| 522 local->fInputColorType = kIgnored_GrGPInput; | 522 local->fInputColorType = kIgnored_GrGPInput; |
| 523 local->fColor = GrColor_ILLEGAL; | 523 local->fColor = GrColor_ILLEGAL; |
| 524 } else { | 524 } else { |
| 525 local->fInputColorType = kUniform_GrGPInput; | 525 local->fInputColorType = kUniform_GrGPInput; |
| 526 local->fColor = GrColor_ILLEGAL == init.fOverrideColor ? this->color() : | 526 local->fColor = GrColor_ILLEGAL == init.fOverrideColor ? this->color() : |
| 527 init.fOverrideC
olor; | 527 init.fOverrideC
olor; |
| 528 } | 528 } |
| 529 | 529 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 const GrGLCaps& caps)
const { | 562 const GrGLCaps& caps)
const { |
| 563 SkASSERT(caps.nvprSupport() != GrGLCaps::kNone_NvprSupport); | 563 SkASSERT(caps.nvprSupport() != GrGLCaps::kNone_NvprSupport); |
| 564 if (caps.nvprSupport() == GrGLCaps::kLegacy_NvprSupport) { | 564 if (caps.nvprSupport() == GrGLCaps::kLegacy_NvprSupport) { |
| 565 return SkNEW_ARGS(GrGLLegacyPathProcessor, (*this, bt, | 565 return SkNEW_ARGS(GrGLLegacyPathProcessor, (*this, bt, |
| 566 caps.maxFixedFunctionTexture
Coords())); | 566 caps.maxFixedFunctionTexture
Coords())); |
| 567 } else { | 567 } else { |
| 568 return SkNEW_ARGS(GrGLNormalPathProcessor, (*this, bt)); | 568 return SkNEW_ARGS(GrGLNormalPathProcessor, (*this, bt)); |
| 569 } | 569 } |
| 570 } | 570 } |
| 571 | 571 |
| OLD | NEW |