| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 4 * | 3 * |
| 5 * 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 |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 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 #include "SkPaint.h" | 11 #include "SkPaint.h" |
| 12 #include "SkPath.h" |
| 12 #include "SkRandom.h" | 13 #include "SkRandom.h" |
| 13 #include "SkString.h" | 14 #include "SkString.h" |
| 14 | 15 |
| 15 class EmptyPathView : public SampleView { | 16 class EmptyPathView : public SampleView { |
| 16 public: | 17 public: |
| 17 EmptyPathView() {} | 18 EmptyPathView() {} |
| 18 | 19 |
| 19 protected: | 20 protected: |
| 20 // overrides from SkEventSink | 21 // overrides from SkEventSink |
| 21 virtual bool onQuery(SkEvent* evt) { | 22 virtual bool onQuery(SkEvent* evt) { |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 } | 122 } |
| 122 | 123 |
| 123 private: | 124 private: |
| 124 typedef SampleView INHERITED; | 125 typedef SampleView INHERITED; |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 ////////////////////////////////////////////////////////////////////////////// | 128 ////////////////////////////////////////////////////////////////////////////// |
| 128 | 129 |
| 129 static SkView* MyFactory() { return new EmptyPathView; } | 130 static SkView* MyFactory() { return new EmptyPathView; } |
| 130 static SkViewRegister reg(MyFactory); | 131 static SkViewRegister reg(MyFactory); |
| OLD | NEW |