| Index: src/gpu/GrTessellatingPathRenderer.h
|
| diff --git a/src/gpu/GrSoftwarePathRenderer.h b/src/gpu/GrTessellatingPathRenderer.h
|
| similarity index 60%
|
| copy from src/gpu/GrSoftwarePathRenderer.h
|
| copy to src/gpu/GrTessellatingPathRenderer.h
|
| index ed897cceaf830d762d2ff8e40ce7b41f5bbbb084..f936f638f8fd4aeb8d09e06f6c45a5717a2234fc 100644
|
| --- a/src/gpu/GrSoftwarePathRenderer.h
|
| +++ b/src/gpu/GrTessellatingPathRenderer.h
|
| @@ -1,35 +1,34 @@
|
| -
|
| /*
|
| - * Copyright 2012 Google Inc.
|
| + * Copyright 2015 Google Inc.
|
| *
|
| * Use of this source code is governed by a BSD-style license that can be
|
| * found in the LICENSE file.
|
| */
|
|
|
| -#ifndef GrSoftwarePathRenderer_DEFINED
|
| -#define GrSoftwarePathRenderer_DEFINED
|
| +#ifndef GrTessellatingPathRenderer_DEFINED
|
| +#define GrTessellatingPathRenderer_DEFINED
|
|
|
| #include "GrPathRenderer.h"
|
| -
|
| -class GrContext;
|
| +#include "SkTemplates.h"
|
|
|
| /**
|
| - * This class uses the software side to render a path to an SkBitmap and
|
| - * then uploads the result to the gpu
|
| + * Subclass that renders the path by converting to screen-space trapezoids plus
|
| + * extra 1-pixel geometry for AA.
|
| */
|
| -class GrSoftwarePathRenderer : public GrPathRenderer {
|
| +class SK_API GrTessellatingPathRenderer : public GrPathRenderer {
|
| public:
|
| - GrSoftwarePathRenderer(GrContext* context)
|
| - : fContext(context) {
|
| - }
|
| + GrTessellatingPathRenderer();
|
|
|
| - virtual bool canDrawPath(const GrDrawTarget*,
|
| + virtual bool canDrawPath(const GrDrawTarget* target,
|
| const GrPipelineBuilder*,
|
| const SkMatrix& viewMatrix,
|
| - const SkPath&,
|
| - const SkStrokeRec&,
|
| - bool antiAlias) const SK_OVERRIDE;
|
| -protected:
|
| + const SkPath& path,
|
| + const SkStrokeRec& rec,
|
| + bool antiAlias) const;
|
| +
|
| + static bool gWireframe;
|
| +private:
|
| +
|
| virtual StencilSupport onGetStencilSupport(const GrDrawTarget*,
|
| const GrPipelineBuilder*,
|
| const SkPath&,
|
| @@ -43,9 +42,6 @@ protected:
|
| const SkStrokeRec&,
|
| bool antiAlias) SK_OVERRIDE;
|
|
|
| -private:
|
| - GrContext* fContext;
|
| -
|
| typedef GrPathRenderer INHERITED;
|
| };
|
|
|
|
|