michael@0: michael@0: /* michael@0: * Copyright 2006 The Android Open Source Project michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: michael@0: #ifndef SkDisplayMath_DEFINED michael@0: #define SkDisplayMath_DEFINED michael@0: michael@0: #include "SkDisplayable.h" michael@0: #include "SkMemberInfo.h" michael@0: #include "SkRandom.h" michael@0: michael@0: class SkDisplayMath : public SkDisplayable { michael@0: DECLARE_DISPLAY_MEMBER_INFO(Math); michael@0: virtual void executeFunction(SkDisplayable* , int index, michael@0: SkTDArray& parameters, SkDisplayTypes type, michael@0: SkScriptValue* ); michael@0: virtual const SkFunctionParamType* getFunctionsParameters(); michael@0: virtual bool getProperty(int index, SkScriptValue* value) const; michael@0: private: michael@0: mutable SkRandom fRandom; michael@0: static const SkScalar gConstants[]; michael@0: static const SkFunctionParamType fFunctionParameters[]; michael@0: michael@0: }; michael@0: michael@0: #endif // SkDisplayMath_DEFINED