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

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     2 /*
     3  * Copyright 2006 The Android Open Source Project
     4  *
     5  * Use of this source code is governed by a BSD-style license that can be
     6  * found in the LICENSE file.
     7  */
    10 #ifndef SkAnimatorView_DEFINED
    11 #define SkAnimatorView_DEFINED
    13 #include "SkView.h"
    14 #include "SkAnimator.h"
    16 class SkAnimatorView : public SkView {
    17 public:
    18             SkAnimatorView();
    19     virtual ~SkAnimatorView();
    21     SkAnimator* getAnimator() const { return fAnimator; }
    23     bool    decodeFile(const char path[]);
    24     bool    decodeMemory(const void* buffer, size_t size);
    25     bool    decodeStream(SkStream* stream);
    27 protected:
    28     // overrides
    29     virtual bool onEvent(const SkEvent&);
    30     virtual void onDraw(SkCanvas*);
    31     virtual void onInflate(const SkDOM&, const SkDOM::Node*);
    33 private:
    34     SkAnimator* fAnimator;
    36     typedef SkView INHERITED;
    37 };
    39 #endif

mercurial