diff options
author | 2012-04-27 15:52:53 +0000 | |
---|---|---|
committer | 2012-04-27 15:52:53 +0000 | |
commit | 8d033a1b125886c62906d975b5cc28a382064526 (patch) | |
tree | 54f0ac568bd0543e777045571f1239ae182a7c36 /include | |
parent | 5af56069010b33562d337a4f76543d898ca8d485 (diff) |
Remove GrPath typedef
Review URL: http://codereview.appspot.com/6128045/
git-svn-id: http://skia.googlecode.com/svn/trunk@3780 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrClip.h | 6 | ||||
-rw-r--r-- | include/gpu/GrClipIterator.h | 4 | ||||
-rw-r--r-- | include/gpu/GrContext.h | 6 | ||||
-rw-r--r-- | include/gpu/GrGlyph.h | 4 | ||||
-rw-r--r-- | include/gpu/GrPath.h | 20 | ||||
-rw-r--r-- | include/gpu/SkGr.h | 5 |
6 files changed, 12 insertions, 33 deletions
diff --git a/include/gpu/GrClip.h b/include/gpu/GrClip.h index c94755d2b0..6f1c5d47b2 100644 --- a/include/gpu/GrClip.h +++ b/include/gpu/GrClip.h @@ -13,9 +13,9 @@ #include "GrClipIterator.h" #include "GrRect.h" -#include "GrPath.h" #include "GrTemplates.h" +#include "SkPath.h" #include "SkTArray.h" class GrClip { @@ -45,7 +45,7 @@ public: GrClipType getElementType(int i) const { return fList[i].fType; } - const GrPath& getPath(int i) const { + const SkPath& getPath(int i) const { GrAssert(kPath_ClipType == fList[i].fType); return fList[i].fPath; } @@ -113,7 +113,7 @@ private: struct Element { GrClipType fType; GrRect fRect; - GrPath fPath; + SkPath fPath; GrPathFill fPathFill; SkRegion::Op fOp; bool fDoAA; diff --git a/include/gpu/GrClipIterator.h b/include/gpu/GrClipIterator.h index 4f98c5c770..5d3bd4587d 100644 --- a/include/gpu/GrClipIterator.h +++ b/include/gpu/GrClipIterator.h @@ -11,8 +11,8 @@ #ifndef GrClipIterator_DEFINED #define GrClipIterator_DEFINED -#include "GrPath.h" #include "GrRect.h" +#include "SkPath.h" #include "SkRegion.h" /** @@ -41,7 +41,7 @@ public: * Return the current path. It is an error to call this when isDone() is * true or when getType() is kRect_Type. */ - virtual const GrPath* getPath() = 0; + virtual const SkPath* getPath() = 0; /** * Return the fill rule for the path. It is an error to call this when diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index d3723c7380..b26d2b3aee 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -411,7 +411,7 @@ public: * @param translate optional additional translation applied to the * path. */ - void drawPath(const GrPaint& paint, const GrPath& path, GrPathFill fill, + void drawPath(const GrPaint& paint, const SkPath& path, GrPathFill fill, const GrPoint* translate = NULL); /** @@ -728,12 +728,12 @@ private: GrDrawTarget* prepareToDraw(const GrPaint& paint, DrawCategory drawType); - GrPathRenderer* getPathRenderer(const GrPath& path, + GrPathRenderer* getPathRenderer(const SkPath& path, GrPathFill fill, const GrDrawTarget* target, bool antiAlias); - void internalDrawPath(const GrPaint& paint, const GrPath& path, + void internalDrawPath(const GrPaint& paint, const SkPath& path, GrPathFill fill, const GrPoint* translate); /** diff --git a/include/gpu/GrGlyph.h b/include/gpu/GrGlyph.h index a0d81a1f35..f79de7cb33 100644 --- a/include/gpu/GrGlyph.h +++ b/include/gpu/GrGlyph.h @@ -11,8 +11,8 @@ #ifndef GrGlyph_DEFINED #define GrGlyph_DEFINED -#include "GrPath.h" #include "GrRect.h" +#include "SkPath.h" class GrAtlas; @@ -26,7 +26,7 @@ struct GrGlyph { typedef uint32_t PackedID; GrAtlas* fAtlas; - GrPath* fPath; + SkPath* fPath; PackedID fPackedID; GrIRect16 fBounds; GrIPoint16 fAtlasLocation; diff --git a/include/gpu/GrPath.h b/include/gpu/GrPath.h deleted file mode 100644 index 7da0d48082..0000000000 --- a/include/gpu/GrPath.h +++ /dev/null @@ -1,20 +0,0 @@ - -/* - * Copyright 2010 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - - - -#ifndef GrPath_DEFINED -#define GrPath_DEFINED - -#include "GrTypes.h" -#include "SkPath.h" - -typedef SkPath GrPath; - -#endif - diff --git a/include/gpu/SkGr.h b/include/gpu/SkGr.h index 5ad90f4c7b..74dc2cfce4 100644 --- a/include/gpu/SkGr.h +++ b/include/gpu/SkGr.h @@ -18,7 +18,6 @@ #include "GrContext.h" #include "GrFontScaler.h" #include "GrClipIterator.h" -#include "GrPath.h" // skia headers #include "SkBitmap.h" @@ -120,7 +119,7 @@ public: } } - virtual const GrPath* getPath() SK_OVERRIDE { + virtual const SkPath* getPath() SK_OVERRIDE { return fCurr->fPath; } @@ -147,7 +146,7 @@ public: virtual bool getPackedGlyphBounds(GrGlyph::PackedID, GrIRect* bounds); virtual bool getPackedGlyphImage(GrGlyph::PackedID, int width, int height, int rowBytes, void* image); - virtual bool getGlyphPath(uint16_t glyphID, GrPath*); + virtual bool getGlyphPath(uint16_t glyphID, SkPath*); private: SkGlyphCache* fStrike; |