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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 class GLEffect : public GrGLEffect { | 524 class GLEffect : public GrGLEffect { |
525 public: | 525 public: |
526 GLEffect(const GrBackendEffectFactory& factory, const GrDrawEffect&) | 526 GLEffect(const GrBackendEffectFactory& factory, const GrDrawEffect&) |
527 : INHERITED (factory) {} | 527 : INHERITED (factory) {} |
528 | 528 |
529 virtual void emitCode(GrGLShaderBuilder* builder, | 529 virtual void emitCode(GrGLShaderBuilder* builder, |
530 const GrDrawEffect& drawEffect, | 530 const GrDrawEffect& drawEffect, |
531 EffectKey key, | 531 EffectKey key, |
532 const char* outputColor, | 532 const char* outputColor, |
533 const char* inputColor, | 533 const char* inputColor, |
| 534 const TransformedCoordsArray&, |
534 const TextureSamplerArray& samplers) SK_OVERRIDE { | 535 const TextureSamplerArray& samplers) SK_OVERRIDE { |
535 GrGLShaderBuilder::VertexBuilder* vertexBuilder = builder->getVertex
Builder(); | 536 GrGLShaderBuilder::VertexBuilder* vertexBuilder = builder->getVertex
Builder(); |
536 SkASSERT(NULL != vertexBuilder); | 537 SkASSERT(NULL != vertexBuilder); |
537 | 538 |
538 const char *vsName, *fsName; | 539 const char *vsName, *fsName; |
539 const SkString* attrName = | 540 const SkString* attrName = |
540 vertexBuilder->getEffectAttributeName(drawEffect.getVertexAttrib
Indices()[0]); | 541 vertexBuilder->getEffectAttributeName(drawEffect.getVertexAttrib
Indices()[0]); |
541 builder->fsCodeAppendf("\t\tfloat edgeAlpha;\n"); | 542 builder->fsCodeAppendf("\t\tfloat edgeAlpha;\n"); |
542 | 543 |
543 SkAssertResult(builder->enableFeature( | 544 SkAssertResult(builder->enableFeature( |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 vOffset, // start vertex | 707 vOffset, // start vertex |
707 0, // start index | 708 0, // start index |
708 draw.fVertexCnt, | 709 draw.fVertexCnt, |
709 draw.fIndexCnt, | 710 draw.fIndexCnt, |
710 &devBounds); | 711 &devBounds); |
711 vOffset += draw.fVertexCnt; | 712 vOffset += draw.fVertexCnt; |
712 } | 713 } |
713 | 714 |
714 return true; | 715 return true; |
715 } | 716 } |
OLD | NEW |