blob: 5791be6959e73a503c1bde193794bc83b8099832 [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);
20 virtual bool canDrawPath(const GrPath& path,
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +000021 GrPathFill fill) const;
22
23 virtual bool requiresStencilPass(const GrDrawTarget* target,
reed@google.com07f3ee12011-05-16 17:21:57 +000024 const GrPath& path,
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +000025 GrPathFill fill) const { return false; }
bsalomon@google.comee435122011-07-01 14:57:55 +000026 virtual void drawPathToStencil();
senorblanco@chromium.org92e0f222011-05-12 15:49:15 +000027 virtual bool supportsAA(GrDrawTarget* target,
reed@google.com07f3ee12011-05-16 17:21:57 +000028 const GrPath& path,
senorblanco@chromium.org92e0f222011-05-12 15:49:15 +000029 GrPathFill fill);
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +000030};
31
32#endif