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

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

Issue 808593003: Rename GrGpuGL to GrGLGpu for consistency (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years 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/GrGLProgramDesc.h ('k') | src/gpu/gl/GrGLRenderTarget.h » ('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 135
136 uint32_t* key = b->add32n(2); 136 uint32_t* key = b->add32n(2);
137 key[0] = (textureKey << 16 | transformKey); 137 key[0] = (textureKey << 16 | transformKey);
138 key[1] = (classID << 16 | SkToU16(processorKeySize)); 138 key[1] = (classID << 16 | SkToU16(processorKeySize));
139 return true; 139 return true;
140 } 140 }
141 141
142 bool GrGLProgramDescBuilder::Build(const GrOptDrawState& optState, 142 bool GrGLProgramDescBuilder::Build(const GrOptDrawState& optState,
143 const GrProgramDesc::DescInfo& descInfo, 143 const GrProgramDesc::DescInfo& descInfo,
144 GrGpu::DrawType drawType, 144 GrGpu::DrawType drawType,
145 GrGpuGL* gpu, 145 GrGLGpu* gpu,
146 GrProgramDesc* desc) { 146 GrProgramDesc* desc) {
147 // The descriptor is used as a cache key. Thus when a field of the 147 // The descriptor is used as a cache key. Thus when a field of the
148 // descriptor will not affect program generation (because of the attribute 148 // descriptor will not affect program generation (because of the attribute
149 // bindings in use or other descriptor field settings) it should be set 149 // bindings in use or other descriptor field settings) it should be set
150 // to a canonical value to avoid duplicate programs with different keys. 150 // to a canonical value to avoid duplicate programs with different keys.
151 151
152 bool requiresLocalCoordAttrib = descInfo.fRequiresLocalCoordAttrib; 152 bool requiresLocalCoordAttrib = descInfo.fRequiresLocalCoordAttrib;
153 153
154 GR_STATIC_ASSERT(0 == kProcessorKeysOffset % sizeof(uint32_t)); 154 GR_STATIC_ASSERT(0 == kProcessorKeysOffset % sizeof(uint32_t));
155 // Make room for everything up to the effect keys. 155 // Make room for everything up to the effect keys.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 gpu->glCaps()) ; 219 gpu->glCaps()) ;
220 } else { 220 } else {
221 header->fFragPosKey = 0; 221 header->fFragPosKey = 0;
222 } 222 }
223 223
224 header->fColorEffectCnt = optState.numColorStages(); 224 header->fColorEffectCnt = optState.numColorStages();
225 header->fCoverageEffectCnt = optState.numCoverageStages(); 225 header->fCoverageEffectCnt = optState.numCoverageStages();
226 desc->finalize(); 226 desc->finalize();
227 return true; 227 return true;
228 } 228 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProgramDesc.h ('k') | src/gpu/gl/GrGLRenderTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698