blob: 1b17f6ffd63c170f054ab86e9ae7425a10b1c456 [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 SkXMLAnimatorWriter_DEFINED
11#define SkXMLAnimatorWriter_DEFINED
12
13#include "SkXMLWriter.h"
14
15class SkAnimator;
16class SkDisplayXMLParser;
17
18class SkXMLAnimatorWriter : public SkXMLWriter {
19public:
20 SkXMLAnimatorWriter(SkAnimator*);
21 virtual ~SkXMLAnimatorWriter();
22 virtual void writeHeader();
23 SkDEBUGCODE(static void UnitTest(class SkCanvas* canvas);)
24protected:
25 virtual void onAddAttributeLen(const char name[], const char value[], size_t length);
26 virtual void onEndElement();
27 virtual void onStartElementLen(const char elem[], size_t length);
28private:
29 SkAnimator* fAnimator;
30 SkDisplayXMLParser* fParser;
31};
32
33#endif // SkXMLAnimatorWriter_DEFINED