add gpu backend (not hooked up yet)
git-svn-id: http://skia.googlecode.com/svn/trunk@649 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/include/GrAPI.h b/gpu/include/GrAPI.h
new file mode 100644
index 0000000..b660e8d
--- /dev/null
+++ b/gpu/include/GrAPI.h
@@ -0,0 +1,37 @@
+
+
+class GrAPI {
+public:
+
+ void setRenderTarget(GrRenderTarget* target);
+
+ void setMatrix(const GrMatrix&);
+
+ void setClip(rect, bool aa);
+ void setClip(rect[], bool aa);
+ void setClip(path, bool aa);
+ void setClip(rect, texture/key, state, matrix);
+ void setClip(path, texture/key, state, matrix);
+
+ void setColor(color);
+ void setTexture(texture/key, sampler, const GrMatrix* = NULL);
+ void setBlend(src, dst);
+
+ void drawRect(const GrRect&, stroke, join);
+ void drawOval(const GrRect&, stroke);
+ void drawRoundRect(const GrRect&, GrScalar ovalW, GrScalar ovalH, stroke);
+ void drawPath(const GrPathIter&, GrPathFill);
+ void drawVertices(...);
+ void drawGlyphs(const uint16_t[], int count, const GrPoint[], GrFontScaler*);
+
+///
+
+ void save();
+ void restore();
+ void concatMatrix(const GrMatrix&);
+ void concatClipRect(const GrRect&);
+ void concatClipPath(const GrPathIter&, bool aa);
+
+};
+
+