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

Side by Side Diff: src/gpu/gl/GrGLShaderBuilder.h

Issue 25846002: Use vertexless shaders when NVpr is available (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix mac build Created 7 years, 2 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 | « src/gpu/gl/GrGLProgramEffects.cpp ('k') | src/gpu/gl/GrGLShaderBuilder.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 * 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 #ifndef GrGLShaderBuilder_DEFINED 8 #ifndef GrGLShaderBuilder_DEFINED
9 #define GrGLShaderBuilder_DEFINED 9 #define GrGLShaderBuilder_DEFINED
10 10
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 SkSTArray<10, AttributePair, true> fEffectAttributes; 443 SkSTArray<10, AttributePair, true> fEffectAttributes;
444 444
445 GrGLUniformManager::UniformHandle fViewMatrixUniform; 445 GrGLUniformManager::UniformHandle fViewMatrixUniform;
446 446
447 GrGLShaderVar* fPositionVar; 447 GrGLShaderVar* fPositionVar;
448 GrGLShaderVar* fLocalCoordsVar; 448 GrGLShaderVar* fLocalCoordsVar;
449 449
450 typedef GrGLShaderBuilder INHERITED; 450 typedef GrGLShaderBuilder INHERITED;
451 }; 451 };
452 452
453 ////////////////////////////////////////////////////////////////////////////////
454
455 class GrGLFragmentOnlyShaderBuilder : public GrGLShaderBuilder {
456 public:
457 GrGLFragmentOnlyShaderBuilder(GrGpuGL*, GrGLUniformManager&, const GrGLProgr amDesc&);
458
459 int getNumTexCoordSets() const { return fNumTexCoordSets; }
460 int addTexCoordSets(int count) { return (fNumTexCoordSets += count) - count; }
461
462 virtual GrGLProgramEffects* createAndEmitEffects(
463 const GrEffectStage* effectStages[],
464 const EffectKey effectKeys[],
465 int effectCnt,
466 SkString* inOutFSColor,
467 GrSLConstantVec* fsInOutColorKnownValue) SK_OVERRIDE;
468
469 private:
470 int fNumTexCoordSets;
471
472 typedef GrGLShaderBuilder INHERITED;
473 };
474
453 #endif 475 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProgramEffects.cpp ('k') | src/gpu/gl/GrGLShaderBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698