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