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

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

Issue 32403002: Fix GrProgramsTest to not generate tests with too many TexCoord references (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: adress Created 7 years, 1 month 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/GrGLProgram.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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 typedef GrGLShaderBuilder INHERITED; 432 typedef GrGLShaderBuilder INHERITED;
433 }; 433 };
434 434
435 //////////////////////////////////////////////////////////////////////////////// 435 ////////////////////////////////////////////////////////////////////////////////
436 436
437 class GrGLFragmentOnlyShaderBuilder : public GrGLShaderBuilder { 437 class GrGLFragmentOnlyShaderBuilder : public GrGLShaderBuilder {
438 public: 438 public:
439 GrGLFragmentOnlyShaderBuilder(GrGpuGL*, GrGLUniformManager&, const GrGLProgr amDesc&); 439 GrGLFragmentOnlyShaderBuilder(GrGpuGL*, GrGLUniformManager&, const GrGLProgr amDesc&);
440 440
441 int getNumTexCoordSets() const { return fNumTexCoordSets; } 441 int getNumTexCoordSets() const { return fNumTexCoordSets; }
442 int addTexCoordSets(int count) { return (fNumTexCoordSets += count) - count; } 442 int addTexCoordSets(int count);
443 443
444 virtual GrGLProgramEffects* createAndEmitEffects( 444 virtual GrGLProgramEffects* createAndEmitEffects(
445 const GrEffectStage* effectStages[], 445 const GrEffectStage* effectStages[],
446 const EffectKey effectKeys[], 446 const EffectKey effectKeys[],
447 int effectCnt, 447 int effectCnt,
448 GrGLSLExpr<4>* inOutFSColor) SK_OVERRIDE; 448 GrGLSLExpr<4>* inOutFSColor) SK_OVERRIDE;
449 449
450 private: 450 private:
451 int fNumTexCoordSets; 451 int fNumTexCoordSets;
452 452
453 typedef GrGLShaderBuilder INHERITED; 453 typedef GrGLShaderBuilder INHERITED;
454 }; 454 };
455 455
456 #endif 456 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProgram.cpp ('k') | src/gpu/gl/GrGLShaderBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698