diff options
author | 2014-10-31 13:56:50 -0700 | |
---|---|---|
committer | 2014-10-31 13:56:50 -0700 | |
commit | 92e496f96abbd664888f0c8a7d546ab02e703bf7 (patch) | |
tree | a9396fed2f759f748efe086fd76eee6f7bc6c762 /src/gpu/GrDrawTarget.h | |
parent | 2faa2284357d7cec51b26d8251c53bc91251b1fe (diff) |
Beginning to refactor nvpr code
BUG=skia:
Review URL: https://codereview.chromium.org/687563008
Diffstat (limited to 'src/gpu/GrDrawTarget.h')
-rw-r--r-- | src/gpu/GrDrawTarget.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h index 7d8a03ce71..4545f74d25 100644 --- a/src/gpu/GrDrawTarget.h +++ b/src/gpu/GrDrawTarget.h @@ -315,15 +315,16 @@ public: /** * Draws path into the stencil buffer. The fill must be either even/odd or * winding (not inverse or hairline). It will respect the HW antialias flag - * on the draw state (if possible in the 3D API). + * on the draw state (if possible in the 3D API). Note, we will never have an inverse fill + * with stencil path */ - void stencilPath(const GrPath*, SkPath::FillType fill); + void stencilPath(const GrPath*, GrPathRendering::FillType fill); /** * Draws a path. Fill must not be a hairline. It will respect the HW * antialias flag on the draw state (if possible in the 3D API). */ - void drawPath(const GrPath*, SkPath::FillType fill); + void drawPath(const GrPath*, GrPathRendering::FillType fill); /** * Draws many paths. It will respect the HW @@ -340,7 +341,7 @@ public: void drawPaths(const GrPathRange* pathRange, const uint32_t indices[], int count, const float transforms[], PathTransformType transformsType, - SkPath::FillType fill); + GrPathRendering::FillType fill); /** * Helper function for drawing rects. It performs a geometry src push and pop @@ -490,7 +491,7 @@ public: /** * For subclass internal use to invoke a call to onDrawPath(). */ - void executeDrawPath(const GrPath* path, SkPath::FillType fill, + void executeDrawPath(const GrPath* path, GrPathRendering::FillType fill, const GrDeviceCoordTexture* dstCopy) { this->onDrawPath(path, fill, dstCopy); } @@ -501,13 +502,11 @@ public: void executeDrawPaths(const GrPathRange* pathRange, const uint32_t indices[], int count, const float transforms[], PathTransformType transformsType, - SkPath::FillType fill, + GrPathRendering::FillType fill, const GrDeviceCoordTexture* dstCopy) { this->onDrawPaths(pathRange, indices, count, transforms, transformsType, fill, dstCopy); } - void getPathStencilSettingsForFillType(SkPath::FillType, GrStencilSettings*); - //////////////////////////////////////////////////////////////////////////// /** @@ -898,13 +897,13 @@ private: const SkRect* localRect, const SkMatrix* localMatrix); - virtual void onStencilPath(const GrPath*, SkPath::FillType) = 0; - virtual void onDrawPath(const GrPath*, SkPath::FillType, + virtual void onStencilPath(const GrPath*, GrPathRendering::FillType) = 0; + virtual void onDrawPath(const GrPath*, GrPathRendering::FillType, const GrDeviceCoordTexture* dstCopy) = 0; virtual void onDrawPaths(const GrPathRange*, const uint32_t indices[], int count, const float transforms[], PathTransformType, - SkPath::FillType, const GrDeviceCoordTexture*) = 0; + GrPathRendering::FillType, const GrDeviceCoordTexture*) = 0; virtual void didAddGpuTraceMarker() = 0; virtual void didRemoveGpuTraceMarker() = 0; |