| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 #include "SampleCode.h" | 8 #include "SampleCode.h" |
| 9 #include "SkView.h" | 9 #include "SkView.h" |
| 10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
| 11 | 11 |
| 12 #include "SkAnimator.h" | 12 #include "SkAnimator.h" |
| 13 #include "SkStream.h" | 13 #include "SkStream.h" |
| 14 #include "SkDOM.h" | 14 #include "SkDOM.h" |
| 15 | 15 |
| 16 #if 0 |
| 16 /////////////////////////////////////////////////////////////////////////////// | 17 /////////////////////////////////////////////////////////////////////////////// |
| 17 | 18 |
| 18 class SkAnimatorView : public SkView { | 19 class SkAnimatorView : public SkView { |
| 19 public: | 20 public: |
| 20 SkAnimatorView(); | 21 SkAnimatorView(); |
| 21 virtual ~SkAnimatorView(); | 22 virtual ~SkAnimatorView(); |
| 22 | 23 |
| 23 void setURIBase(const char dir[]); | 24 void setURIBase(const char dir[]); |
| 24 | 25 |
| 25 SkAnimator* getAnimator() const { return fAnimator; } | 26 SkAnimator* getAnimator() const { return fAnimator; } |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 av->setURIBase("/skia/trunk/animations/"); | 164 av->setURIBase("/skia/trunk/animations/"); |
| 164 av->decodeFile("/skia/trunk/animations/checkbox.xml"); | 165 av->decodeFile("/skia/trunk/animations/checkbox.xml"); |
| 165 #else | 166 #else |
| 166 av->setURIBase("/"); | 167 av->setURIBase("/"); |
| 167 av->decodeFile("/testanim.txt"); | 168 av->decodeFile("/testanim.txt"); |
| 168 #endif | 169 #endif |
| 169 return av; | 170 return av; |
| 170 } | 171 } |
| 171 | 172 |
| 172 static SkViewRegister reg(MyFactory); | 173 static SkViewRegister reg(MyFactory); |
| 174 #endif |
| OLD | NEW |