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

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

Issue 827973002: ViewMatrix uniform upload moved to GeometryProcessor (Closed) Base URL: https://skia.googlesource.com/skia.git@vm-on-gp
Patch Set: feedback inc Created 5 years, 11 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/GrGLProgram.cpp ('k') | src/gpu/gl/builders/GrGLProgramBuilder.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 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 GrGLProgramBuilder_DEFINED 8 #ifndef GrGLProgramBuilder_DEFINED
9 #define GrGLProgramBuilder_DEFINED 9 #define GrGLProgramBuilder_DEFINED
10 10
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 const char* name, 233 const char* name,
234 GrGLVarying*, 234 GrGLVarying*,
235 GrSLPrecision fsPrecision = kDefault_GrSLPrecision) SK_OVERRIDE; 235 GrSLPrecision fsPrecision = kDefault_GrSLPrecision) SK_OVERRIDE;
236 236
237 void addPassThroughAttribute(const GrGeometryProcessor::GrAttribute*, 237 void addPassThroughAttribute(const GrGeometryProcessor::GrAttribute*,
238 const char* output) SK_OVERRIDE; 238 const char* output) SK_OVERRIDE;
239 239
240 240
241 // Handles for program uniforms (other than per-effect uniforms) 241 // Handles for program uniforms (other than per-effect uniforms)
242 struct BuiltinUniformHandles { 242 struct BuiltinUniformHandles {
243 UniformHandle fViewMatrixUni;
244 UniformHandle fRTAdjustmentUni; 243 UniformHandle fRTAdjustmentUni;
245 244
246 // We use the render target height to provide a y-down frag coord when s pecifying 245 // We use the render target height to provide a y-down frag coord when s pecifying
247 // origin_upper_left is not supported. 246 // origin_upper_left is not supported.
248 UniformHandle fRTHeightUni; 247 UniformHandle fRTHeightUni;
249 248
250 // Uniforms for computing texture coords to do the dst-copy lookup 249 // Uniforms for computing texture coords to do the dst-copy lookup
251 UniformHandle fDstCopyTopLeftUni; 250 UniformHandle fDstCopyTopLeftUni;
252 UniformHandle fDstCopyScaleUni; 251 UniformHandle fDstCopyScaleUni;
253 UniformHandle fDstCopySamplerUni; 252 UniformHandle fDstCopySamplerUni;
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 SkAutoTDelete<GrGLFragmentProcessor> fGLProc; 436 SkAutoTDelete<GrGLFragmentProcessor> fGLProc;
438 SkSTArray<2, Transform, true> fTransforms; 437 SkSTArray<2, Transform, true> fTransforms;
439 }; 438 };
440 439
441 struct GrGLInstalledFragProcs : public SkRefCnt { 440 struct GrGLInstalledFragProcs : public SkRefCnt {
442 virtual ~GrGLInstalledFragProcs(); 441 virtual ~GrGLInstalledFragProcs();
443 SkSTArray<8, GrGLInstalledFragProc*, true> fProcs; 442 SkSTArray<8, GrGLInstalledFragProc*, true> fProcs;
444 }; 443 };
445 444
446 #endif 445 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProgram.cpp ('k') | src/gpu/gl/builders/GrGLProgramBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698