• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 /*
3  * Copyright 2006 The Android Open Source Project
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 
10 #ifndef SkTypedArray_DEFINED
11 #define SkTypedArray_DEFINED
12 
13 #include "SkScript.h"
14 #include "SkTDArray_Experimental.h"
15 
16 class SkTypedArray : public SkTDOperandArray {
17 public:
18     SkTypedArray();
19     SkTypedArray(SkDisplayTypes type);
20     bool getIndex(int index, SkOperand* operand);
getType()21     SkDisplayTypes getType() { return fType; }
getOpType()22     SkScriptEngine::SkOpType getOpType() { return SkScriptEngine::ToOpType(fType); }
setType(SkDisplayTypes type)23     void setType(SkDisplayTypes type) {
24     //  SkASSERT(count() == 0);
25         fType = type;
26     }
27 protected:
28     SkDisplayTypes fType;
29 };
30 
31 #endif // SkTypedArray_DEFINED
32