blob: d5bf15777b02270664096248a8527d8c2b3550b9 [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.comee435122011-07-01 14:57:55 +000019 virtual void drawPath(GrDrawTarget::StageBitfield stages);
bsalomon@google.comaeb21602011-08-30 18:13:44 +000020 virtual bool canDrawPath(const GrDrawTarget* target,
21 const GrPath& path,
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +000022 GrPathFill fill) const;
23
24 virtual bool requiresStencilPass(const GrDrawTarget* target,
reed@google.com07f3ee12011-05-16 17:21:57 +000025 const GrPath& path,
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +000026 GrPathFill fill) const { return false; }
bsalomon@google.comee435122011-07-01 14:57:55 +000027 virtual void drawPathToStencil();
bsalomon@google.com30085192011-08-19 15:42:31 +000028 virtual bool supportsAA(const GrDrawTarget* target,
reed@google.com07f3ee12011-05-16 17:21:57 +000029 const GrPath& path,
senorblanco@chromium.org92e0f222011-05-12 15:49:15 +000030 GrPathFill fill);
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +000031};
32
33#endif