diff options
author | Ben Wagner <bungeman@google.com> | 2018-03-29 11:46:24 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-29 17:18:05 +0000 |
commit | 3746ac21df90e44ed1ed9ec2f1e4694fbcd1d840 (patch) | |
tree | de1fff31711fa4c41e849d0281c8a2c5b400db88 /src/gpu/GrPathRendering.h | |
parent | c3bc425bd4d630f4c6b69f38473fc69b77a1d5b9 (diff) |
Remove path ranges from gpu.
These appear to have been added to handle glyph paths with nvpr and no
longer appear to be used.
Change-Id: Id75e2e85ab837a5808e7641873d217c844cd827c
Reviewed-on: https://skia-review.googlesource.com/117103
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/gpu/GrPathRendering.h')
-rw-r--r-- | src/gpu/GrPathRendering.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/gpu/GrPathRendering.h b/src/gpu/GrPathRendering.h index e3d9731130..0a1abc1057 100644 --- a/src/gpu/GrPathRendering.h +++ b/src/gpu/GrPathRendering.h @@ -9,7 +9,6 @@ #define GrPathRendering_DEFINED #include "SkPath.h" -#include "GrPathRange.h" #include "GrPipeline.h" class GrGpu; @@ -36,8 +35,6 @@ class GrPathRendering { public: virtual ~GrPathRendering() { } - typedef GrPathRange::PathIndexType PathIndexType; - enum PathTransformType { kNone_PathTransformType, //!< [] kTranslateX_PathTransformType, //!< [kMTransX] @@ -90,16 +87,6 @@ public: */ virtual sk_sp<GrPath> createPath(const SkPath&, const GrStyle&) = 0; - /** - * Creates a range of gpu paths with a common style. - * - * @param PathGenerator class that generates SkPath objects for each path in the range. - * @param GrStyle the common style applied to each path in the range. Styles with non-dash - * path effects are not allowed. - * @return a new path range. - */ - virtual sk_sp<GrPathRange> createPathRange(GrPathRange::PathGenerator*, const GrStyle&) = 0; - /** None of these params are optional, pointers used just to avoid making copies. */ struct StencilPathArgs { StencilPathArgs(bool useHWAA, @@ -127,16 +114,6 @@ public: const GrStencilSettings& stencilPassSettings, // Cover pass settings in pipeline. const GrPath* path); - void drawPaths(const GrPipeline& pipeline, - const GrPrimitiveProcessor& primProc, - const GrStencilSettings& stencilPassSettings, // Cover pass settings in pipeline. - const GrPathRange* pathRange, - const void* indices, - PathIndexType indexType, - const float transformValues[], - PathTransformType transformType, - int count); - protected: GrPathRendering(GrGpu* gpu) : fGpu(gpu) { } @@ -145,15 +122,6 @@ protected: const GrPrimitiveProcessor&, const GrStencilSettings&, const GrPath*) = 0; - virtual void onDrawPaths(const GrPipeline&, - const GrPrimitiveProcessor&, - const GrStencilSettings&, - const GrPathRange*, - const void* indices, - PathIndexType, - const float transformValues[], - PathTransformType, - int count) = 0; GrGpu* fGpu; private: |