blob: 05f60fb48f4e5af93f270c10e52f414943a8dfe5 [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*,
20 const SkPath&,
21 const SkStrokeRec&,
bsalomon@google.comc2099d22012-03-02 21:26:50 +000022 bool antiAlias) const SK_OVERRIDE;
robertphillips@google.comfa662942012-05-17 12:20:22 +000023
bsalomon@google.comc2099d22012-03-02 21:26:50 +000024protected:
joshualitt9853cce2014-11-17 14:22:48 -080025 virtual bool onDrawPath(GrDrawTarget*,
26 GrDrawState*,
joshualitt2e3b3e32014-12-09 13:31:14 -080027 GrColor,
joshualitt9853cce2014-11-17 14:22:48 -080028 const SkPath&,
29 const SkStrokeRec&,
bsalomon@google.comc2099d22012-03-02 21:26:50 +000030 bool antiAlias) SK_OVERRIDE;
bsalomon@google.com69cc6ad2012-01-17 14:25:10 +000031};
george9eb182a2014-06-20 12:01:06 -070032
33#endif