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

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

Issue 554833002: Calculate Primary and Secondary output types in the GrOptDrawState (Closed) Base URL: https://skia.googlesource.com/skia.git@optReadDst
Patch Set: Rebase Created 6 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
« no previous file with comments | « src/gpu/GrOptDrawState.cpp ('k') | src/gpu/gl/GrGLProgram.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 2011 Google Inc. 2 * Copyright 2011 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 8
9 #ifndef GrGLProgram_DEFINED 9 #ifndef GrGLProgram_DEFINED
10 #define GrGLProgram_DEFINED 10 #define GrGLProgram_DEFINED
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const GrEffectStage* colorStages[], 45 const GrEffectStage* colorStages[],
46 const GrEffectStage* coverageStages[]); 46 const GrEffectStage* coverageStages[]);
47 47
48 virtual ~GrGLProgram(); 48 virtual ~GrGLProgram();
49 49
50 /** 50 /**
51 * Call to abandon GL objects owned by this program. 51 * Call to abandon GL objects owned by this program.
52 */ 52 */
53 void abandon(); 53 void abandon();
54 54
55 /**
56 * The shader may modify the blend coefficients. Params are in/out.
57 */
58 void overrideBlend(GrBlendCoeff* srcCoeff, GrBlendCoeff* dstCoeff) const;
59
60 const GrGLProgramDesc& getDesc() { return fDesc; } 55 const GrGLProgramDesc& getDesc() { return fDesc; }
61 56
62 /** 57 /**
63 * Gets the GL program ID for this program. 58 * Gets the GL program ID for this program.
64 */ 59 */
65 GrGLuint programID() const { return fProgramID; } 60 GrGLuint programID() const { return fProgramID; }
66 61
67 bool hasVertexShader() const { return fHasVertexShader; } 62 bool hasVertexShader() const { return fHasVertexShader; }
68 63
69 /** 64 /**
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 197
203 GrGLProgramDesc fDesc; 198 GrGLProgramDesc fDesc;
204 GrGpuGL* fGpu; 199 GrGpuGL* fGpu;
205 200
206 GrGLProgramDataManager fProgramDataManager; 201 GrGLProgramDataManager fProgramDataManager;
207 202
208 typedef SkRefCnt INHERITED; 203 typedef SkRefCnt INHERITED;
209 }; 204 };
210 205
211 #endif 206 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrOptDrawState.cpp ('k') | src/gpu/gl/GrGLProgram.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698