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

Side by Side Diff: src/gpu/gl/builders/GrGLProgramBuilder.h

Issue 1434313002: Make all GrFragmentProcessors GL independent. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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/gl/GrGLUtil.cpp ('k') | src/gpu/gl/builders/GrGLProgramBuilder.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 2014 Google Inc. 2 * Copyright 2014 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 GrGLProgramBuilder_DEFINED 8 #ifndef GrGLProgramBuilder_DEFINED
9 #define GrGLProgramBuilder_DEFINED 9 #define GrGLProgramBuilder_DEFINED
10 10
(...skipping 14 matching lines...) Expand all
25 * The below struct represent processors installed in programs. 25 * The below struct represent processors installed in programs.
26 */ 26 */
27 template <class Proc> 27 template <class Proc>
28 struct GrGLInstalledProc { 28 struct GrGLInstalledProc {
29 SkDEBUGCODE(int fSamplersIdx;) 29 SkDEBUGCODE(int fSamplersIdx;)
30 SkAutoTDelete<Proc> fGLProc; 30 SkAutoTDelete<Proc> fGLProc;
31 }; 31 };
32 32
33 typedef GrGLInstalledProc<GrGLPrimitiveProcessor> GrGLInstalledGeoProc; 33 typedef GrGLInstalledProc<GrGLPrimitiveProcessor> GrGLInstalledGeoProc;
34 typedef GrGLInstalledProc<GrGLXferProcessor> GrGLInstalledXferProc; 34 typedef GrGLInstalledProc<GrGLXferProcessor> GrGLInstalledXferProc;
35 typedef GrGLInstalledProc<GrGLFragmentProcessor> GrGLInstalledFragProc; 35 typedef GrGLInstalledProc<GrGLSLFragmentProcessor> GrGLInstalledFragProc;
36 36
37 struct GrGLInstalledFragProcs : public SkRefCnt { 37 struct GrGLInstalledFragProcs : public SkRefCnt {
38 virtual ~GrGLInstalledFragProcs(); 38 virtual ~GrGLInstalledFragProcs();
39 SkSTArray<8, GrGLInstalledFragProc*, true> fProcs; 39 SkSTArray<8, GrGLInstalledFragProc*, true> fProcs;
40 }; 40 };
41 41
42 /* 42 /*
43 * Please note - no diamond problems because of virtual inheritance. Also, both base classes 43 * Please note - no diamond problems because of virtual inheritance. Also, both base classes
44 * are pure virtual with no data members. This is the base class for program bu ilding. 44 * are pure virtual with no data members. This is the base class for program bu ilding.
45 * Subclasses are nearly identical but each has their own way of emitting transf orms. State for 45 * Subclasses are nearly identical but each has their own way of emitting transf orms. State for
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 SeparableVaryingInfoArray fSeparableVaryingInfos; 182 SeparableVaryingInfoArray fSeparableVaryingInfos;
183 183
184 friend class GrGLSLShaderBuilder; 184 friend class GrGLSLShaderBuilder;
185 friend class GrGLSLVertexBuilder; 185 friend class GrGLSLVertexBuilder;
186 friend class GrGLSLFragmentShaderBuilder; 186 friend class GrGLSLFragmentShaderBuilder;
187 friend class GrGLSLGeometryBuilder; 187 friend class GrGLSLGeometryBuilder;
188 188
189 typedef GrGLSLProgramBuilder INHERITED; 189 typedef GrGLSLProgramBuilder INHERITED;
190 }; 190 };
191 #endif 191 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLUtil.cpp ('k') | src/gpu/gl/builders/GrGLProgramBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698