Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Unified Diff: src/gpu/GrPathProcessor.cpp

Issue 1110553003: Remove legacy NVPR support (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCaps.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCaps.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698