blob: 3083fe8124d238ec619435b2ae317bfebc0624fc [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001/*
2 * Copyright 2006 The Android Open Source Project
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
reed@android.com8a1c16f2008-12-17 15:59:43 +00008#ifndef SkDrawDash_DEFINED
9#define SkDrawDash_DEFINED
10
reed@google.com8d4dc712014-04-18 15:14:25 +000011#include "SkPaintPart.h"
reed@android.com8a1c16f2008-12-17 15:59:43 +000012#include "SkIntArray.h"
13
14class SkDash : public SkDrawPathEffect {
15 DECLARE_MEMBER_INFO(Dash);
16 SkDash();
17 virtual ~SkDash();
mtklein36352bf2015-03-25 18:17:31 -070018 SkPathEffect* getPathEffect() override;
reed@android.com8a1c16f2008-12-17 15:59:43 +000019private:
20 SkTDScalarArray intervals;
21 SkScalar phase;
22};
23
24#endif // SkDrawDash_DEFINED