aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/animator/SkDrawDash.h
blob: 0000462ba7e27c3b92ca23f36fc4f26bb1ffbf0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

/*
 * Copyright 2006 The Android Open Source Project
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */


#ifndef SkDrawDash_DEFINED
#define SkDrawDash_DEFINED

#include "SkPaintParts.h"
#include "SkIntArray.h"

class SkDash : public SkDrawPathEffect {
    DECLARE_MEMBER_INFO(Dash);
    SkDash();
    virtual ~SkDash();
    virtual SkPathEffect* getPathEffect();
private:
    SkTDScalarArray intervals;
    SkScalar phase;
};

#endif // SkDrawDash_DEFINED