[graphite] Add Shape variant over path, rect, rrect, convex poly

This is basically GrShape except that I removed some of the API that
GrStyledShape used. I also changed the set of types that Shape can
represent to be better match what I imagine our final set will be in
graphite: {empty,point,line,rect,rrect,path,arc}
       -> {empty,rect,rrect,path,convex-polygon}

The convex polygon is used to store points and lines as well. I also
imagine that it will subsume the need for migrating GrQuad over.

I'm doing this on its own in preparation for moving the ClipStack over
and consolidating the draw handling in Device/DrawList, all of which
get a lot easier if there is a single type that stores the geometry.

For the first milestone, actual rendering will still likely use
Shape::asPath() for the path renderer, but it's not a lot of extra work
to preserve the logical type at the high level, so may as well do that.

There are a few functions internal to Shape that still need to be
implemented (converting a path to a list of vertices, and doing point
containment), but those can come in a later CL.

Bug: skia:12466
Change-Id: I1040c54e3b8004f3bc1767d72ded60b572b39596
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/456257
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/gn/graphite.gni b/gn/graphite.gni
index f02fd2e..ac48dc6 100644
--- a/gn/graphite.gni
+++ b/gn/graphite.gni
@@ -17,7 +17,6 @@
   "$_include/SkStuff.h",
   "$_include/TextureInfo.h",
   "$_include/private/GraphiteTypesPriv.h",
-  "$_src/BoundsManager.h",
   "$_src/Caps.cpp",
   "$_src/Caps.h",
   "$_src/CommandBuffer.cpp",
@@ -55,6 +54,9 @@
   "$_src/TaskGraph.h",
   "$_src/Texture.cpp",
   "$_src/Texture.h",
+  "$_src/geom/BoundsManager.h",
+  "$_src/geom/Shape.cpp",
+  "$_src/geom/Shape.h",
 ]
 
 skia_graphite_mtl_sources = [