• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 /*
3  * 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.
7  */
8 
9 
10 #ifndef GrTesselatedPathRenderer_DEFINED
11 #define GrTesselatedPathRenderer_DEFINED
12 
13 #include "GrPathRenderer.h"
14 
15 class GrTesselatedPathRenderer : public GrPathRenderer {
16 public:
17     GrTesselatedPathRenderer();
18 
19     virtual bool canDrawPath(const SkPath& path,
20                              GrPathFill fill,
21                              const GrDrawTarget* target,
22                              bool antiAlias) const SK_OVERRIDE;
23 
24     virtual bool onDrawPath(const SkPath& path,
25                             GrPathFill fill,
26                             const GrVec* translate,
27                             GrDrawTarget* target,
28                             GrDrawState::StageMask stageMask,
29                             bool antiAlias) SK_OVERRIDE;
30 };
31 
32 #endif
33