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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/trunk/src/animator/SkDrawable.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,28 @@
     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 SkDrawable_DEFINED
    1.14 +#define SkDrawable_DEFINED
    1.15 +
    1.16 +#include "SkDisplayable.h"
    1.17 +#include "SkDisplayEvent.h"
    1.18 +#include "SkMath.h"
    1.19 +
    1.20 +struct SkEventState;
    1.21 +
    1.22 +class SkDrawable :  public SkDisplayable {
    1.23 +public:
    1.24 +    virtual bool doEvent(SkDisplayEvent::Kind , SkEventState* state );
    1.25 +    virtual bool draw(SkAnimateMaker& ) = 0;
    1.26 +    virtual void initialize();
    1.27 +    virtual bool isDrawable() const;
    1.28 +    virtual void setSteps(int steps);
    1.29 +};
    1.30 +
    1.31 +#endif // SkDrawable_DEFINED

mercurial