Index: src/gpu/GrPathProcessor.cpp |
diff --git a/src/gpu/GrPathProcessor.cpp b/src/gpu/GrPathProcessor.cpp |
index f6c164016e12fd698854ecf42a66c3f6cddcd186..aeb16d879745099b5bfaa44e856d555bd8841c31 100644 |
--- a/src/gpu/GrPathProcessor.cpp |
+++ b/src/gpu/GrPathProcessor.cpp |
@@ -1,3 +1,10 @@ |
+/* |
+* Copyright 2013 Google Inc. |
+* |
+* Use of this source code is governed by a BSD-style license that can be |
+* found in the LICENSE file. |
+*/ |
+ |
#include "GrPathProcessor.h" |
#include "gl/GrGLPathProcessor.h" |
@@ -63,11 +70,6 @@ void GrPathProcessor::getGLProcessorKey(const GrBatchTracker& bt, |
GrGLPrimitiveProcessor* GrPathProcessor::createGLInstance(const GrBatchTracker& bt, |
const GrGLCaps& caps) const { |
- SkASSERT(caps.nvprSupport() != GrGLCaps::kNone_NvprSupport); |
- if (caps.nvprSupport() == GrGLCaps::kLegacy_NvprSupport) { |
- return SkNEW_ARGS(GrGLLegacyPathProcessor, (*this, bt, |
- caps.maxFixedFunctionTextureCoords())); |
- } else { |
- return SkNEW_ARGS(GrGLNormalPathProcessor, (*this, bt)); |
- } |
+ SkASSERT(caps.pathRenderingSupport()); |
+ return SkNEW_ARGS(GrGLPathProcessor, (*this, bt)); |
} |