OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "SkBitmap.h" | 9 #include "SkBitmap.h" |
10 #include "SkGradientShader.h" | 10 #include "SkGradientShader.h" |
11 #include "SkSurface.h" | 11 #include "SkSurface.h" |
12 #include "SkXfermode.h" | 12 #include "SkXfermode.h" |
13 #include "SkColorPriv.h" | 13 #include "SkColorPriv.h" |
14 | 14 |
15 #if SK_SUPPORT_GPU | 15 #if SK_SUPPORT_GPU |
16 #include "GrContext.h" | 16 #include "GrContext.h" |
17 #include "SkGpuDevice.h" | |
18 #endif | 17 #endif |
19 | 18 |
20 namespace skiagm { | 19 namespace skiagm { |
21 | 20 |
22 /** | 21 /** |
23 * This tests drawing device-covering rects with solid colors and bitmap shaders
over a | 22 * This tests drawing device-covering rects with solid colors and bitmap shaders
over a |
24 * checkerboard background using different xfermodes. | 23 * checkerboard background using different xfermodes. |
25 */ | 24 */ |
26 class Xfermodes3GM : public GM { | 25 class Xfermodes3GM : public GM { |
27 public: | 26 public: |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 sk_sp<SkShader> fBmpShader; | 221 sk_sp<SkShader> fBmpShader; |
223 | 222 |
224 typedef GM INHERITED; | 223 typedef GM INHERITED; |
225 }; | 224 }; |
226 | 225 |
227 ////////////////////////////////////////////////////////////////////////////// | 226 ////////////////////////////////////////////////////////////////////////////// |
228 | 227 |
229 DEF_GM(return new Xfermodes3GM;) | 228 DEF_GM(return new Xfermodes3GM;) |
230 | 229 |
231 } | 230 } |
OLD | NEW |