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

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

Issue 1332923003: Remove batchtracker (Closed) Base URL: https://skia.googlesource.com/skia.git@latecreatepathprocessor
Patch Set: tweaks Created 5 years, 3 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 | « src/gpu/gl/GrGLPrimitiveProcessor.h ('k') | 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 87 }
88 } 88 }
89 }; 89 };
90 90
91 /** 91 /**
92 * This function uploads uniforms, calls each GrGLProcessor's setData, and r etrieves the 92 * This function uploads uniforms, calls each GrGLProcessor's setData, and r etrieves the
93 * textures that need to be bound on each unit. It is the caller's responsib ility to ensure 93 * textures that need to be bound on each unit. It is the caller's responsib ility to ensure
94 * the program is bound before calling, and to bind the outgoing textures to their respective 94 * the program is bound before calling, and to bind the outgoing textures to their respective
95 * units upon return. (Each index in the array corresponds to its matching G L texture unit.) 95 * units upon return. (Each index in the array corresponds to its matching G L texture unit.)
96 */ 96 */
97 void setData(const GrPrimitiveProcessor&, const GrPipeline&, const GrBatchTr acker&, 97 void setData(const GrPrimitiveProcessor&, const GrPipeline&,
98 SkTArray<const GrTextureAccess*>* textureBindings); 98 SkTArray<const GrTextureAccess*>* textureBindings);
99 99
100 protected: 100 protected:
101 typedef GrGLProgramDataManager::UniformHandle UniformHandle; 101 typedef GrGLProgramDataManager::UniformHandle UniformHandle;
102 typedef GrGLProgramDataManager::UniformInfoArray UniformInfoArray; 102 typedef GrGLProgramDataManager::UniformInfoArray UniformInfoArray;
103 103
104 GrGLProgram(GrGLGpu*, 104 GrGLProgram(GrGLGpu*,
105 const GrProgramDesc&, 105 const GrProgramDesc&,
106 const BuiltinUniformHandles&, 106 const BuiltinUniformHandles&,
107 GrGLuint programID, 107 GrGLuint programID,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 GrGLGpu* fGpu; 146 GrGLGpu* fGpu;
147 GrGLProgramDataManager fProgramDataManager; 147 GrGLProgramDataManager fProgramDataManager;
148 SkTArray<UniformHandle> fSamplerUniforms; 148 SkTArray<UniformHandle> fSamplerUniforms;
149 149
150 friend class GrGLProgramBuilder; 150 friend class GrGLProgramBuilder;
151 151
152 typedef SkRefCnt INHERITED; 152 typedef SkRefCnt INHERITED;
153 }; 153 };
154 154
155 #endif 155 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLPrimitiveProcessor.h ('k') | src/gpu/gl/GrGLProgram.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698