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

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

Issue 1490283004: Create GLSLUniformHandler class for gpu backend (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clean up public api of uniformhandler Created 5 years 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/GrGLUniformHandler.cpp ('k') | src/gpu/gl/builders/GrGLProgramBuilder.h » ('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 2015 Google Inc. 2 * Copyright 2015 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 GrGLVaryingHandler_DEFINED 8 #ifndef GrGLVaryingHandler_DEFINED
9 #define GrGLVaryingHandler_DEFINED 9 #define GrGLVaryingHandler_DEFINED
10 10
11 #include "glsl/GrGLSLVarying.h" 11 #include "glsl/GrGLSLVarying.h"
12 #include "GrTypesPriv.h" 12 #include "GrTypesPriv.h"
13 #include "gl/GrGLProgramDataManager.h" 13 #include "gl/GrGLProgramDataManager.h"
14 14
15 class GrGLVaryingHandler : public GrGLSLVaryingHandler { 15 class GrGLVaryingHandler : public GrGLSLVaryingHandler {
16 public: 16 public:
17 GrGLVaryingHandler(GrGLSLProgramBuilder* program) 17 GrGLVaryingHandler(GrGLSLProgramBuilder* program)
18 : INHERITED(program), 18 : INHERITED(program),
19 fPathProcVaryingInfos(kVaryingsPerBlock) {} 19 fPathProcVaryingInfos(kVaryingsPerBlock) {}
20 20
21 // This function is used by the NVPR PathProcessor to add a varying directly into the fragment 21 // This function is used by the NVPR PathProcessor to add a varying directly into the fragment
22 // shader since there is no vertex shader. 22 // shader since there is no vertex shader.
23 VaryingHandle addPathProcessingVarying(const char* name, GrGLSLVertToFrag*, 23 VaryingHandle addPathProcessingVarying(const char* name, GrGLSLVertToFrag*,
24 GrSLPrecision fsPrecision = kDefault_GrSL Precision); 24 GrSLPrecision fsPrecision = kDefault_ GrSLPrecision);
25 25
26 private: 26 private:
27 typedef GrGLProgramDataManager::VaryingInfo VaryingInfo; 27 typedef GrGLProgramDataManager::VaryingInfo VaryingInfo;
28 typedef GrGLProgramDataManager::VaryingInfoArray VaryingInfoArray; 28 typedef GrGLProgramDataManager::VaryingInfoArray VaryingInfoArray;
29 29
30 VaryingInfoArray fPathProcVaryingInfos; 30 VaryingInfoArray fPathProcVaryingInfos;
31 31
32 friend class GrGLProgramBuilder; 32 friend class GrGLProgramBuilder;
33 33
34 typedef GrGLSLVaryingHandler INHERITED; 34 typedef GrGLSLVaryingHandler INHERITED;
35 }; 35 };
36 36
37 #endif 37 #endif
38 38
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLUniformHandler.cpp ('k') | src/gpu/gl/builders/GrGLProgramBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698