aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/animator/SkTypedArray.h
blob: 222c8df66788b71d400b81fb4f36b59b6dc3f9b7 (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
27
28
29
30
31

/*
 * 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 SkTypedArray_DEFINED
#define SkTypedArray_DEFINED

#include "SkScript.h"
#include "SkTDArray_Experimental.h"

class SkTypedArray : public SkTDOperandArray {
public:
    SkTypedArray();
    SkTypedArray(SkDisplayTypes type);
    bool getIndex(int index, SkOperand* operand);
    SkDisplayTypes getType() { return fType; }
    SkScriptEngine::SkOpType getOpType() { return SkScriptEngine::ToOpType(fType); }
    void setType(SkDisplayTypes type) { 
    //  SkASSERT(count() == 0);
        fType = type;
    }
protected:
    SkDisplayTypes fType;
};

#endif // SkTypedArray_DEFINED