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

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

Issue 509153002: Initial change to create GeometryProcessor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: last warning Created 6 years, 3 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/GrGpuGL_program.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 #ifndef GrGpuGL_DEFINED 8 #ifndef GrGpuGL_DEFINED
9 #define GrGpuGL_DEFINED 9 #define GrGpuGL_DEFINED
10 10
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 static bool BlendCoeffReferencesConstant(GrBlendCoeff coeff); 173 static bool BlendCoeffReferencesConstant(GrBlendCoeff coeff);
174 174
175 class ProgramCache : public ::SkNoncopyable { 175 class ProgramCache : public ::SkNoncopyable {
176 public: 176 public:
177 ProgramCache(GrGpuGL* gpu); 177 ProgramCache(GrGpuGL* gpu);
178 ~ProgramCache(); 178 ~ProgramCache();
179 179
180 void abandon(); 180 void abandon();
181 GrGLProgram* getProgram(const GrGLProgramDesc& desc, 181 GrGLProgram* getProgram(const GrGLProgramDesc& desc,
182 const GrEffectStage* geometryProcessor,
182 const GrEffectStage* colorStages[], 183 const GrEffectStage* colorStages[],
183 const GrEffectStage* coverageStages[]); 184 const GrEffectStage* coverageStages[]);
184 185
185 private: 186 private:
186 enum { 187 enum {
187 // We may actually have kMaxEntries+1 shaders in the GL context beca use we create a new 188 // We may actually have kMaxEntries+1 shaders in the GL context beca use we create a new
188 // shader before evicting from the cache. 189 // shader before evicting from the cache.
189 kMaxEntries = 128, 190 kMaxEntries = 128,
190 kHashBits = 6, 191 kHashBits = 6,
191 }; 192 };
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 438
438 // we record what stencil format worked last time to hopefully exit early 439 // we record what stencil format worked last time to hopefully exit early
439 // from our loop that tries stencil formats and calls check fb status. 440 // from our loop that tries stencil formats and calls check fb status.
440 int fLastSuccessfulStencilFmtIdx; 441 int fLastSuccessfulStencilFmtIdx;
441 442
442 typedef GrGpu INHERITED; 443 typedef GrGpu INHERITED;
443 friend class GrGLPathRendering; // For accessing setTextureUnit. 444 friend class GrGLPathRendering; // For accessing setTextureUnit.
444 }; 445 };
445 446
446 #endif 447 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProgramEffects.cpp ('k') | src/gpu/gl/GrGpuGL_program.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698