blob: bb40e19c21842c638ce3dd8af3a3196c61fd6cca [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*,
27 const SkPath&,
28 const SkStrokeRec&,
bsalomon@google.comc2099d22012-03-02 21:26:50 +000029 bool antiAlias) SK_OVERRIDE;
bsalomon@google.com69cc6ad2012-01-17 14:25:10 +000030};
george9eb182a2014-06-20 12:01:06 -070031
32#endif