aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/glsl
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2017-12-22 19:05:15 +0000
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-22 19:05:26 +0000
commitd23c7c45dcb13fbd4086594ae3f6dae2041dea82 (patch)
treec1c24f027cd74d90fded19ef48c5ea85c4c845da /src/gpu/glsl
parent0482ced2cd10eca60a183682855fe5e92bb7063b (diff)
Revert "CCPR: Initial semi-optimized vertex shader Impl"
This reverts commit e3877ce5ceb7842b61d54bebcc51864e5787a2bc. Reason for revert: Intel crashing again Original change's description: > CCPR: Initial semi-optimized vertex shader Impl > > TBR=bsalomon@google.com > > Bug: skia: > Change-Id: I24173e146d8c95cec5f29e8cb4fa5e2c28f9a33c > Reviewed-on: https://skia-review.googlesource.com/89120 > Reviewed-by: Chris Dalton <csmartdalton@google.com> > Commit-Queue: Chris Dalton <csmartdalton@google.com> TBR=bsalomon@google.com,brianosman@google.com,csmartdalton@google.com Change-Id: I2485db30397958722a07c5992c748ab69365ebb6 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: skia: Reviewed-on: https://skia-review.googlesource.com/89300 Reviewed-by: Chris Dalton <csmartdalton@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/glsl')
-rw-r--r--src/gpu/glsl/GrGLSLVarying.cpp1
-rw-r--r--src/gpu/glsl/GrGLSLVarying.h11
2 files changed, 2 insertions, 10 deletions
diff --git a/src/gpu/glsl/GrGLSLVarying.cpp b/src/gpu/glsl/GrGLSLVarying.cpp
index 5a57613b3a..4bcce0391a 100644
--- a/src/gpu/glsl/GrGLSLVarying.cpp
+++ b/src/gpu/glsl/GrGLSLVarying.cpp
@@ -37,7 +37,6 @@ void GrGLSLVaryingHandler::internalAddVarying(const char* name, GrGLSLVarying* v
VaryingInfo& v = fVaryings.push_back();
SkASSERT(varying);
- SkASSERT(kVoid_GrSLType != varying->fType);
v.fType = varying->fType;
v.fIsFlat = flat;
fProgramBuilder->nameVariable(&v.fVsOut, 'v', name);
diff --git a/src/gpu/glsl/GrGLSLVarying.h b/src/gpu/glsl/GrGLSLVarying.h
index dac9bb771f..e6174a6197 100644
--- a/src/gpu/glsl/GrGLSLVarying.h
+++ b/src/gpu/glsl/GrGLSLVarying.h
@@ -24,15 +24,8 @@ public:
kGeoToFrag
};
- GrGLSLVarying() = default;
GrGLSLVarying(GrSLType type, Scope scope = Scope::kVertToFrag) : fType(type), fScope(scope) {}
- void reset(GrSLType type, Scope scope = Scope::kVertToFrag) {
- *this = GrGLSLVarying();
- fType = type;
- fScope = scope;
- }
-
GrSLType type() const { return fType; }
Scope scope() const { return fScope; }
bool isInVertexShader() const { return Scope::kGeoToFrag != fScope; }
@@ -44,8 +37,8 @@ public:
const char* fsIn() const { SkASSERT(this->isInFragmentShader()); return fFsIn; }
private:
- GrSLType fType = kVoid_GrSLType;
- Scope fScope = Scope::kVertToFrag;
+ const GrSLType fType;
+ const Scope fScope;
const char* fVsOut = nullptr;
const char* fGsIn = nullptr;
const char* fGsOut = nullptr;