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

Unified Diff: src/gpu/effects/GrSimpleTextureEffect.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/GrSimpleTextureEffect.cpp
diff --git a/src/gpu/effects/GrSimpleTextureEffect.cpp b/src/gpu/effects/GrSimpleTextureEffect.cpp
index ccf761ab946c96e8d1e5ab3dbe5d7e804aaf5eca..6f1651f8b6ba7e35a12925ec9277dd66fd37b6c2 100644
--- a/src/gpu/effects/GrSimpleTextureEffect.cpp
+++ b/src/gpu/effects/GrSimpleTextureEffect.cpp
@@ -24,6 +24,11 @@ public:
}
}
+ virtual bool requiresVertexShader(const GrDrawEffect& drawEffect) const {
+ const GrSimpleTextureEffect& ste = drawEffect.castEffect<GrSimpleTextureEffect>();
bsalomon 2013/09/06 14:10:03 Maybe we should make defer this decision to the ef
Chris Dalton 2013/09/06 17:17:24 Actually, the way this code works is that when the
bsalomon 2013/09/06 17:37:17 oh, right, makes sense
+ return GrEffect::kCustom_CoordsType == ste.coordsType();
+ }
+
virtual void emitCode(GrGLShaderBuilder* builder,
const GrDrawEffect& drawEffect,
EffectKey key,

Powered by Google App Engine
This is Rietveld 408576698