From ff6ea2663f76aa85ec55ddd0f00ca7906f1bc4e3 Mon Sep 17 00:00:00 2001 From: "commit-bot@chromium.org" Date: Tue, 12 Mar 2013 12:26:08 +0000 Subject: Add GrEllipseEdgeEffect. Adds the effect that replaces the old oval rendering code. Also hooks in code to set attribute names and indices for effects. Author: jvanverth@google.com Review URL: https://chromiumcodereview.appspot.com/12462008 git-svn-id: http://skia.googlecode.com/svn/trunk@8092 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/GrEffect.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gpu/GrEffect.cpp') diff --git a/src/gpu/GrEffect.cpp b/src/gpu/GrEffect.cpp index 6e743e7f95..2aad7cf00e 100644 --- a/src/gpu/GrEffect.cpp +++ b/src/gpu/GrEffect.cpp @@ -90,6 +90,11 @@ void GrEffect::addTextureAccess(const GrTextureAccess* access) { fTextureAccesses.push_back(access); } +void GrEffect::addVertexAttrib(GrSLType type) { + GrAssert(fVertexAttribTypes.count() < kMaxVertexAttribs); + fVertexAttribTypes.push_back(type); +} + void* GrEffect::operator new(size_t size) { return GrEffect_Globals::GetTLS()->allocate(size); } -- cgit v1.2.3