| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 #include "SampleCode.h" | 7 #include "SampleCode.h" |
| 8 | 8 |
| 9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 #include "SkPath.h" | |
| 11 #include "SkRandom.h" | 10 #include "SkRandom.h" |
| 12 #include "SkRRect.h" | 11 #include "SkRRect.h" |
| 13 #include "SkTime.h" | 12 #include "SkTime.h" |
| 14 | 13 |
| 15 // Implementation in C++ of Mozilla Canvas2D benchmark Canvas Clock Test | 14 // Implementation in C++ of Mozilla Canvas2D benchmark Canvas Clock Test |
| 16 // See https://code.google.com/p/skia/issues/detail?id=1626 | 15 // See https://code.google.com/p/skia/issues/detail?id=1626 |
| 17 | 16 |
| 18 #define USE_PATH 1 | 17 #define USE_PATH 1 |
| 19 | 18 |
| 20 class ClockView : public SampleView { | 19 class ClockView : public SampleView { |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 | 220 |
| 222 private: | 221 private: |
| 223 | 222 |
| 224 typedef SampleView INHERITED; | 223 typedef SampleView INHERITED; |
| 225 }; | 224 }; |
| 226 | 225 |
| 227 ////////////////////////////////////////////////////////////////////////////// | 226 ////////////////////////////////////////////////////////////////////////////// |
| 228 | 227 |
| 229 static SkView* MyFactory() { return new ClockView; } | 228 static SkView* MyFactory() { return new ClockView; } |
| 230 static SkViewRegister reg(MyFactory); | 229 static SkViewRegister reg(MyFactory); |
| OLD | NEW |