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

Side by Side Diff: src/gpu/gl/GrGLProgramDataManager.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/GrGLProgram.h ('k') | src/gpu/gl/GrGLProgramDataManager.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 2012 Google Inc. 2 * Copyright 2012 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 GrGLProgramDataManager_DEFINED 8 #ifndef GrGLProgramDataManager_DEFINED
9 #define GrGLProgramDataManager_DEFINED 9 #define GrGLProgramDataManager_DEFINED
10 10
11 #include "glsl/GrGLSLProgramDataManager.h" 11 #include "glsl/GrGLSLProgramDataManager.h"
12 12
13 #include "GrAllocator.h" 13 #include "GrAllocator.h"
14 #include "gl/GrGLTypes.h" 14 #include "gl/GrGLTypes.h"
15 #include "glsl/GrGLSLShaderVar.h" 15 #include "glsl/GrGLSLShaderVar.h"
16 16
17 #include "SkTArray.h" 17 #include "SkTArray.h"
18 18
19 class GrGLGpu; 19 class GrGLGpu;
20 class SkMatrix; 20 class SkMatrix;
21 class GrGLProgram; 21 class GrGLProgram;
22 class GrGLProgramBuilder;
23 22
24 /** Manages the resources used by a shader program. 23 /** Manages the resources used by a shader program.
25 * The resources are objects the program uses to communicate with the 24 * The resources are objects the program uses to communicate with the
26 * application code. 25 * application code.
27 */ 26 */
28 class GrGLProgramDataManager : public GrGLSLProgramDataManager { 27 class GrGLProgramDataManager : public GrGLSLProgramDataManager {
29 public: 28 public:
30 struct UniformInfo { 29 struct UniformInfo {
31 GrGLSLShaderVar fVariable; 30 GrGLSLShaderVar fVariable;
32 uint32_t fVisibility; 31 uint32_t fVisibility;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 102
104 SkTArray<Uniform, true> fUniforms; 103 SkTArray<Uniform, true> fUniforms;
105 SkTArray<PathProcVarying, true> fPathProcVaryings; 104 SkTArray<PathProcVarying, true> fPathProcVaryings;
106 GrGLGpu* fGpu; 105 GrGLGpu* fGpu;
107 GrGLuint fProgramID; 106 GrGLuint fProgramID;
108 107
109 typedef GrGLSLProgramDataManager INHERITED; 108 typedef GrGLSLProgramDataManager INHERITED;
110 }; 109 };
111 110
112 #endif 111 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProgram.h ('k') | src/gpu/gl/GrGLProgramDataManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698