| Index: src/gpu/GrTessellatingPathRenderer.h
|
| diff --git a/src/gpu/GrTessellatingPathRenderer.h b/src/gpu/GrTessellatingPathRenderer.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3262c9a6e2ed336a60d4cc2047c0fb97d904efd2
|
| --- /dev/null
|
| +++ b/src/gpu/GrTessellatingPathRenderer.h
|
| @@ -0,0 +1,45 @@
|
| +/*
|
| + * 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 GrTessellatingPathRenderer_DEFINED
|
| +#define GrTessellatingPathRenderer_DEFINED
|
| +
|
| +#include "GrPathRenderer.h"
|
| +
|
| +/**
|
| + * Subclass that renders the path by converting to screen-space trapezoids plus
|
| + * extra 1-pixel geometry for AA.
|
| + */
|
| +class SK_API GrTessellatingPathRenderer : public GrPathRenderer {
|
| +public:
|
| + GrTessellatingPathRenderer();
|
| +
|
| + bool canDrawPath(const GrDrawTarget*,
|
| + const GrPipelineBuilder*,
|
| + const SkMatrix&,
|
| + const SkPath&,
|
| + const SkStrokeRec&,
|
| + bool antiAlias) const SK_OVERRIDE;
|
| +protected:
|
| +
|
| + StencilSupport onGetStencilSupport(const GrDrawTarget*,
|
| + const GrPipelineBuilder*,
|
| + const SkPath&,
|
| + const SkStrokeRec&) const SK_OVERRIDE;
|
| +
|
| + bool onDrawPath(GrDrawTarget*,
|
| + GrPipelineBuilder*,
|
| + GrColor,
|
| + const SkMatrix& viewMatrix,
|
| + const SkPath&,
|
| + const SkStrokeRec&,
|
| + bool antiAlias) SK_OVERRIDE;
|
| +
|
| + typedef GrPathRenderer INHERITED;
|
| +};
|
| +
|
| +#endif
|
|
|