• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2015 Google Inc.
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #ifndef GrDashLinePathRenderer_DEFINED
9 #define GrDashLinePathRenderer_DEFINED
10 
11 #include "GrPathRenderer.h"
12 
13 class GrGpu;
14 
15 class GrDashLinePathRenderer : public GrPathRenderer {
16 private:
17     bool onCanDrawPath(const CanDrawPathArgs&) const override;
18 
onGetStencilSupport(const GrShape &)19     StencilSupport onGetStencilSupport(const GrShape&) const override {
20         return kNoSupport_StencilSupport;
21     }
22 
23     bool onDrawPath(const DrawPathArgs&) override;
24 
25     sk_sp<GrGpu> fGpu;
26     typedef GrPathRenderer INHERITED;
27 };
28 
29 
30 #endif
31