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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 } | 123 } |
125 | 124 |
126 private: | 125 private: |
127 typedef SampleView INHERITED; | 126 typedef SampleView INHERITED; |
128 }; | 127 }; |
129 | 128 |
130 /////////////////////////////////////////////////////////////////////////////// | 129 /////////////////////////////////////////////////////////////////////////////// |
131 | 130 |
132 static SkView* MyFactory() { return new AARectsModesView; } | 131 static SkView* MyFactory() { return new AARectsModesView; } |
133 static SkViewRegister reg(MyFactory); | 132 static SkViewRegister reg(MyFactory); |
OLD | NEW |