| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "GrPathProcessor.h" | 8 #include "GrPathProcessor.h" |
| 9 | 9 |
| 10 #include "gl/GrGLPathProcessor.h" | 10 #include "gl/GrGLPathProcessor.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 const PathBatchTracker& theirs = t.cast<PathBatchTracker>(); | 56 const PathBatchTracker& theirs = t.cast<PathBatchTracker>(); |
| 57 return CanCombineLocalMatrices(*this, mine.fUsesLocalCoords, | 57 return CanCombineLocalMatrices(*this, mine.fUsesLocalCoords, |
| 58 that, theirs.fUsesLocalCoords) && | 58 that, theirs.fUsesLocalCoords) && |
| 59 CanCombineOutput(mine.fInputColorType, mine.fColor, | 59 CanCombineOutput(mine.fInputColorType, mine.fColor, |
| 60 theirs.fInputColorType, theirs.fColor) && | 60 theirs.fInputColorType, theirs.fColor) && |
| 61 CanCombineOutput(mine.fInputCoverageType, 0xff, | 61 CanCombineOutput(mine.fInputCoverageType, 0xff, |
| 62 theirs.fInputCoverageType, 0xff); | 62 theirs.fInputCoverageType, 0xff); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void GrPathProcessor::getGLProcessorKey(const GrBatchTracker& bt, | 65 void GrPathProcessor::getGLProcessorKey(const GrBatchTracker& bt, |
| 66 const GrGLCaps& caps, | 66 const GrGLSLCaps& caps, |
| 67 GrProcessorKeyBuilder* b) const { | 67 GrProcessorKeyBuilder* b) const { |
| 68 GrGLPathProcessor::GenKey(*this, bt, caps, b); | 68 GrGLPathProcessor::GenKey(*this, bt, caps, b); |
| 69 } | 69 } |
| 70 | 70 |
| 71 GrGLPrimitiveProcessor* GrPathProcessor::createGLInstance(const GrBatchTracker&
bt, | 71 GrGLPrimitiveProcessor* GrPathProcessor::createGLInstance(const GrBatchTracker&
bt, |
| 72 const GrGLCaps& caps)
const { | 72 const GrGLSLCaps& caps
) const { |
| 73 SkASSERT(caps.pathRenderingSupport()); | 73 SkASSERT(caps.pathRenderingSupport()); |
| 74 return SkNEW_ARGS(GrGLPathProcessor, (*this, bt)); | 74 return SkNEW_ARGS(GrGLPathProcessor, (*this, bt)); |
| 75 } | 75 } |
| OLD | NEW |