blob: 859a53d467237756b7f5ef8210a8ff9f85e185e3 [file] [log] [blame]
robertphillips@google.comf4c2c522012-04-27 12:08:47 +00001
2/*
3 * Copyright 2012 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.
7 */
8
9#ifndef GrSoftwarePathRenderer_DEFINED
10#define GrSoftwarePathRenderer_DEFINED
11
12#include "GrPathRenderer.h"
13
14class GrSoftwarePathRenderer : public GrPathRenderer {
15public:
16 GrSoftwarePathRenderer(GrContext* context)
17 : fContext(context) {
18 }
19
20 virtual bool canDrawPath(const SkPath& path,
21 GrPathFill fill,
22 const GrDrawTarget* target,
23 bool antiAlias) const SK_OVERRIDE;
24protected:
25 virtual bool onDrawPath(const SkPath& path,
26 GrPathFill fill,
27 const GrVec* translate,
28 GrDrawTarget* target,
29 GrDrawState::StageMask stageMask,
30 bool antiAlias) SK_OVERRIDE;
31
32private:
33 GrContext* fContext;
34
35 typedef GrPathRenderer INHERITED;
36};
37
38#endif