aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDefaultGeoProcFactory.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2014-12-09 13:31:14 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-09 13:31:15 -0800
commit2e3b3e369d79e78f7635d4c20e83a47ab571bdf2 (patch)
tree95378f3e35a21192f0db62e60bc6e408803050b7 /src/gpu/GrDefaultGeoProcFactory.h
parentf3c78ccf5694d22d2e4a7061a80399a7e69b59db (diff)
This cl moves color and coverage off of drawstate. In an effort to keep this CL manageable, I have left the compute invariant input / output in a bit of a strange state(fixing this will be complicated).
In addition, NVPR makes this very complicated, and I haven't quite figured out a good way to handle it, so for now color and coverage DO live on optstate, but I will figure out some way to refactor that in future CLs. BUG=skia: Review URL: https://codereview.chromium.org/783763002
Diffstat (limited to 'src/gpu/GrDefaultGeoProcFactory.h')
-rw-r--r--src/gpu/GrDefaultGeoProcFactory.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/GrDefaultGeoProcFactory.h b/src/gpu/GrDefaultGeoProcFactory.h
index a39c76da19..53fb4b8dcc 100644
--- a/src/gpu/GrDefaultGeoProcFactory.h
+++ b/src/gpu/GrDefaultGeoProcFactory.h
@@ -80,7 +80,9 @@ public:
*
* You must unref the return from Create.
*/
- static const GrGeometryProcessor* Create(uint32_t gpTypeFlags = 0);
+ static const GrGeometryProcessor* Create(GrColor, uint32_t gpTypeFlags = 0,
+ uint8_t coverage = 0xff);
+ static size_t DefaultVertexStride() { return sizeof(PositionAttr); }
};
#endif