| 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" |
| 10 #include "SkRandom.h" | 11 #include "SkRandom.h" |
| 11 #include "SkRRect.h" | 12 #include "SkRRect.h" |
| 12 #include "SkTime.h" | 13 #include "SkTime.h" |
| 13 | 14 |
| 14 // Implementation in C++ of Mozilla Canvas2D benchmark Canvas Clock Test | 15 // Implementation in C++ of Mozilla Canvas2D benchmark Canvas Clock Test |
| 15 // See https://code.google.com/p/skia/issues/detail?id=1626 | 16 // See https://code.google.com/p/skia/issues/detail?id=1626 |
| 16 | 17 |
| 17 #define USE_PATH 1 | 18 #define USE_PATH 1 |
| 18 | 19 |
| 19 class ClockView : public SampleView { | 20 class ClockView : public SampleView { |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 | 221 |
| 221 private: | 222 private: |
| 222 | 223 |
| 223 typedef SampleView INHERITED; | 224 typedef SampleView INHERITED; |
| 224 }; | 225 }; |
| 225 | 226 |
| 226 ////////////////////////////////////////////////////////////////////////////// | 227 ////////////////////////////////////////////////////////////////////////////// |
| 227 | 228 |
| 228 static SkView* MyFactory() { return new ClockView; } | 229 static SkView* MyFactory() { return new ClockView; } |
| 229 static SkViewRegister reg(MyFactory); | 230 static SkViewRegister reg(MyFactory); |
| OLD | NEW |