aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSoftwarePathRenderer.h
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-17 12:20:22 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-05-17 12:20:22 +0000
commitfa66294c7705831808ce7772d4328fc626d45034 (patch)
tree809fc86e53ef8f0c2373fcd9e7edaf0d1ad4d166 /src/gpu/GrSoftwarePathRenderer.h
parent5acc0e36d987dff3172fd45a14b66c52a51d49e4 (diff)
First functioning version of SW-only clip mask creator
Diffstat (limited to 'src/gpu/GrSoftwarePathRenderer.h')
-rw-r--r--src/gpu/GrSoftwarePathRenderer.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/gpu/GrSoftwarePathRenderer.h b/src/gpu/GrSoftwarePathRenderer.h
index 4b75d036f3..74715f6812 100644
--- a/src/gpu/GrSoftwarePathRenderer.h
+++ b/src/gpu/GrSoftwarePathRenderer.h
@@ -28,17 +28,24 @@ public:
}
- void draw(const GrRect& clientRect, SkRegion::Op op, bool antiAlias);
+ void draw(const GrRect& clientRect, SkRegion::Op op,
+ bool antiAlias, GrColor color);
void draw(const SkPath& clientPath, SkRegion::Op op,
- GrPathFill fill, bool antiAlias);
+ GrPathFill fill, bool antiAlias, GrColor color);
- bool init(const GrIRect& pathDevBounds, const GrPoint* translate);
+ bool init(const GrIRect& pathDevBounds,
+ const GrPoint* translate,
+ bool useMatrix);
bool getTexture(GrAutoScratchTexture* tex);
void toTexture(GrTexture* texture);
+ void clear(GrColor color) {
+ fBM.eraseColor(color);
+ }
+
protected:
private:
GrContext* fContext;