blob: f21c73b688fa0f22adb710af7d43a8967164d0d8 [file] [log] [blame]
kkinnunen18996512015-04-26 23:18:49 -07001
2/*
3 * Copyright 2015 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 GrDashLinePathRenderer_DEFINED
10#define GrDashLinePathRenderer_DEFINED
11
12#include "GrPathRenderer.h"
13
14class GrDashLinePathRenderer : public GrPathRenderer {
bsalomon0aff2fa2015-07-31 06:48:27 -070015private:
16 bool onCanDrawPath(const CanDrawPathArgs&) const override;
kkinnunen18996512015-04-26 23:18:49 -070017
robertphillipse7d4b2f2015-08-13 07:57:10 -070018 StencilSupport onGetStencilSupport(const SkPath&, const GrStrokeInfo&) const override {
19 return kNoSupport_StencilSupport;
kkinnunen18996512015-04-26 23:18:49 -070020 }
21
bsalomon0aff2fa2015-07-31 06:48:27 -070022 bool onDrawPath(const DrawPathArgs&) override;
23
kkinnunen18996512015-04-26 23:18:49 -070024 SkAutoTUnref<GrGpu> fGpu;
25 typedef GrPathRenderer INHERITED;
26};
27
28
29#endif