Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(473)

Side by Side Diff: src/gpu/GrAAConvexPathRenderer.cpp

Issue 23471008: Add a requiresVertexShader method to GrGLEffect (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: brace formatting issue Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/gpu/GrAARectRenderer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 517
518 virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE { 518 virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE {
519 return GrTBackendEffectFactory<QuadEdgeEffect>::getInstance(); 519 return GrTBackendEffectFactory<QuadEdgeEffect>::getInstance();
520 } 520 }
521 521
522 class GLEffect : public GrGLEffect { 522 class GLEffect : public GrGLEffect {
523 public: 523 public:
524 GLEffect(const GrBackendEffectFactory& factory, const GrDrawEffect&) 524 GLEffect(const GrBackendEffectFactory& factory, const GrDrawEffect&)
525 : INHERITED (factory) {} 525 : INHERITED (factory) {}
526 526
527 virtual bool requiresVertexShader(const GrDrawEffect&) const SK_OVERRIDE { return true; }
528
527 virtual void emitCode(GrGLShaderBuilder* builder, 529 virtual void emitCode(GrGLShaderBuilder* builder,
528 const GrDrawEffect& drawEffect, 530 const GrDrawEffect& drawEffect,
529 EffectKey key, 531 EffectKey key,
530 const char* outputColor, 532 const char* outputColor,
531 const char* inputColor, 533 const char* inputColor,
532 const TextureSamplerArray& samplers) SK_OVERRIDE { 534 const TextureSamplerArray& samplers) SK_OVERRIDE {
533 GrGLShaderBuilder::VertexBuilder* vertexBuilder = builder->getVertex Builder(); 535 GrGLShaderBuilder::VertexBuilder* vertexBuilder = builder->getVertex Builder();
534 SkASSERT(NULL != vertexBuilder); 536 SkASSERT(NULL != vertexBuilder);
535 537
536 const char *vsName, *fsName; 538 const char *vsName, *fsName;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 vOffset, // start vertex 706 vOffset, // start vertex
705 0, // start index 707 0, // start index
706 draw.fVertexCnt, 708 draw.fVertexCnt,
707 draw.fIndexCnt, 709 draw.fIndexCnt,
708 &devBounds); 710 &devBounds);
709 vOffset += draw.fVertexCnt; 711 vOffset += draw.fVertexCnt;
710 } 712 }
711 713
712 return true; 714 return true;
713 } 715 }
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrAARectRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698