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 SkDisplayAdd_DEFINED
11 #define SkDisplayAdd_DEFINED
13 #include "SkADrawable.h"
14 #include "SkMemberInfo.h"
16 class SkAdd : public SkADrawable {
17 DECLARE_MEMBER_INFO(Add);
25 SkDisplayable* deepCopy(SkAnimateMaker* ) SK_OVERRIDE;
26 bool draw(SkAnimateMaker& ) SK_OVERRIDE;
27 #ifdef SK_DUMP_ENABLED
28 void dump(SkAnimateMaker* ) SK_OVERRIDE;
30 bool enable(SkAnimateMaker& ) SK_OVERRIDE;
31 bool hasEnable() const SK_OVERRIDE;
32 void initialize() SK_OVERRIDE;
33 bool isDrawable() const SK_OVERRIDE;
39 SkADrawable* where; // if NULL, offset becomes index
42 typedef SkADrawable INHERITED;
45 class SkClear : public SkDisplayable {
46 virtual bool enable(SkAnimateMaker& );
49 class SkMove : public SkAdd {
50 DECLARE_MEMBER_INFO(Move);
52 typedef SkAdd INHERITED;
55 class SkRemove : public SkAdd {
56 DECLARE_MEMBER_INFO(Remove);
62 typedef SkAdd INHERITED;
65 class SkReplace : public SkAdd {
66 DECLARE_MEMBER_INFO(Replace);
68 typedef SkAdd INHERITED;
71 #endif // SkDisplayAdd_DEFINED