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

Unified Diff: include/gpu/GrEffect.h

Issue 367643004: Implement NVPR on GLES (Closed) Base URL: https://skia.googlesource.com/skia.git@02-path-program-fragment
Patch Set: rebse Created 6 years, 4 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/GrGpu.h » ('j') | src/gpu/gl/builders/GrGLProgramBuilder.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrEffect.h
diff --git a/include/gpu/GrEffect.h b/include/gpu/GrEffect.h
index 4734c7c377185b5dfd4eba6bdd6efb2adc24f1b9..09d716f80ac7c5ed2f4a5cd6230081f801ace12d 100644
--- a/include/gpu/GrEffect.h
+++ b/include/gpu/GrEffect.h
@@ -114,10 +114,10 @@ public:
/** Will this effect emit custom vertex shader code?
(To set this value the effect must inherit from GrEffect.) */
- bool hasVertexCode() const { return fHasVertexCode; }
+ bool requiresVertexShader() const { return fRequiresVertexShader; }
int numVertexAttribs() const {
- SkASSERT(0 == fVertexAttribTypes.count() || fHasVertexCode);
+ SkASSERT(0 == fVertexAttribTypes.count() || fRequiresVertexShader);
return fVertexAttribTypes.count();
}
@@ -166,7 +166,7 @@ protected:
: fWillReadDstColor(false)
, fWillReadFragmentPosition(false)
, fWillUseInputColor(true)
- , fHasVertexCode(false) {}
+ , fRequiresVertexShader(false) {}
/**
* Helper for down-casting to a GrEffect subclass
@@ -204,7 +204,7 @@ private:
getFactory()).*/
virtual bool onIsEqual(const GrEffect& other) const = 0;
- friend class GrVertexEffect; // to set fHasVertexCode and build fVertexAttribTypes.
+ friend class GrVertexEffect; // to set fRequiresVertexShader and build fVertexAttribTypes.
SkSTArray<4, const GrCoordTransform*, true> fCoordTransforms;
SkSTArray<4, const GrTextureAccess*, true> fTextureAccesses;
@@ -212,7 +212,7 @@ private:
bool fWillReadDstColor;
bool fWillReadFragmentPosition;
bool fWillUseInputColor;
- bool fHasVertexCode;
+ bool fRequiresVertexShader;
typedef SkRefCnt INHERITED;
};
« no previous file with comments | « no previous file | src/gpu/GrGpu.h » ('j') | src/gpu/gl/builders/GrGLProgramBuilder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698