aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDefaultGeoProcFactory.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2014-12-29 15:10:07 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-29 15:10:07 -0800
commit8059eb9f6e24ed609393fbda4ad71edea03ac258 (patch)
treec9a8e1881739206f49a5319bf1077a5900b42db1 /src/gpu/GrDefaultGeoProcFactory.h
parent4f662e62cd44e302ef689fabdb2c0ae8d9471b02 (diff)
Move ViewMatrix off of drawstate
Diffstat (limited to 'src/gpu/GrDefaultGeoProcFactory.h')
-rw-r--r--src/gpu/GrDefaultGeoProcFactory.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/gpu/GrDefaultGeoProcFactory.h b/src/gpu/GrDefaultGeoProcFactory.h
index b7db74d845..91c6f5dda7 100644
--- a/src/gpu/GrDefaultGeoProcFactory.h
+++ b/src/gpu/GrDefaultGeoProcFactory.h
@@ -80,17 +80,13 @@ public:
*
* You must unref the return from Create.
*/
- static const GrGeometryProcessor* Create(GrColor,
- uint32_t gpTypeFlags = 0,
+ // TODO clean this up
+ static const GrGeometryProcessor* Create(uint32_t gpTypeFlags,
+ GrColor,
+ const SkMatrix& viewMatrix = SkMatrix::I(),
+ const SkMatrix& localMatrix = SkMatrix::I(),
bool opaqueVertexColors = false,
- uint8_t coverage = 0xff,
- const SkMatrix& localMatrix = SkMatrix::I());
-
- static const GrGeometryProcessor* Create(GrColor color,
- uint32_t gpTypeFlags,
- const SkMatrix& localMatrix) {
- return Create(color, gpTypeFlags, false, 0xff, localMatrix);
- }
+ uint8_t coverage = 0xff);
static size_t DefaultVertexStride() { return sizeof(PositionAttr); }
};