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

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

Issue 2339203002: Stop flattening GrCoordTransforms in parent GrFragmentProcessors. (Closed)
Patch Set: Fix issue of taking ref to a temporary Created 4 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/effects/GrDistanceFieldGeoProc.cpp ('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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 GrGLuint programID, 113 GrGLuint programID,
114 const UniformInfoArray&, 114 const UniformInfoArray&,
115 const SkTArray<GrGLSampler>&, 115 const SkTArray<GrGLSampler>&,
116 const VaryingInfoArray&, // used for NVPR only currently 116 const VaryingInfoArray&, // used for NVPR only currently
117 GrGLSLPrimitiveProcessor* geometryProcessor, 117 GrGLSLPrimitiveProcessor* geometryProcessor,
118 GrGLSLXferProcessor* xferProcessor, 118 GrGLSLXferProcessor* xferProcessor,
119 const GrGLSLFragProcs& fragmentProcessors); 119 const GrGLSLFragProcs& fragmentProcessors);
120 120
121 // A helper to loop over effects, set the transforms (via subclass) and bind textures 121 // A helper to loop over effects, set the transforms (via subclass) and bind textures
122 void setFragmentData(const GrPrimitiveProcessor&, const GrPipeline&, int* ne xtSamplerIdx); 122 void setFragmentData(const GrPrimitiveProcessor&, const GrPipeline&, int* ne xtSamplerIdx);
123 void setTransformData(const GrPrimitiveProcessor&, const GrFragmentProcessor &, int index);
124 123
125 // Helper for setData() that sets the view matrix and loads the render targe t height uniform 124 // Helper for setData() that sets the view matrix and loads the render targe t height uniform
126 void setRenderTargetState(const GrPrimitiveProcessor&, const GrPipeline&); 125 void setRenderTargetState(const GrPrimitiveProcessor&, const GrPipeline&);
127 126
128 // Helper for setData() that binds textures and texel buffers to the appropr iate texture units 127 // Helper for setData() that binds textures and texel buffers to the appropr iate texture units
129 void bindTextures(const GrProcessor&, bool allowSRGBInputs, int* nextSampler Idx); 128 void bindTextures(const GrProcessor&, bool allowSRGBInputs, int* nextSampler Idx);
130 129
131 // Helper for generateMipmaps() that ensures mipmaps are up to date 130 // Helper for generateMipmaps() that ensures mipmaps are up to date
132 void generateMipmaps(const GrProcessor&, bool allowSRGBInputs); 131 void generateMipmaps(const GrProcessor&, bool allowSRGBInputs);
133 132
(...skipping 10 matching lines...) Expand all
144 GrProgramDesc fDesc; 143 GrProgramDesc fDesc;
145 GrGLGpu* fGpu; 144 GrGLGpu* fGpu;
146 GrGLProgramDataManager fProgramDataManager; 145 GrGLProgramDataManager fProgramDataManager;
147 146
148 friend class GrGLProgramBuilder; 147 friend class GrGLProgramBuilder;
149 148
150 typedef SkRefCnt INHERITED; 149 typedef SkRefCnt INHERITED;
151 }; 150 };
152 151
153 #endif 152 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrDistanceFieldGeoProc.cpp ('k') | src/gpu/gl/GrGLProgram.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698