| 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 "SkPath.h" |
| 12 #include "SkSurface.h" | 12 #include "SkSurface.h" |
| 13 | 13 |
| 14 #if SK_SUPPORT_GPU | |
| 15 #include "SkGpuDevice.h" | |
| 16 #endif | |
| 17 | |
| 18 #define W SkIntToScalar(80) | 14 #define W SkIntToScalar(80) |
| 19 #define H SkIntToScalar(60) | 15 #define H SkIntToScalar(60) |
| 20 | 16 |
| 21 typedef void (*PaintProc)(SkPaint*); | 17 typedef void (*PaintProc)(SkPaint*); |
| 22 | 18 |
| 23 static void identity_paintproc(SkPaint* paint) { | 19 static void identity_paintproc(SkPaint* paint) { |
| 24 paint->setShader(nullptr); | 20 paint->setShader(nullptr); |
| 25 } | 21 } |
| 26 | 22 |
| 27 static void gradient_paintproc(SkPaint* paint) { | 23 static void gradient_paintproc(SkPaint* paint) { |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 surf->draw(canvas, 0, 0, nullptr); | 135 surf->draw(canvas, 0, 0, nullptr); |
| 140 } | 136 } |
| 141 | 137 |
| 142 private: | 138 private: |
| 143 typedef skiagm::GM INHERITED; | 139 typedef skiagm::GM INHERITED; |
| 144 }; | 140 }; |
| 145 | 141 |
| 146 /////////////////////////////////////////////////////////////////////////////// | 142 /////////////////////////////////////////////////////////////////////////////// |
| 147 | 143 |
| 148 DEF_GM(return new SrcModeGM;) | 144 DEF_GM(return new SrcModeGM;) |
| OLD | NEW |