OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2014 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 #ifndef GrAAConcavePathRenderer_DEFINED |
| 9 #define GrAAConcavePathRenderer_DEFINED |
| 10 |
| 11 #include "GrPathRenderer.h" |
| 12 #include "SkTemplates.h" |
| 13 |
| 14 /** |
| 15 * Subclass that renders the path by converting to screen-space trapezoids plus |
| 16 * extra 1-pixel geometry for AA. |
| 17 */ |
| 18 class SK_API GrAAConcavePathRenderer : public GrPathRenderer { |
| 19 public: |
| 20 GrAAConcavePathRenderer(); |
| 21 |
| 22 private: |
| 23 |
| 24 bool onCanDrawPath(const CanDrawPathArgs& args) const override; |
| 25 |
| 26 StencilSupport onGetStencilSupport(const SkPath&, |
| 27 const GrStrokeInfo&) const override; |
| 28 |
| 29 bool onDrawPath(const DrawPathArgs& args) override; |
| 30 |
| 31 typedef GrPathRenderer INHERITED; |
| 32 }; |
| 33 |
| 34 #endif |
OLD | NEW |