diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-27 20:44:52 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-27 20:44:52 +0000 |
commit | 58b20215f6d88b7e1cacae0b76226fced5109293 (patch) | |
tree | 9c81a0a623af654c89e0a3410d6a7615712e1385 /src/gpu/GrSoftwarePathRenderer.h | |
parent | eca2dfb002888e4af590275a6da3f157ebb6473b (diff) |
Split GrSWMaskHelper into its own files
http://codereview.appspot.com/6350046/
git-svn-id: http://skia.googlecode.com/svn/trunk@4380 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrSoftwarePathRenderer.h')
-rw-r--r-- | src/gpu/GrSoftwarePathRenderer.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/gpu/GrSoftwarePathRenderer.h b/src/gpu/GrSoftwarePathRenderer.h index cb84506d27..a42090cbe7 100644 --- a/src/gpu/GrSoftwarePathRenderer.h +++ b/src/gpu/GrSoftwarePathRenderer.h @@ -11,53 +11,10 @@ #include "GrPathRenderer.h" -#include "SkDraw.h" -#include "SkRasterClip.h" - class GrContext; class GrAutoScratchTexture; /** - * The GrSWMaskHelper helps generate clip masks using the software rendering - * path. - */ -class GrSWMaskHelper : public GrNoncopyable { -public: - GrSWMaskHelper(GrContext* context) - : fContext(context) { - - } - - void draw(const GrRect& clientRect, SkRegion::Op op, - bool antiAlias, GrColor color); - - void draw(const SkPath& clientPath, SkRegion::Op op, - GrPathFill fill, bool antiAlias, GrColor color); - - bool init(const GrIRect& pathDevBounds, - const GrPoint* translate, - bool useMatrix); - - bool getTexture(GrAutoScratchTexture* tex); - - void toTexture(GrTexture* texture, bool clearToWhite); - - void clear(GrColor color) { - fBM.eraseColor(color); - } - -protected: -private: - GrContext* fContext; - GrMatrix fMatrix; - SkBitmap fBM; - SkDraw fDraw; - SkRasterClip fRasterClip; - - typedef GrPathRenderer INHERITED; -}; - -/** * This class uses the software side to render a path to an SkBitmap and * then uploads the result to the gpu */ |