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