| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 "SkCanvas.h" | 9 #include "SkCanvas.h" |
| 10 #include "SkGradientShader.h" | 10 #include "SkGradientShader.h" |
| 11 #include "SkPath.h" | |
| 12 #include "SkSurface.h" | 11 #include "SkSurface.h" |
| 13 | 12 |
| 14 #if SK_SUPPORT_GPU | 13 #if SK_SUPPORT_GPU |
| 15 #include "SkGpuDevice.h" | 14 #include "SkGpuDevice.h" |
| 16 #endif | 15 #endif |
| 17 | 16 |
| 18 #define W SkIntToScalar(80) | 17 #define W SkIntToScalar(80) |
| 19 #define H SkIntToScalar(60) | 18 #define H SkIntToScalar(60) |
| 20 | 19 |
| 21 typedef void (*PaintProc)(SkPaint*); | 20 typedef void (*PaintProc)(SkPaint*); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 surf->draw(canvas, 0, 0, NULL); | 141 surf->draw(canvas, 0, 0, NULL); |
| 143 } | 142 } |
| 144 | 143 |
| 145 private: | 144 private: |
| 146 typedef skiagm::GM INHERITED; | 145 typedef skiagm::GM INHERITED; |
| 147 }; | 146 }; |
| 148 | 147 |
| 149 /////////////////////////////////////////////////////////////////////////////// | 148 /////////////////////////////////////////////////////////////////////////////// |
| 150 | 149 |
| 151 DEF_GM(return new SrcModeGM;) | 150 DEF_GM(return new SrcModeGM;) |
| OLD | NEW |