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

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

Issue 637003003: Opt state takes a GP instead of a GeometryStage (Closed) Base URL: https://skia.googlesource.com/skia.git@builder_cleanup
Patch Set: memory leaks fixed Created 6 years, 2 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/GrGpuGL_program.cpp ('k') | src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.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 GrGLLegacyNvprProgramBuilder_DEFINED 8 #ifndef GrGLLegacyNvprProgramBuilder_DEFINED
9 #define GrGLLegacyNvprProgramBuilder_DEFINED 9 #define GrGLLegacyNvprProgramBuilder_DEFINED
10 10
11 #include "GrGLProgramBuilder.h" 11 #include "GrGLProgramBuilder.h"
12 12
13 class GrGLLegacyNvprProgramBuilder : public GrGLProgramBuilder { 13 class GrGLLegacyNvprProgramBuilder : public GrGLProgramBuilder {
14 public: 14 public:
15 GrGLLegacyNvprProgramBuilder(GrGpuGL*, const GrOptDrawState&, const GrGLProg ramDesc&); 15 GrGLLegacyNvprProgramBuilder(GrGpuGL*, const GrOptDrawState&, const GrGLProg ramDesc&);
16 16
17 virtual GrGLProgram* createProgram(GrGLuint programID); 17 virtual GrGLProgram* createProgram(GrGLuint programID);
18 18
19 private: 19 private:
20 int addTexCoordSets(int count); 20 int addTexCoordSets(int count);
21 void emitTransforms(const GrProcessorStage&, 21 void emitTransforms(const GrFragmentStage&,
22 GrGLProcessor::TransformedCoordsArray* outCoords, 22 GrGLProcessor::TransformedCoordsArray* outCoords,
23 GrGLInstalledProcessors*); 23 GrGLInstalledFragProc*);
24 24
25 int fTexCoordSetCnt; 25 int fTexCoordSetCnt;
26 26
27 typedef GrGLProgramBuilder INHERITED; 27 typedef GrGLProgramBuilder INHERITED;
28 }; 28 };
29 29
30 #endif 30 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGpuGL_program.cpp ('k') | src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698