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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 void GrPathProcessor::getGLProcessorKey(const GrBatchTracker& bt, | 78 void GrPathProcessor::getGLProcessorKey(const GrBatchTracker& bt, |
79 const GrGLSLCaps& caps, | 79 const GrGLSLCaps& caps, |
80 GrProcessorKeyBuilder* b) const { | 80 GrProcessorKeyBuilder* b) const { |
81 GrGLPathProcessor::GenKey(*this, bt, caps, b); | 81 GrGLPathProcessor::GenKey(*this, bt, caps, b); |
82 } | 82 } |
83 | 83 |
84 GrGLPrimitiveProcessor* GrPathProcessor::createGLInstance(const GrBatchTracker&
bt, | 84 GrGLPrimitiveProcessor* GrPathProcessor::createGLInstance(const GrBatchTracker&
bt, |
85 const GrGLSLCaps& caps
) const { | 85 const GrGLSLCaps& caps
) const { |
86 SkASSERT(caps.pathRenderingSupport()); | 86 SkASSERT(caps.pathRenderingSupport()); |
87 return SkNEW_ARGS(GrGLPathProcessor, (*this, bt)); | 87 return new GrGLPathProcessor(*this, bt); |
88 } | 88 } |
OLD | NEW |