gfx/skia/trunk/src/animator/SkDisplayMath.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/src/animator/SkDisplayMath.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +
     1.5 +/*
     1.6 + * Copyright 2006 The Android Open Source Project
     1.7 + *
     1.8 + * Use of this source code is governed by a BSD-style license that can be
     1.9 + * found in the LICENSE file.
    1.10 + */
    1.11 +
    1.12 +
    1.13 +#ifndef SkDisplayMath_DEFINED
    1.14 +#define SkDisplayMath_DEFINED
    1.15 +
    1.16 +#include "SkDisplayable.h"
    1.17 +#include "SkMemberInfo.h"
    1.18 +#include "SkRandom.h"
    1.19 +
    1.20 +class SkDisplayMath : public SkDisplayable {
    1.21 +    DECLARE_DISPLAY_MEMBER_INFO(Math);
    1.22 +    virtual void executeFunction(SkDisplayable* , int index,
    1.23 +        SkTDArray<SkScriptValue>& parameters, SkDisplayTypes type,
    1.24 +        SkScriptValue* );
    1.25 +    virtual const SkFunctionParamType* getFunctionsParameters();
    1.26 +    virtual bool getProperty(int index, SkScriptValue* value) const;
    1.27 +private:
    1.28 +    mutable SkRandom fRandom;
    1.29 +    static const SkScalar gConstants[];
    1.30 +    static const SkFunctionParamType fFunctionParameters[];
    1.31 +
    1.32 +};
    1.33 +
    1.34 +#endif // SkDisplayMath_DEFINED

mercurial