ethannicholas | 6536ae5 | 2016-05-02 12:16:49 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2011 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 GrMSAAPathRenderer_DEFINED |
| 9 | #define GrMSAAPathRenderer_DEFINED |
| 10 | |
| 11 | #include "GrPathRenderer.h" |
| 12 | #include "SkTypes.h" |
| 13 | |
| 14 | class SK_API GrMSAAPathRenderer : public GrPathRenderer { |
| 15 | private: |
bsalomon | 8acedde | 2016-06-24 10:42:16 -0700 | [diff] [blame] | 16 | StencilSupport onGetStencilSupport(const GrShape&) const override; |
ethannicholas | 6536ae5 | 2016-05-02 12:16:49 -0700 | [diff] [blame] | 17 | |
| 18 | bool onCanDrawPath(const CanDrawPathArgs&) const override; |
| 19 | |
| 20 | bool onDrawPath(const DrawPathArgs&) override; |
| 21 | |
| 22 | void onStencilPath(const StencilPathArgs&) override; |
| 23 | |
Brian Osman | 1105224 | 2016-10-27 14:47:55 -0400 | [diff] [blame] | 24 | bool internalDrawPath(GrRenderTargetContext*, |
Brian Salomon | 82f4431 | 2017-01-11 13:42:54 -0500 | [diff] [blame] | 25 | GrPaint&&, |
Brian Salomon | 0e8fc8b | 2016-12-09 15:10:07 -0500 | [diff] [blame] | 26 | GrAAType, |
robertphillips | d2b6d64 | 2016-07-21 08:55:08 -0700 | [diff] [blame] | 27 | const GrUserStencilSettings&, |
cdalton | 862cff3 | 2016-05-12 15:09:48 -0700 | [diff] [blame] | 28 | const GrClip&, |
ethannicholas | 6536ae5 | 2016-05-02 12:16:49 -0700 | [diff] [blame] | 29 | const SkMatrix& viewMatrix, |
bsalomon | 8acedde | 2016-06-24 10:42:16 -0700 | [diff] [blame] | 30 | const GrShape&, |
ethannicholas | 6536ae5 | 2016-05-02 12:16:49 -0700 | [diff] [blame] | 31 | bool stencilOnly); |
| 32 | |
| 33 | typedef GrPathRenderer INHERITED; |
| 34 | }; |
| 35 | |
| 36 | #endif |