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

Unified Diff: src/gpu/GrDefaultGeoProcFactory.h

Issue 815553003: Move ViewMatrix off of drawstate (Closed) Base URL: https://skia.googlesource.com/skia.git@remove-fragment-stage
Patch Set: more cleaning Created 6 years 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 | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDefaultGeoProcFactory.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDefaultGeoProcFactory.h
diff --git a/src/gpu/GrDefaultGeoProcFactory.h b/src/gpu/GrDefaultGeoProcFactory.h
index b7db74d845f375940e606e732635bda1f2e8ad27..91c6f5dda7dba3dab29c3cfa7612b68155639493 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); }
};
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDefaultGeoProcFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698