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

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

Issue 628293002: Plumb OptDrawState down to VertexShaderBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « no previous file | 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 22 matching lines...) Expand all
33 * Uniforms are program-local so we can't rely on fHWState to hold the 33 * Uniforms are program-local so we can't rely on fHWState to hold the
34 * previous uniform state after a program change. 34 * previous uniform state after a program change.
35 */ 35 */
36 class GrGLProgram : public SkRefCnt { 36 class GrGLProgram : public SkRefCnt {
37 public: 37 public:
38 SK_DECLARE_INST_COUNT(GrGLProgram) 38 SK_DECLARE_INST_COUNT(GrGLProgram)
39 39
40 typedef GrGLProgramBuilder::BuiltinUniformHandles BuiltinUniformHandles; 40 typedef GrGLProgramBuilder::BuiltinUniformHandles BuiltinUniformHandles;
41 41
42 static GrGLProgram* Create(GrGpuGL* gpu, 42 static GrGLProgram* Create(GrGpuGL* gpu,
43 const GrOptDrawState& optState,
43 const GrGLProgramDesc& desc, 44 const GrGLProgramDesc& desc,
44 const GrGeometryStage* geometryProcessor, 45 const GrGeometryStage* geometryProcessor,
45 const GrFragmentStage* colorStages[], 46 const GrFragmentStage* colorStages[],
46 const GrFragmentStage* coverageStages[]); 47 const GrFragmentStage* coverageStages[]);
47 48
48 virtual ~GrGLProgram(); 49 virtual ~GrGLProgram();
49 50
50 /** 51 /**
51 * Call to abandon GL objects owned by this program. 52 * Call to abandon GL objects owned by this program.
52 */ 53 */
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 198
198 GrGLProgramDesc fDesc; 199 GrGLProgramDesc fDesc;
199 GrGpuGL* fGpu; 200 GrGpuGL* fGpu;
200 201
201 GrGLProgramDataManager fProgramDataManager; 202 GrGLProgramDataManager fProgramDataManager;
202 203
203 typedef SkRefCnt INHERITED; 204 typedef SkRefCnt INHERITED;
204 }; 205 };
205 206
206 #endif 207 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLProgram.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698