blob: bcf19fd9af4a2a0e1e2567021f9ffdc1059a5742 [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
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 */
8
reed@android.com8a1c16f2008-12-17 15:59:43 +00009
10#ifndef SkDump_DEFINED
11#define SkDump_DEFINED
12
13#include "SkDisplayable.h"
14#include "SkMemberInfo.h"
15
16class SkAnimateMaker;
17class SkString;
18
19class SkDump : public SkDisplayable {
20 DECLARE_MEMBER_INFO(Dump);
21#ifdef SK_DUMP_ENABLED
22 SkDump();
mtklein36352bf2015-03-25 18:17:31 -070023 bool enable(SkAnimateMaker & ) override;
reed@android.com8a1c16f2008-12-17 15:59:43 +000024 bool evaluate(SkAnimateMaker &);
mtklein36352bf2015-03-25 18:17:31 -070025 bool hasEnable() const override;
reed@android.com8a1c16f2008-12-17 15:59:43 +000026 static void GetEnumString(SkDisplayTypes , int index, SkString* result);
27 SkBool displayList;
28 SkBool eventList;
29 SkBool events;
30 SkString name;
31 SkBool groups;
32 SkBool posts;
33 SkString script;
34#else
mtklein3073b5f2015-07-28 09:35:19 -070035 bool enable(SkAnimateMaker & ) override;
36 bool hasEnable() const override;
37 bool setProperty(int index, SkScriptValue& ) override;
reed@android.com8a1c16f2008-12-17 15:59:43 +000038#endif
39};
40
41
42#endif // SkDump_DEFINED