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

Unified Diff: src/gpu/effects/GrBezierEffect.h

Issue 761563002: First step to moving vertex attributes to the geometryProcessor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: adding test to ignore 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/GrProgramDesc.h ('k') | src/gpu/effects/GrBezierEffect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/effects/GrBezierEffect.h
diff --git a/src/gpu/effects/GrBezierEffect.h b/src/gpu/effects/GrBezierEffect.h
index 9b71f7d395261543fea31487f1f9f2ddafe65227..27f2fa1aa24ce3d01bce3e77b4a6bce8fdca8cb7 100644
--- a/src/gpu/effects/GrBezierEffect.h
+++ b/src/gpu/effects/GrBezierEffect.h
@@ -88,7 +88,8 @@ public:
static const char* Name() { return "Conic"; }
- inline const GrShaderVar& inConicCoeffs() const { return fInConicCoeffs; }
+ inline const GrAttribute* inPosition() const { return fInPosition; }
+ inline const GrAttribute* inConicCoeffs() const { return fInConicCoeffs; }
inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType); }
inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); }
inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; }
@@ -107,7 +108,8 @@ private:
}
GrPrimitiveEdgeType fEdgeType;
- const GrShaderVar& fInConicCoeffs;
+ const GrAttribute* fInPosition;
+ const GrAttribute* fInConicCoeffs;
GR_DECLARE_GEOMETRY_PROCESSOR_TEST;
@@ -157,7 +159,8 @@ public:
static const char* Name() { return "Quad"; }
- inline const GrShaderVar& inHairQuadEdge() const { return fInHairQuadEdge; }
+ inline const GrAttribute* inPosition() const { return fInPosition; }
+ inline const GrAttribute* inHairQuadEdge() const { return fInHairQuadEdge; }
inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType); }
inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); }
inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; }
@@ -176,7 +179,8 @@ private:
}
GrPrimitiveEdgeType fEdgeType;
- const GrShaderVar& fInHairQuadEdge;
+ const GrAttribute* fInPosition;
+ const GrAttribute* fInHairQuadEdge;
GR_DECLARE_GEOMETRY_PROCESSOR_TEST;
@@ -228,7 +232,8 @@ public:
static const char* Name() { return "Cubic"; }
- inline const GrShaderVar& inCubicCoeffs() const { return fInCubicCoeffs; }
+ inline const GrAttribute* inPosition() const { return fInPosition; }
+ inline const GrAttribute* inCubicCoeffs() const { return fInCubicCoeffs; }
inline bool isAntiAliased() const { return GrProcessorEdgeTypeIsAA(fEdgeType); }
inline bool isFilled() const { return GrProcessorEdgeTypeIsFill(fEdgeType); }
inline GrPrimitiveEdgeType getEdgeType() const { return fEdgeType; }
@@ -247,7 +252,8 @@ private:
}
GrPrimitiveEdgeType fEdgeType;
- const GrShaderVar& fInCubicCoeffs;
+ const GrAttribute* fInPosition;
+ const GrAttribute* fInCubicCoeffs;
GR_DECLARE_GEOMETRY_PROCESSOR_TEST;
« no previous file with comments | « src/gpu/GrProgramDesc.h ('k') | src/gpu/effects/GrBezierEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698