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

Unified Diff: src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp

Issue 811373002: Remove GrCoordTransform::kPosition_CoordSet (Closed) Base URL: https://skia.googlesource.com/skia.git@jgm
Patch Set: fix warning Created 6 years 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 | « src/gpu/effects/GrTextureDomain.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp
diff --git a/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp b/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp
index 317657e61f4d55f32aa9e44601754342c92d9a4b..991b37d6a8cb16d7b2641e468878d4d320e40dc0 100644
--- a/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp
+++ b/src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp
@@ -54,13 +54,8 @@ void GrGLVertexBuilder::transformToNormalizedDeviceSpace() {
int transformCount = transVs.count();
for (int i = 0; i < transformCount; i++) {
GrCoordSet coordSet = transVs[i].fCoordSet;
- const char* coords;
+ const char* coords = NULL;
switch (coordSet) {
- default:
- SkFAIL("Case missing");
- case kPosition_GrCoordSet:
- coords = this->positionCoords();
- break;
case kLocal_GrCoordSet:
coords = this->localCoords();
break;
« no previous file with comments | « src/gpu/effects/GrTextureDomain.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698