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

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

Issue 23471008: Add a requiresVertexShader method to GrGLEffect (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 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
Index: src/gpu/effects/GrBezierEffect.cpp
diff --git a/src/gpu/effects/GrBezierEffect.cpp b/src/gpu/effects/GrBezierEffect.cpp
index 0d57b107acdfb2b784f53385fd08bd6ec3da7d59..77dfd1ffa8f30ae150f8c4f6f188e3682d59b21a 100644
--- a/src/gpu/effects/GrBezierEffect.cpp
+++ b/src/gpu/effects/GrBezierEffect.cpp
@@ -15,6 +15,8 @@ class GrGLConicEffect : public GrGLEffect {
public:
GrGLConicEffect(const GrBackendEffectFactory&, const GrDrawEffect&);
+ virtual bool requiresVertexShader(const GrDrawEffect&) const { return true; }
+
virtual void emitCode(GrGLShaderBuilder* builder,
const GrDrawEffect& drawEffect,
EffectKey key,
@@ -158,6 +160,8 @@ class GrGLQuadEffect : public GrGLEffect {
public:
GrGLQuadEffect(const GrBackendEffectFactory&, const GrDrawEffect&);
+ virtual bool requiresVertexShader(const GrDrawEffect&) const { return true; }
+
virtual void emitCode(GrGLShaderBuilder* builder,
const GrDrawEffect& drawEffect,
EffectKey key,
@@ -290,6 +294,8 @@ class GrGLCubicEffect : public GrGLEffect {
public:
GrGLCubicEffect(const GrBackendEffectFactory&, const GrDrawEffect&);
+ virtual bool requiresVertexShader(const GrDrawEffect&) const { return true; }
+
virtual void emitCode(GrGLShaderBuilder* builder,
const GrDrawEffect& drawEffect,
EffectKey key,

Powered by Google App Engine
This is Rietveld 408576698