blob: 3d12ae970c7f6209a3fa028acc28ac61556d3716 [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +00002/*
epoger@google.comec3ed6a2011-07-28 14:26:00 +00003 * Copyright 2011 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.
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +00007 */
8
epoger@google.comec3ed6a2011-07-28 14:26:00 +00009
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +000010#ifndef GrTesselatedPathRenderer_DEFINED
11#define GrTesselatedPathRenderer_DEFINED
12
13#include "GrPathRenderer.h"
14
15class GrTesselatedPathRenderer : public GrPathRenderer {
16public:
17 GrTesselatedPathRenderer();
18
bsalomon@google.comc2099d22012-03-02 21:26:50 +000019 virtual bool canDrawPath(const SkPath& path,
bsalomon@google.com289533a2011-10-27 12:34:25 +000020 GrPathFill fill,
bsalomon@google.comc2099d22012-03-02 21:26:50 +000021 const GrDrawTarget* target,
bsalomon@google.com289533a2011-10-27 12:34:25 +000022 bool antiAlias) const SK_OVERRIDE;
bsalomon@google.comc2099d22012-03-02 21:26:50 +000023
24 virtual bool onDrawPath(const SkPath& path,
25 GrPathFill fill,
26 const GrVec* translate,
27 GrDrawTarget* target,
28 GrDrawState::StageMask stageMask,
29 bool antiAlias) SK_OVERRIDE;
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +000030};
31
32#endif