OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 | 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 "SkDevice.h" | |
12 #include "SkColorPriv.h" | 11 #include "SkColorPriv.h" |
13 #include "SkShader.h" | 12 #include "SkShader.h" |
14 | 13 |
15 static const struct { | 14 static const struct { |
16 SkXfermode::Mode fMode; | 15 SkXfermode::Mode fMode; |
17 const char* fLabel; | 16 const char* fLabel; |
18 } gModes[] = { | 17 } gModes[] = { |
19 { SkXfermode::kClear_Mode, "Clear" }, | 18 { SkXfermode::kClear_Mode, "Clear" }, |
20 { SkXfermode::kSrc_Mode, "Src" }, | 19 { SkXfermode::kSrc_Mode, "Src" }, |
21 { SkXfermode::kDst_Mode, "Dst" }, | 20 { SkXfermode::kDst_Mode, "Dst" }, |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 } | 119 } |
121 | 120 |
122 private: | 121 private: |
123 typedef SampleView INHERITED; | 122 typedef SampleView INHERITED; |
124 }; | 123 }; |
125 | 124 |
126 /////////////////////////////////////////////////////////////////////////////// | 125 /////////////////////////////////////////////////////////////////////////////// |
127 | 126 |
128 static SkView* MyFactory() { return new HairModesView; } | 127 static SkView* MyFactory() { return new HairModesView; } |
129 static SkViewRegister reg(MyFactory); | 128 static SkViewRegister reg(MyFactory); |
OLD | NEW |