| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "GrDrawContextPriv.h" | 14 #include "GrDrawContextPriv.h" |
| 15 #include "GrContext.h" | 15 #include "GrContext.h" |
| 16 #include "GrPathUtils.h" | 16 #include "GrPathUtils.h" |
| 17 #include "GrTest.h" | 17 #include "GrTest.h" |
| 18 #include "SkColorPriv.h" | 18 #include "SkColorPriv.h" |
| 19 #include "SkDevice.h" | |
| 20 #include "SkGeometry.h" | 19 #include "SkGeometry.h" |
| 21 | 20 |
| 22 #include "batches/GrTestBatch.h" | 21 #include "batches/GrTestBatch.h" |
| 23 | 22 |
| 24 #include "effects/GrBezierEffect.h" | 23 #include "effects/GrBezierEffect.h" |
| 25 | 24 |
| 26 static inline SkScalar eval_line(const SkPoint& p, const SkScalar lineEq[3], SkS
calar sign) { | 25 static inline SkScalar eval_line(const SkPoint& p, const SkScalar lineEq[3], SkS
calar sign) { |
| 27 return sign * (lineEq[0] * p.fX + lineEq[1] * p.fY + lineEq[2]); | 26 return sign * (lineEq[0] * p.fX + lineEq[1] * p.fY + lineEq[2]); |
| 28 } | 27 } |
| 29 | 28 |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 private: | 566 private: |
| 568 typedef GM INHERITED; | 567 typedef GM INHERITED; |
| 569 }; | 568 }; |
| 570 | 569 |
| 571 DEF_GM(return new BezierCubicEffects;) | 570 DEF_GM(return new BezierCubicEffects;) |
| 572 DEF_GM(return new BezierConicEffects;) | 571 DEF_GM(return new BezierConicEffects;) |
| 573 DEF_GM(return new BezierQuadEffects;) | 572 DEF_GM(return new BezierQuadEffects;) |
| 574 } | 573 } |
| 575 | 574 |
| 576 #endif | 575 #endif |
| OLD | NEW |