OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 // This test only works with the GPU backend. | 8 // This test only works with the GPU backend. |
9 | 9 |
10 #include "gm.h" | 10 #include "gm.h" |
11 | 11 |
12 #if SK_SUPPORT_GPU | 12 #if SK_SUPPORT_GPU |
13 | 13 |
14 #include "GrContext.h" | 14 #include "GrContext.h" |
| 15 #include "GrGpu.h" |
15 #include "GrTest.h" | 16 #include "GrTest.h" |
| 17 #include "gl/GrGLContext.h" |
16 #include "SkBitmap.h" | 18 #include "SkBitmap.h" |
17 #include "SkGradientShader.h" | 19 #include "SkGradientShader.h" |
18 #include "SkImage.h" | 20 #include "SkImage.h" |
19 | 21 |
20 namespace skiagm { | 22 namespace skiagm { |
21 class RectangleTexture : public GM { | 23 class RectangleTexture : public GM { |
22 public: | 24 public: |
23 RectangleTexture() { | 25 RectangleTexture() { |
24 this->setBGColor(0xFFFFFFFF); | 26 this->setBGColor(0xFFFFFFFF); |
25 } | 27 } |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 } | 182 } |
181 | 183 |
182 private: | 184 private: |
183 typedef GM INHERITED; | 185 typedef GM INHERITED; |
184 }; | 186 }; |
185 | 187 |
186 DEF_GM(return new RectangleTexture;) | 188 DEF_GM(return new RectangleTexture;) |
187 } | 189 } |
188 | 190 |
189 #endif | 191 #endif |
OLD | NEW |