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

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

Issue 1132093004: Move DstCoordTexture to GrXP, rename and remove the word "copy" from dstcopytexture names. (Closed) Base URL: https://skia.googlesource.com/skia.git@copy
Patch Set: remove asserts Created 5 years, 6 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/effects/GrPorterDuffXferProcessor.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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 virtual void didSetData() {} 131 virtual void didSetData() {}
132 132
133 // Helper for setData() that sets the view matrix and loads the render targe t height uniform 133 // Helper for setData() that sets the view matrix and loads the render targe t height uniform
134 void setRenderTargetState(const GrPrimitiveProcessor&, const GrPipeline&); 134 void setRenderTargetState(const GrPrimitiveProcessor&, const GrPipeline&);
135 virtual void onSetRenderTargetState(const GrPrimitiveProcessor&, const GrPip eline&); 135 virtual void onSetRenderTargetState(const GrPrimitiveProcessor&, const GrPip eline&);
136 136
137 // these reflect the current values of uniforms (GL uniform values travel wi th program) 137 // these reflect the current values of uniforms (GL uniform values travel wi th program)
138 RenderTargetState fRenderTargetState; 138 RenderTargetState fRenderTargetState;
139 GrColor fColor; 139 GrColor fColor;
140 uint8_t fCoverage; 140 uint8_t fCoverage;
141 int fDstCopyTexUnit; 141 int fDstTextureUnit;
142 BuiltinUniformHandles fBuiltinUniformHandles; 142 BuiltinUniformHandles fBuiltinUniformHandles;
143 GrGLuint fProgramID; 143 GrGLuint fProgramID;
144 144
145 // the installed effects 145 // the installed effects
146 SkAutoTDelete<GrGLInstalledGeoProc> fGeometryProcessor; 146 SkAutoTDelete<GrGLInstalledGeoProc> fGeometryProcessor;
147 SkAutoTDelete<GrGLInstalledXferProc> fXferProcessor; 147 SkAutoTDelete<GrGLInstalledXferProc> fXferProcessor;
148 SkAutoTUnref<GrGLInstalledFragProcs> fFragmentProcessors; 148 SkAutoTUnref<GrGLInstalledFragProcs> fFragmentProcessors;
149 149
150 GrProgramDesc fDesc; 150 GrProgramDesc fDesc;
151 GrGLGpu* fGpu; 151 GrGLGpu* fGpu;
(...skipping 29 matching lines...) Expand all
181 int index, 181 int index,
182 GrGLInstalledFragProc*) override; 182 GrGLInstalledFragProc*) override;
183 virtual void onSetRenderTargetState(const GrPrimitiveProcessor&, const GrPip eline&); 183 virtual void onSetRenderTargetState(const GrPrimitiveProcessor&, const GrPip eline&);
184 184
185 friend class GrGLNvprProgramBuilder; 185 friend class GrGLNvprProgramBuilder;
186 186
187 typedef GrGLProgram INHERITED; 187 typedef GrGLProgram INHERITED;
188 }; 188 };
189 189
190 #endif 190 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrPorterDuffXferProcessor.cpp ('k') | src/gpu/gl/GrGLProgram.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698