3 * Copyright 2006 The Android Open Source Project
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
10 #ifndef SkDisplayMovie_DEFINED
11 #define SkDisplayMovie_DEFINED
13 #include "SkAnimator.h"
14 #include "SkADrawable.h"
15 #include "SkMemberInfo.h"
19 class SkDisplayMovie : public SkADrawable {
20 DECLARE_DISPLAY_MEMBER_INFO(Movie);
22 virtual ~SkDisplayMovie();
24 SkDisplayable* deepCopy(SkAnimateMaker* ) SK_OVERRIDE;
25 void dirty() SK_OVERRIDE;
26 bool doEvent(const SkEvent& evt) {
27 return fLoaded && fMovie.doEvent(evt);
29 bool doEvent(SkDisplayEvent::Kind , SkEventState* state ) SK_OVERRIDE;
30 bool draw(SkAnimateMaker& ) SK_OVERRIDE;
31 #ifdef SK_DUMP_ENABLED
32 void dump(SkAnimateMaker* ) SK_OVERRIDE;
33 void dumpEvents() SK_OVERRIDE;
35 bool enable(SkAnimateMaker& ) SK_OVERRIDE;
36 const SkAnimator* getAnimator() const { return &fMovie; }
37 bool hasEnable() const SK_OVERRIDE;
38 void onEndElement(SkAnimateMaker& ) SK_OVERRIDE;
42 SkBool8 fDecodedSuccessfully;
45 friend class SkAnimateMaker;
48 typedef SkADrawable INHERITED;
51 #endif // SkDisplayMovie_DEFINED