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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/src/animator/SkDisplayPost.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,59 @@
     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 SkDisplayPost_DEFINED
    1.14 +#define SkDisplayPost_DEFINED
    1.15 +
    1.16 +#include "SkDisplayable.h"
    1.17 +#include "SkEvent.h"
    1.18 +#include "SkEventSink.h"
    1.19 +#include "SkMemberInfo.h"
    1.20 +#include "SkIntArray.h"
    1.21 +
    1.22 +class SkDataInput;
    1.23 +class SkAnimateMaker;
    1.24 +
    1.25 +class SkPost : public SkDisplayable {
    1.26 +    DECLARE_MEMBER_INFO(Post);
    1.27 +    enum Mode {
    1.28 +        kDeferred,
    1.29 +        kImmediate
    1.30 +    };
    1.31 +    SkPost();
    1.32 +    virtual ~SkPost();
    1.33 +    virtual bool addChild(SkAnimateMaker& , SkDisplayable* child) SK_OVERRIDE;
    1.34 +    virtual bool childrenNeedDisposing() const;
    1.35 +    virtual void dirty();
    1.36 +#ifdef SK_DUMP_ENABLED
    1.37 +    virtual void dump(SkAnimateMaker* );
    1.38 +#endif
    1.39 +    virtual bool enable(SkAnimateMaker& );
    1.40 +    virtual bool hasEnable() const;
    1.41 +    virtual void onEndElement(SkAnimateMaker& );
    1.42 +    virtual void setChildHasID();
    1.43 +    virtual bool setProperty(int index, SkScriptValue& );
    1.44 +protected:
    1.45 +    SkMSec delay;
    1.46 +    SkString sink;
    1.47 +//  SkBool initialized;
    1.48 +    Mode mode;
    1.49 +    SkEvent fEvent;
    1.50 +    SkAnimateMaker* fMaker;
    1.51 +    SkTDDataArray fParts;
    1.52 +    SkEventSinkID fSinkID;
    1.53 +    SkAnimateMaker* fTargetMaker;
    1.54 +    SkBool8 fChildHasID;
    1.55 +    SkBool8 fDirty;
    1.56 +private:
    1.57 +    void findSinkID();
    1.58 +    friend class SkDataInput;
    1.59 +    typedef SkDisplayable INHERITED;
    1.60 +};
    1.61 +
    1.62 +#endif //SkDisplayPost_DEFINED

mercurial