blob: dac9a17c8f7e2cfcba7f1d437643fdb00252037d [file] [log] [blame]
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +00001/*
2 Copyright 2011 Google Inc.
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17#ifndef GrTesselatedPathRenderer_DEFINED
18#define GrTesselatedPathRenderer_DEFINED
19
20#include "GrPathRenderer.h"
21
22class GrTesselatedPathRenderer : public GrPathRenderer {
23public:
24 GrTesselatedPathRenderer();
25
bsalomon@google.comee435122011-07-01 14:57:55 +000026 virtual void drawPath(GrDrawTarget::StageBitfield stages);
27 virtual bool canDrawPath(const GrPath& path,
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +000028 GrPathFill fill) const;
29
30 virtual bool requiresStencilPass(const GrDrawTarget* target,
reed@google.com07f3ee12011-05-16 17:21:57 +000031 const GrPath& path,
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +000032 GrPathFill fill) const { return false; }
bsalomon@google.comee435122011-07-01 14:57:55 +000033 virtual void drawPathToStencil();
senorblanco@chromium.org92e0f222011-05-12 15:49:15 +000034 virtual bool supportsAA(GrDrawTarget* target,
reed@google.com07f3ee12011-05-16 17:21:57 +000035 const GrPath& path,
senorblanco@chromium.org92e0f222011-05-12 15:49:15 +000036 GrPathFill fill);
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +000037};
38
39#endif