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

Unified Diff: gm/beziereffects.cpp

Issue 511593004: Make setVertexAttribs in GrDrawState take a stride parameter. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | gm/convexpolyeffect.cpp » ('j') | src/gpu/GrAAHairLinePathRenderer.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/beziereffects.cpp
diff --git a/gm/beziereffects.cpp b/gm/beziereffects.cpp
index 2045e38ec4c57c56a562bc869eddf30dafaf270c..e0a1d8726e9001cf09b667840ff882185fbd4291 100644
--- a/gm/beziereffects.cpp
+++ b/gm/beziereffects.cpp
@@ -168,7 +168,7 @@ protected:
context->getTestTarget(&tt);
SkASSERT(NULL != tt.target());
GrDrawState* drawState = tt.target()->drawState();
- drawState->setVertexAttribs<kAttribs>(2);
+ drawState->setVertexAttribs<kAttribs>(2, sizeof(Vertex));
drawState->addCoverageEffect(effect, 1);
drawState->setRenderTarget(rt);
@@ -323,7 +323,7 @@ protected:
context->getTestTarget(&tt);
SkASSERT(NULL != tt.target());
GrDrawState* drawState = tt.target()->drawState();
- drawState->setVertexAttribs<kAttribs>(2);
+ drawState->setVertexAttribs<kAttribs>(2, sizeof(Vertex));
drawState->addCoverageEffect(effect, 1);
drawState->setRenderTarget(rt);
@@ -507,7 +507,7 @@ protected:
context->getTestTarget(&tt);
SkASSERT(NULL != tt.target());
GrDrawState* drawState = tt.target()->drawState();
- drawState->setVertexAttribs<kAttribs>(2);
+ drawState->setVertexAttribs<kAttribs>(2, sizeof(Vertex));
drawState->addCoverageEffect(effect, 1);
drawState->setRenderTarget(rt);
« no previous file with comments | « no previous file | gm/convexpolyeffect.cpp » ('j') | src/gpu/GrAAHairLinePathRenderer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698