Index: include/gpu/GrDrawContext.h |
diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h |
index 4d59b8cd9deaa5787c82529f5e2255207b0ae4d1..7a2223f78f8030575c1fd7847dfa9b4ecc8b6484 100644 |
--- a/include/gpu/GrDrawContext.h |
+++ b/include/gpu/GrDrawContext.h |
@@ -33,6 +33,7 @@ class SkPath; |
struct SkPoint; |
struct SkRect; |
class SkRRect; |
+struct SkRSXform; |
class SkTextBlob; |
/* |
@@ -222,6 +223,26 @@ public: |
int indexCount); |
/** |
+ * Draws textured sprites from an atlas with a paint. |
+ * |
+ * @param paint describes how to color pixels. |
+ * @param viewMatrix transformation matrix |
+ * @param spriteCount number of sprites. |
+ * @param xform array of compressed transformation data, required. |
+ * @param texRect array of texture rectangles used to access the paint. |
+ * @param colors optional array of per-sprite colors, supercedes |
+ * the paint's color field. |
+ */ |
+ void drawAtlas(GrRenderTarget*, |
+ const GrClip&, |
+ const GrPaint& paint, |
+ const SkMatrix& viewMatrix, |
+ int spriteCount, |
+ const SkRSXform xform[], |
+ const SkRect texRect[], |
+ const SkColor colors[]); |
+ |
+ /** |
* Draws an oval. |
* |
* @param paint describes how to color pixels. |