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

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

Issue 674543004: OptState owns program descriptor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
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 GrGLNvprProgramBuilder_DEFINED 8 #ifndef GrGLNvprProgramBuilder_DEFINED
9 #define GrGLNvprProgramBuilder_DEFINED 9 #define GrGLNvprProgramBuilder_DEFINED
10 10
11 #include "GrGLProgramBuilder.h" 11 #include "GrGLProgramBuilder.h"
12 12
13 class GrGLNvprProgramBuilder : public GrGLProgramBuilder { 13 class GrGLNvprProgramBuilder : public GrGLProgramBuilder {
14 public: 14 public:
15 GrGLNvprProgramBuilder(GrGpuGL*, const GrOptDrawState&, const GrGLProgramDes c&); 15 GrGLNvprProgramBuilder(GrGpuGL*, const GrOptDrawState&);
16 16
17 /* 17 /*
18 * The separable varying info must be passed to GrGLProgram so this must 18 * The separable varying info must be passed to GrGLProgram so this must
19 * be part of the public interface 19 * be part of the public interface
20 */ 20 */
21 struct SeparableVaryingInfo { 21 struct SeparableVaryingInfo {
22 GrGLShaderVar fVariable; 22 GrGLShaderVar fVariable;
23 GrGLint fLocation; 23 GrGLint fLocation;
24 }; 24 };
25 25
(...skipping 21 matching lines...) Expand all
47 const char** fsInName); 47 const char** fsInName);
48 48
49 void resolveSeparableVaryings(GrGLuint programId); 49 void resolveSeparableVaryings(GrGLuint programId);
50 50
51 SeparableVaryingInfoArray fSeparableVaryingInfos; 51 SeparableVaryingInfoArray fSeparableVaryingInfos;
52 52
53 typedef GrGLProgramBuilder INHERITED; 53 typedef GrGLProgramBuilder INHERITED;
54 }; 54 };
55 55
56 #endif 56 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698