gfx/skia/trunk/include/animator/SkAnimatorView.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/include/animator/SkAnimatorView.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,39 @@
     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 SkAnimatorView_DEFINED
    1.14 +#define SkAnimatorView_DEFINED
    1.15 +
    1.16 +#include "SkView.h"
    1.17 +#include "SkAnimator.h"
    1.18 +
    1.19 +class SkAnimatorView : public SkView {
    1.20 +public:
    1.21 +            SkAnimatorView();
    1.22 +    virtual ~SkAnimatorView();
    1.23 +
    1.24 +    SkAnimator* getAnimator() const { return fAnimator; }
    1.25 +
    1.26 +    bool    decodeFile(const char path[]);
    1.27 +    bool    decodeMemory(const void* buffer, size_t size);
    1.28 +    bool    decodeStream(SkStream* stream);
    1.29 +
    1.30 +protected:
    1.31 +    // overrides
    1.32 +    virtual bool onEvent(const SkEvent&);
    1.33 +    virtual void onDraw(SkCanvas*);
    1.34 +    virtual void onInflate(const SkDOM&, const SkDOM::Node*);
    1.35 +
    1.36 +private:
    1.37 +    SkAnimator* fAnimator;
    1.38 +
    1.39 +    typedef SkView INHERITED;
    1.40 +};
    1.41 +
    1.42 +#endif

mercurial