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

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

Issue 385713005: Allow GrGLEffects to produce variable length keys. (Closed) Base URL: https://skia.googlesource.com/skia.git@key
Patch Set: rebase Created 6 years, 5 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
« no previous file with comments | « src/gpu/gl/GrGLProgramEffects.cpp ('k') | src/gpu/gl/GrGLVertexEffect.h » ('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 13 matching lines...) Expand all
24 class GrEffectStage; 24 class GrEffectStage;
25 class GrGLProgramDesc; 25 class GrGLProgramDesc;
26 26
27 /** 27 /**
28 Contains all the incremental state of a shader as it is being built,as well as helpers to 28 Contains all the incremental state of a shader as it is being built,as well as helpers to
29 manipulate that state. 29 manipulate that state.
30 */ 30 */
31 class GrGLShaderBuilder { 31 class GrGLShaderBuilder {
32 public: 32 public:
33 typedef GrTAllocator<GrGLShaderVar> VarArray; 33 typedef GrTAllocator<GrGLShaderVar> VarArray;
34 typedef GrBackendEffectFactory::EffectKey EffectKey;
35 typedef GrGLProgramEffects::TextureSampler TextureSampler; 34 typedef GrGLProgramEffects::TextureSampler TextureSampler;
36 typedef GrGLProgramEffects::TransformedCoordsArray TransformedCoordsArray; 35 typedef GrGLProgramEffects::TransformedCoordsArray TransformedCoordsArray;
37 typedef GrGLUniformManager::BuilderUniform BuilderUniform; 36 typedef GrGLUniformManager::BuilderUniform BuilderUniform;
38 37
39 enum ShaderVisibility { 38 enum ShaderVisibility {
40 kVertex_Visibility = 0x1, 39 kVertex_Visibility = 0x1,
41 kGeometry_Visibility = 0x2, 40 kGeometry_Visibility = 0x2,
42 kFragment_Visibility = 0x4, 41 kFragment_Visibility = 0x4,
43 }; 42 };
44 43
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 int effectCnt, 513 int effectCnt,
515 const GrGLProgramDesc::Effe ctKeyProvider&, 514 const GrGLProgramDesc::Effe ctKeyProvider&,
516 GrGLSLExpr4* inOutFSColor) SK_OVERRIDE; 515 GrGLSLExpr4* inOutFSColor) SK_OVERRIDE;
517 516
518 virtual void emitCodeAfterEffects() SK_OVERRIDE {} 517 virtual void emitCodeAfterEffects() SK_OVERRIDE {}
519 518
520 typedef GrGLShaderBuilder INHERITED; 519 typedef GrGLShaderBuilder INHERITED;
521 }; 520 };
522 521
523 #endif 522 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProgramEffects.cpp ('k') | src/gpu/gl/GrGLVertexEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698