OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "gm.h" | 8 #include "gm.h" |
9 #include "SkColorCubeFilter.h" | 9 #include "SkColorCubeFilter.h" |
10 #include "SkBitmapSource.h" | |
11 #include "SkData.h" | 10 #include "SkData.h" |
12 #include "SkGradientShader.h" | 11 #include "SkGradientShader.h" |
13 | 12 |
14 namespace skiagm { | 13 namespace skiagm { |
15 | 14 |
16 static SkShader* MakeLinear() { | 15 static SkShader* MakeLinear() { |
17 static const SkPoint pts[2] = { | 16 static const SkPoint pts[2] = { |
18 { 0, 0 }, | 17 { 0, 0 }, |
19 { SkIntToScalar(80), SkIntToScalar(80) } | 18 { SkIntToScalar(80), SkIntToScalar(80) } |
20 }; | 19 }; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 SkData* f3DLut32; | 132 SkData* f3DLut32; |
134 SkData* f3DLut64; | 133 SkData* f3DLut64; |
135 }; | 134 }; |
136 | 135 |
137 ////////////////////////////////////////////////////////////////////////////// | 136 ////////////////////////////////////////////////////////////////////////////// |
138 | 137 |
139 static GM* MyFactory(void*) { return new ColorCubeGM; } | 138 static GM* MyFactory(void*) { return new ColorCubeGM; } |
140 static GMRegistry reg(MyFactory); | 139 static GMRegistry reg(MyFactory); |
141 | 140 |
142 } | 141 } |
OLD | NEW |