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 "gm.h" | 8 #include "gm.h" |
9 #include "SkSurface.h" | 9 #include "SkSurface.h" |
10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 canvas->translate(80, 0); | 184 canvas->translate(80, 0); |
185 test_surface(canvas, surf1, true); | 185 test_surface(canvas, surf1, true); |
186 #if SK_SUPPORT_GPU | 186 #if SK_SUPPORT_GPU |
187 if (ctx) { | 187 if (ctx) { |
188 canvas->translate(80, 0); | 188 canvas->translate(80, 0); |
189 test_surface(canvas, surf4, true); | 189 test_surface(canvas, surf4, true); |
190 } | 190 } |
191 #endif | 191 #endif |
192 } | 192 } |
193 | 193 |
194 virtual uint32_t onGetFlags() const SK_OVERRIDE { | 194 uint32_t onGetFlags() const SK_OVERRIDE { |
195 return GM::kSkipPicture_Flag | GM::kSkipPipe_Flag; | 195 return GM::kSkipPicture_Flag | GM::kSkipPipe_Flag; |
196 } | 196 } |
197 | 197 |
198 private: | 198 private: |
199 typedef skiagm::GM INHERITED; | 199 typedef skiagm::GM INHERITED; |
200 }; | 200 }; |
201 | 201 |
202 ////////////////////////////////////////////////////////////////////////////// | 202 ////////////////////////////////////////////////////////////////////////////// |
203 | 203 |
204 static skiagm::GM* MyFactory(void*) { return new ImageGM; } | 204 static skiagm::GM* MyFactory(void*) { return new ImageGM; } |
205 static skiagm::GMRegistry reg(MyFactory); | 205 static skiagm::GMRegistry reg(MyFactory); |
OLD | NEW |