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

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

Issue 735363003: dstCopy on optdrawstate (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 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
« no previous file with comments | « src/gpu/GrTest.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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 122 }
123 } 123 }
124 }; 124 };
125 125
126 /** 126 /**
127 * This function uploads uniforms and calls each GrGLProcessor's setData. It is called before a 127 * This function uploads uniforms and calls each GrGLProcessor's setData. It is called before a
128 * draw occurs using the program after the program has already been bound. I t also uses the 128 * draw occurs using the program after the program has already been bound. I t also uses the
129 * GrGpuGL object to bind the textures required by the GrGLProcessors. The c olor and coverage 129 * GrGpuGL object to bind the textures required by the GrGLProcessors. The c olor and coverage
130 * stages come from GrGLProgramDesc::Build(). 130 * stages come from GrGLProgramDesc::Build().
131 */ 131 */
132 void setData(const GrOptDrawState&, 132 void setData(const GrOptDrawState&, GrGpu::DrawType);
133 GrGpu::DrawType,
134 const GrDeviceCoordTexture* dstCopy /* can be NULL*/);
135 133
136 protected: 134 protected:
137 typedef GrGLProgramDataManager::UniformHandle UniformHandle; 135 typedef GrGLProgramDataManager::UniformHandle UniformHandle;
138 typedef GrGLProgramDataManager::UniformInfoArray UniformInfoArray; 136 typedef GrGLProgramDataManager::UniformInfoArray UniformInfoArray;
139 137
140 GrGLProgram(GrGpuGL*, 138 GrGLProgram(GrGpuGL*,
141 const GrProgramDesc&, 139 const GrProgramDesc&,
142 const BuiltinUniformHandles&, 140 const BuiltinUniformHandles&,
143 GrGLuint programID, 141 GrGLuint programID,
144 const UniformInfoArray&, 142 const UniformInfoArray&,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 GrGLInstalledFragProc*) SK_OVERRIDE; 259 GrGLInstalledFragProc*) SK_OVERRIDE;
262 260
263 int fTexCoordSetCnt; 261 int fTexCoordSetCnt;
264 262
265 friend class GrGLLegacyNvprProgramBuilder; 263 friend class GrGLLegacyNvprProgramBuilder;
266 264
267 typedef GrGLNvprProgramBase INHERITED; 265 typedef GrGLNvprProgramBase INHERITED;
268 }; 266 };
269 267
270 #endif 268 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrTest.cpp ('k') | src/gpu/gl/GrGLProgram.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698