| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include "GrAAConvexPathRenderer.h" | 9 #include "GrAAConvexPathRenderer.h" |
| 10 | 10 |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 return true; | 586 return true; |
| 587 } | 587 } |
| 588 | 588 |
| 589 GR_DECLARE_EFFECT_TEST; | 589 GR_DECLARE_EFFECT_TEST; |
| 590 | 590 |
| 591 typedef GrEffect INHERITED; | 591 typedef GrEffect INHERITED; |
| 592 }; | 592 }; |
| 593 | 593 |
| 594 GR_DEFINE_EFFECT_TEST(QuadEdgeEffect); | 594 GR_DEFINE_EFFECT_TEST(QuadEdgeEffect); |
| 595 | 595 |
| 596 GrEffectRef* QuadEdgeEffect::TestCreate(SkMWCRandom* random, | 596 GrEffectRef* QuadEdgeEffect::TestCreate(SkRandom* random, |
| 597 GrContext*, | 597 GrContext*, |
| 598 const GrDrawTargetCaps& caps, | 598 const GrDrawTargetCaps& caps, |
| 599 GrTexture*[]) { | 599 GrTexture*[]) { |
| 600 // Doesn't work without derivative instructions. | 600 // Doesn't work without derivative instructions. |
| 601 return caps.shaderDerivativeSupport() ? QuadEdgeEffect::Create() : NULL; | 601 return caps.shaderDerivativeSupport() ? QuadEdgeEffect::Create() : NULL; |
| 602 } | 602 } |
| 603 | 603 |
| 604 /////////////////////////////////////////////////////////////////////////////// | 604 /////////////////////////////////////////////////////////////////////////////// |
| 605 | 605 |
| 606 bool GrAAConvexPathRenderer::canDrawPath(const SkPath& path, | 606 bool GrAAConvexPathRenderer::canDrawPath(const SkPath& path, |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 vOffset, // start vertex | 706 vOffset, // start vertex |
| 707 0, // start index | 707 0, // start index |
| 708 draw.fVertexCnt, | 708 draw.fVertexCnt, |
| 709 draw.fIndexCnt, | 709 draw.fIndexCnt, |
| 710 &devBounds); | 710 &devBounds); |
| 711 vOffset += draw.fVertexCnt; | 711 vOffset += draw.fVertexCnt; |
| 712 } | 712 } |
| 713 | 713 |
| 714 return true; | 714 return true; |
| 715 } | 715 } |
| OLD | NEW |