diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-30 19:55:49 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-09-30 19:55:49 +0000 |
commit | 234d4fba75aac009e34c088037fcd9e244798c40 (patch) | |
tree | b2a103963d3e85c3aed67947bf10827b48744483 /src/gpu/GrAAConvexPathRenderer.cpp | |
parent | 3400f4b00aaf9159713d9a7bb0a4f828fd6899c3 (diff) |
Mark when effects and programs have vertex code
Adds a 'hasVertexCode' method to GrEffect and a 'fHasVertexCode' field
to GrGLProgramDesc::KeyHeader. Also adds a GrVertexEffect class that
effects have to inherit from in order to set the 'hasVertexCode' flag
and be able to emit vertex code, and updates the existing effects to
use it as needed.
R=bsalomon@google.com
Author: cdalton@nvidia.com
Review URL: https://codereview.chromium.org/23653059
git-svn-id: http://skia.googlecode.com/svn/trunk@11537 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrAAConvexPathRenderer.cpp')
-rw-r--r-- | src/gpu/GrAAConvexPathRenderer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/GrAAConvexPathRenderer.cpp b/src/gpu/GrAAConvexPathRenderer.cpp index 6749b46539..7063440ba4 100644 --- a/src/gpu/GrAAConvexPathRenderer.cpp +++ b/src/gpu/GrAAConvexPathRenderer.cpp @@ -21,6 +21,8 @@ #include "gl/GrGLEffect.h" #include "gl/GrGLSL.h" +#include "effects/GrVertexEffect.h" + GrAAConvexPathRenderer::GrAAConvexPathRenderer() { } @@ -497,7 +499,7 @@ static void create_vertices(const SegmentArray& segments, * Requires shader derivative instruction support. */ -class QuadEdgeEffect : public GrEffect { +class QuadEdgeEffect : public GrVertexEffect { public: static GrEffectRef* Create() { @@ -586,7 +588,7 @@ private: GR_DECLARE_EFFECT_TEST; - typedef GrEffect INHERITED; + typedef GrVertexEffect INHERITED; }; GR_DEFINE_EFFECT_TEST(QuadEdgeEffect); |