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

Unified Diff: gm/beziereffects.cpp

Issue 502533004: Revert of 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') | no next file with comments »
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 e0a1d8726e9001cf09b667840ff882185fbd4291..2045e38ec4c57c56a562bc869eddf30dafaf270c 100644
--- a/gm/beziereffects.cpp
+++ b/gm/beziereffects.cpp
@@ -168,7 +168,7 @@
context->getTestTarget(&tt);
SkASSERT(NULL != tt.target());
GrDrawState* drawState = tt.target()->drawState();
- drawState->setVertexAttribs<kAttribs>(2, sizeof(Vertex));
+ drawState->setVertexAttribs<kAttribs>(2);
drawState->addCoverageEffect(effect, 1);
drawState->setRenderTarget(rt);
@@ -323,7 +323,7 @@
context->getTestTarget(&tt);
SkASSERT(NULL != tt.target());
GrDrawState* drawState = tt.target()->drawState();
- drawState->setVertexAttribs<kAttribs>(2, sizeof(Vertex));
+ drawState->setVertexAttribs<kAttribs>(2);
drawState->addCoverageEffect(effect, 1);
drawState->setRenderTarget(rt);
@@ -507,7 +507,7 @@
context->getTestTarget(&tt);
SkASSERT(NULL != tt.target());
GrDrawState* drawState = tt.target()->drawState();
- drawState->setVertexAttribs<kAttribs>(2, sizeof(Vertex));
+ drawState->setVertexAttribs<kAttribs>(2);
drawState->addCoverageEffect(effect, 1);
drawState->setRenderTarget(rt);
« no previous file with comments | « no previous file | gm/convexpolyeffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698