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

Side by Side Diff: src/gpu/gl/GrGLProgramDesc.cpp

Issue 956363003: Cleanup in GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix Created 5 years, 9 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/GrStencilAndCoverTextContext.h ('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 2013 Google Inc. 2 * Copyright 2013 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 #include "GrGLProgramDesc.h" 7 #include "GrGLProgramDesc.h"
8 8
9 #include "GrGLProcessor.h" 9 #include "GrGLProcessor.h"
10 #include "GrProcessor.h" 10 #include "GrProcessor.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 memset(header, 0, kHeaderSize); 135 memset(header, 0, kHeaderSize);
136 136
137 if (pipeline.readsFragPosition()) { 137 if (pipeline.readsFragPosition()) {
138 header->fFragPosKey = 138 header->fFragPosKey =
139 GrGLFragmentShaderBuilder::KeyForFragmentPosition(pipeline.getRe nderTarget(), 139 GrGLFragmentShaderBuilder::KeyForFragmentPosition(pipeline.getRe nderTarget(),
140 gpu->glCaps()) ; 140 gpu->glCaps()) ;
141 } else { 141 } else {
142 header->fFragPosKey = 0; 142 header->fFragPosKey = 0;
143 } 143 }
144 144
145 header->fColorEffectCnt = pipeline.numColorStages(); 145 header->fColorEffectCnt = pipeline.numColorFragmentStages();
146 header->fCoverageEffectCnt = pipeline.numCoverageStages(); 146 header->fCoverageEffectCnt = pipeline.numCoverageFragmentStages();
147 desc->finalize(); 147 desc->finalize();
148 return true; 148 return true;
149 } 149 }
OLDNEW
« no previous file with comments | « src/gpu/GrStencilAndCoverTextContext.h ('k') | src/gpu/gl/builders/GrGLProgramBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698