Chromium Code Reviews| Index: src/gpu/GrTessellatingPathRenderer.h |
| diff --git a/src/gpu/GrSoftwarePathRenderer.h b/src/gpu/GrTessellatingPathRenderer.h |
| similarity index 70% |
| copy from src/gpu/GrSoftwarePathRenderer.h |
| copy to src/gpu/GrTessellatingPathRenderer.h |
| index ed897cceaf830d762d2ff8e40ce7b41f5bbbb084..64f917f531171c97e4dd5f05df9245404181c655 100644 |
| --- a/src/gpu/GrSoftwarePathRenderer.h |
| +++ b/src/gpu/GrTessellatingPathRenderer.h |
| @@ -1,35 +1,32 @@ |
| - |
| /* |
| - * 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" |
|
reed1
2015/02/19 20:52:22
Why is this guy needed?
Stephen White
2015/02/20 21:58:41
Hysterical reasons. Removed.
|
| /** |
| - * 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*, |
|
reed1
2015/02/19 20:52:22
nit: Skia removes "virtual" when there is also SK_
Stephen White
2015/02/20 21:58:41
Done.
|
| const GrPipelineBuilder*, |
| - const SkMatrix& viewMatrix, |
| + const SkMatrix&, |
| const SkPath&, |
| const SkStrokeRec&, |
| bool antiAlias) const SK_OVERRIDE; |
| protected: |
| + |
| virtual StencilSupport onGetStencilSupport(const GrDrawTarget*, |
| const GrPipelineBuilder*, |
| const SkPath&, |
| @@ -43,9 +40,6 @@ protected: |
| const SkStrokeRec&, |
| bool antiAlias) SK_OVERRIDE; |
| -private: |
| - GrContext* fContext; |
| - |
| typedef GrPathRenderer INHERITED; |
| }; |