3 * Copyright 2006 The Android Open Source Project
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
10 #ifndef SkDisplayMath_DEFINED
11 #define SkDisplayMath_DEFINED
13 #include "SkDisplayable.h"
14 #include "SkMemberInfo.h"
17 class SkDisplayMath : public SkDisplayable {
18 DECLARE_DISPLAY_MEMBER_INFO(Math);
19 virtual void executeFunction(SkDisplayable* , int index,
20 SkTDArray<SkScriptValue>& parameters, SkDisplayTypes type,
21 SkScriptValue* ) SK_OVERRIDE;
22 const SkFunctionParamType* getFunctionsParameters() SK_OVERRIDE;
23 bool getProperty(int index, SkScriptValue* value) const SK_OVERRIDE;
25 mutable SkRandom fRandom;
26 static const SkScalar gConstants[];
27 static const SkFunctionParamType fFunctionParameters[];
31 #endif // SkDisplayMath_DEFINED