blob: b07781f2f30e86059273de3eba870583df9e984a [file] [log] [blame]
bsalomon@google.com69cc6ad2012-01-17 14:25:10 +00001
2/*
3 * Copyright 2012 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
george9eb182a2014-06-20 12:01:06 -07009#ifndef GrAAConvexPathRenderer_DEFINED
10#define GrAAConvexPathRenderer_DEFINED
bsalomon@google.com69cc6ad2012-01-17 14:25:10 +000011
george9eb182a2014-06-20 12:01:06 -070012#include "GrPathRenderer.h"
bsalomon@google.com69cc6ad2012-01-17 14:25:10 +000013
14class GrAAConvexPathRenderer : public GrPathRenderer {
15public:
16 GrAAConvexPathRenderer();
bsalomon@google.comc2099d22012-03-02 21:26:50 +000017
joshualitt9853cce2014-11-17 14:22:48 -080018 virtual bool canDrawPath(const GrDrawTarget*,
19 const GrDrawState*,
joshualitt8059eb92014-12-29 15:10:07 -080020 const SkMatrix& viewMatrix,
joshualitt9853cce2014-11-17 14:22:48 -080021 const SkPath&,
22 const SkStrokeRec&,
bsalomon@google.comc2099d22012-03-02 21:26:50 +000023 bool antiAlias) const SK_OVERRIDE;
robertphillips@google.comfa662942012-05-17 12:20:22 +000024
bsalomon@google.comc2099d22012-03-02 21:26:50 +000025protected:
joshualitt9853cce2014-11-17 14:22:48 -080026 virtual bool onDrawPath(GrDrawTarget*,
27 GrDrawState*,
joshualitt2e3b3e32014-12-09 13:31:14 -080028 GrColor,
joshualitt8059eb92014-12-29 15:10:07 -080029 const SkMatrix& viewMatrix,
joshualitt9853cce2014-11-17 14:22:48 -080030 const SkPath&,
31 const SkStrokeRec&,
bsalomon@google.comc2099d22012-03-02 21:26:50 +000032 bool antiAlias) SK_OVERRIDE;
bsalomon@google.com69cc6ad2012-01-17 14:25:10 +000033};
george9eb182a2014-06-20 12:01:06 -070034
35#endif