michael@0: michael@0: /* michael@0: * Copyright 2006 The Android Open Source Project michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: michael@0: #ifndef SkDump_DEFINED michael@0: #define SkDump_DEFINED michael@0: michael@0: #include "SkDisplayable.h" michael@0: #include "SkMemberInfo.h" michael@0: michael@0: class SkAnimateMaker; michael@0: class SkString; michael@0: michael@0: class SkDump : public SkDisplayable { michael@0: DECLARE_MEMBER_INFO(Dump); michael@0: #ifdef SK_DUMP_ENABLED michael@0: SkDump(); michael@0: virtual bool enable(SkAnimateMaker & ); michael@0: bool evaluate(SkAnimateMaker &); michael@0: virtual bool hasEnable() const; michael@0: static void GetEnumString(SkDisplayTypes , int index, SkString* result); michael@0: SkBool displayList; michael@0: SkBool eventList; michael@0: SkBool events; michael@0: SkString name; michael@0: SkBool groups; michael@0: SkBool posts; michael@0: SkString script; michael@0: #else michael@0: virtual bool enable(SkAnimateMaker & ); michael@0: virtual bool hasEnable() const; michael@0: virtual bool setProperty(int index, SkScriptValue& ); michael@0: #endif michael@0: }; michael@0: michael@0: michael@0: #endif // SkDump_DEFINED