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 #include "SkCornerPathEffect.h" | 11 #include "SkCornerPathEffect.h" |
12 #include "SkCullPoints.h" | |
13 #include "SkGradientShader.h" | 12 #include "SkGradientShader.h" |
14 #include "SkPath.h" | 13 #include "SkPath.h" |
15 #include "SkRegion.h" | 14 #include "SkRegion.h" |
16 #include "SkShader.h" | 15 #include "SkShader.h" |
17 #include "SkUtils.h" | 16 #include "SkUtils.h" |
18 | 17 |
19 static void create_bitmap(SkBitmap* bitmap) { | 18 static void create_bitmap(SkBitmap* bitmap) { |
20 const int W = 100; | 19 const int W = 100; |
21 const int H = 100; | 20 const int H = 100; |
22 bitmap->allocN32Pixels(W, H); | 21 bitmap->allocN32Pixels(W, H); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } | 58 } |
60 | 59 |
61 private: | 60 private: |
62 typedef SampleView INHERITED; | 61 typedef SampleView INHERITED; |
63 }; | 62 }; |
64 | 63 |
65 ////////////////////////////////////////////////////////////////////////////// | 64 ////////////////////////////////////////////////////////////////////////////// |
66 | 65 |
67 static SkView* MyFactory() { return new WritePixelsView; } | 66 static SkView* MyFactory() { return new WritePixelsView; } |
68 static SkViewRegister reg(MyFactory); | 67 static SkViewRegister reg(MyFactory); |
OLD | NEW |