OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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" |
16 #include "SkBitmap.h" | 17 #include "SkBitmap.h" |
17 #include "SkGradientShader.h" | 18 #include "SkGradientShader.h" |
18 #include "SkImage.h" | 19 #include "SkImage.h" |
19 | 20 |
20 namespace skiagm { | 21 namespace skiagm { |
21 class ImageFromYUVTextures : public GM { | 22 class ImageFromYUVTextures : public GM { |
22 public: | 23 public: |
23 ImageFromYUVTextures() { | 24 ImageFromYUVTextures() { |
24 this->setBGColor(0xFFFFFFFF); | 25 this->setBGColor(0xFFFFFFFF); |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 163 |
163 static const int kBmpSize = 32; | 164 static const int kBmpSize = 32; |
164 | 165 |
165 typedef GM INHERITED; | 166 typedef GM INHERITED; |
166 }; | 167 }; |
167 | 168 |
168 DEF_GM(return new ImageFromYUVTextures;) | 169 DEF_GM(return new ImageFromYUVTextures;) |
169 } | 170 } |
170 | 171 |
171 #endif | 172 #endif |
OLD | NEW |