diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-05-17 12:20:22 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-05-17 12:20:22 +0000 |
commit | fa66294c7705831808ce7772d4328fc626d45034 (patch) | |
tree | 809fc86e53ef8f0c2373fcd9e7edaf0d1ad4d166 /src/gpu/GrSoftwarePathRenderer.h | |
parent | 5acc0e36d987dff3172fd45a14b66c52a51d49e4 (diff) |
First functioning version of SW-only clip mask creator
http://codereview.appspot.com/6208072/
git-svn-id: http://skia.googlecode.com/svn/trunk@3984 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrSoftwarePathRenderer.h')
-rw-r--r-- | src/gpu/GrSoftwarePathRenderer.h | 13 |
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; |