| 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" |
| 11 #include "gl/GrGLGpu.h" | 11 #include "gl/GrGLGpu.h" |
| 12 | 12 |
| 13 #include "glsl/GrGLSLCaps.h" |
| 14 |
| 13 GrPathProcessor::GrPathProcessor(GrColor color, | 15 GrPathProcessor::GrPathProcessor(GrColor color, |
| 14 const SkMatrix& viewMatrix, | 16 const SkMatrix& viewMatrix, |
| 15 const SkMatrix& localMatrix) | 17 const SkMatrix& localMatrix) |
| 16 : INHERITED(true) | 18 : INHERITED(true) |
| 17 , fColor(color) | 19 , fColor(color) |
| 18 , fViewMatrix(viewMatrix) | 20 , fViewMatrix(viewMatrix) |
| 19 , fLocalMatrix(localMatrix) { | 21 , fLocalMatrix(localMatrix) { |
| 20 this->initClassID<GrPathProcessor>(); | 22 this->initClassID<GrPathProcessor>(); |
| 21 } | 23 } |
| 22 | 24 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 const GrGLSLCaps& caps, | 78 const GrGLSLCaps& caps, |
| 77 GrProcessorKeyBuilder* b) const { | 79 GrProcessorKeyBuilder* b) const { |
| 78 GrGLPathProcessor::GenKey(*this, bt, caps, b); | 80 GrGLPathProcessor::GenKey(*this, bt, caps, b); |
| 79 } | 81 } |
| 80 | 82 |
| 81 GrGLPrimitiveProcessor* GrPathProcessor::createGLInstance(const GrBatchTracker&
bt, | 83 GrGLPrimitiveProcessor* GrPathProcessor::createGLInstance(const GrBatchTracker&
bt, |
| 82 const GrGLSLCaps& caps
) const { | 84 const GrGLSLCaps& caps
) const { |
| 83 SkASSERT(caps.pathRenderingSupport()); | 85 SkASSERT(caps.pathRenderingSupport()); |
| 84 return SkNEW_ARGS(GrGLPathProcessor, (*this, bt)); | 86 return SkNEW_ARGS(GrGLPathProcessor, (*this, bt)); |
| 85 } | 87 } |
| OLD | NEW |