blob: dcd3905034584837b1425f833fd3e98bfcf21d4c (
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
32
33
34
|
/*
* 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 SkExtras_DEFINED
#define SkExtras_DEFINED
#include "SkScript.h"
class SkExtras {
public:
SkExtras();
virtual ~SkExtras() {}
virtual SkDisplayable* createInstance(SkDisplayTypes type) = 0;
virtual bool definesType(SkDisplayTypes type) = 0;
#if SK_USE_CONDENSED_INFO == 0
virtual const SkMemberInfo* getMembers(SkDisplayTypes type, int* infoCountPtr) = 0;
#endif
#ifdef SK_DEBUG
virtual const char* getName(SkDisplayTypes type) = 0;
#endif
virtual SkDisplayTypes getType(const char match[], size_t len ) = 0;
SkScriptEngine::_propertyCallBack fExtraCallBack;
void* fExtraStorage;
};
#endif // SkExtras_DEFINED
|