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/GrGLGpu.h" | 10 #include "gl/GrGLGpu.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 const SkMatrix& viewMatrix, | 119 const SkMatrix& viewMatrix, |
120 const SkMatrix& localMatrix) | 120 const SkMatrix& localMatrix) |
121 : INHERITED(true) | 121 : INHERITED(true) |
122 , fColor(color) | 122 , fColor(color) |
123 , fViewMatrix(viewMatrix) | 123 , fViewMatrix(viewMatrix) |
124 , fLocalMatrix(localMatrix) | 124 , fLocalMatrix(localMatrix) |
125 , fOpts(opts) { | 125 , fOpts(opts) { |
126 this->initClassID<GrPathProcessor>(); | 126 this->initClassID<GrPathProcessor>(); |
127 } | 127 } |
128 | 128 |
129 void GrPathProcessor::getGLProcessorKey(const GrGLSLCaps& caps, | 129 void GrPathProcessor::getGLSLProcessorKey(const GrGLSLCaps& caps, |
130 GrProcessorKeyBuilder* b) const { | 130 GrProcessorKeyBuilder* b) const { |
131 GrGLPathProcessor::GenKey(*this, caps, b); | 131 GrGLPathProcessor::GenKey(*this, caps, b); |
132 } | 132 } |
133 | 133 |
134 GrGLSLPrimitiveProcessor* GrPathProcessor::createGLInstance(const GrGLSLCaps& ca
ps) const { | 134 GrGLSLPrimitiveProcessor* GrPathProcessor::createGLSLInstance(const GrGLSLCaps&
caps) const { |
135 SkASSERT(caps.pathRenderingSupport()); | 135 SkASSERT(caps.pathRenderingSupport()); |
136 return new GrGLPathProcessor(); | 136 return new GrGLPathProcessor(); |
137 } | 137 } |
OLD | NEW |