blob: 4dd858509e12767eb1cecb83e738d0ec5769f19d [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
robertphillips@google.come79f3202014-02-11 16:30:21 +000018 virtual bool canDrawPath(const SkPath& path,
19 const SkStrokeRec& stroke,
bsalomon@google.comc2099d22012-03-02 21:26:50 +000020 const GrDrawTarget* target,
21 bool antiAlias) const SK_OVERRIDE;
robertphillips@google.comfa662942012-05-17 12:20:22 +000022
bsalomon@google.comc2099d22012-03-02 21:26:50 +000023protected:
robertphillips@google.come79f3202014-02-11 16:30:21 +000024 virtual bool onDrawPath(const SkPath& path,
25 const SkStrokeRec& stroke,
bsalomon@google.comc2099d22012-03-02 21:26:50 +000026 GrDrawTarget* target,
bsalomon@google.comc2099d22012-03-02 21:26:50 +000027 bool antiAlias) SK_OVERRIDE;
bsalomon@google.com69cc6ad2012-01-17 14:25:10 +000028};
george9eb182a2014-06-20 12:01:06 -070029
30#endif