blob: e37e66bdf8c53b0c26bab762352b2c0bb2ec192e [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
26 virtual void drawPath(GrDrawTarget* target,
27 GrDrawTarget::StageBitfield stages,
reed@google.com07f3ee12011-05-16 17:21:57 +000028 const GrPath& path,
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +000029 GrPathFill fill,
30 const GrPoint* translate);
31 virtual bool canDrawPath(const GrDrawTarget* target,
reed@google.com07f3ee12011-05-16 17:21:57 +000032 const GrPath& path,
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +000033 GrPathFill fill) const;
34
35 virtual bool requiresStencilPass(const GrDrawTarget* target,
reed@google.com07f3ee12011-05-16 17:21:57 +000036 const GrPath& path,
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +000037 GrPathFill fill) const { return false; }
38 virtual void drawPathToStencil(GrDrawTarget* target,
reed@google.com07f3ee12011-05-16 17:21:57 +000039 const GrPath& path,
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +000040 GrPathFill fill,
41 const GrPoint* translate);
senorblanco@chromium.org92e0f222011-05-12 15:49:15 +000042 virtual bool supportsAA(GrDrawTarget* target,
reed@google.com07f3ee12011-05-16 17:21:57 +000043 const GrPath& path,
senorblanco@chromium.org92e0f222011-05-12 15:49:15 +000044 GrPathFill fill);
senorblanco@chromium.org9d18b782011-03-28 20:47:09 +000045};
46
47#endif