Rev the GrContext interface. Context has draw* functions that take a new GrPaint object. Removed many of the lower-level GrGpu function call-throughs on context.
Remove unused/unsupported point size (we don't draw non-hairline points using GL points).
Change current* getter functions to get* for consistency.
Fix bounds when drawing inverse-filled paths.
git-svn-id: http://skia.googlecode.com/svn/trunk@718 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/include/GrTextContext.h b/gpu/include/GrTextContext.h
index 6b7446b..d813c09 100644
--- a/gpu/include/GrTextContext.h
+++ b/gpu/include/GrTextContext.h
@@ -27,7 +27,9 @@
class GrTextContext {
public:
- GrTextContext(GrContext*, const GrMatrix* extMatrix = NULL);
+ GrTextContext(GrContext*,
+ const GrPaint& paint,
+ const GrMatrix* extMatrix = NULL);
~GrTextContext();
void drawPackedGlyph(GrGlyph::PackedID, GrFixed left, GrFixed top,
@@ -36,6 +38,7 @@
void flush(); // optional; automatically called by destructor
private:
+ const GrPaint& fPaint;
GrContext* fContext;
GrDrawTarget* fDrawTarget;
@@ -53,7 +56,7 @@
};
GrGpuTextVertex* fVertices;
-
+
int32_t fMaxVertices;
GrTexture* fCurrTexture;
int fCurrVertex;