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

Side by Side Diff: src/gpu/vk/GrVkPipelineStateBuilder.cpp

Issue 2318523006: Merge GrGLSLProgramDesc into GrProgramDesc (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update comments 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/vk/GrVkPipelineStateBuilder.h ('k') | src/gpu/vk/GrVkPipelineStateCache.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 2016 Google Inc. 2 * Copyright 2016 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 #include "vk/GrVkPipelineStateBuilder.h" 8 #include "vk/GrVkPipelineStateBuilder.h"
9 9
10 #include "vk/GrVkDescriptorSetManager.h" 10 #include "vk/GrVkDescriptorSetManager.h"
(...skipping 21 matching lines...) Expand all
32 builder.cleanupFragmentProcessors(); 32 builder.cleanupFragmentProcessors();
33 return nullptr; 33 return nullptr;
34 } 34 }
35 35
36 return builder.finalize(primitiveType, renderPass, desc); 36 return builder.finalize(primitiveType, renderPass, desc);
37 } 37 }
38 38
39 GrVkPipelineStateBuilder::GrVkPipelineStateBuilder(GrVkGpu* gpu, 39 GrVkPipelineStateBuilder::GrVkPipelineStateBuilder(GrVkGpu* gpu,
40 const GrPipeline& pipeline, 40 const GrPipeline& pipeline,
41 const GrPrimitiveProcessor& p rimProc, 41 const GrPrimitiveProcessor& p rimProc,
42 const GrGLSLProgramDesc& desc ) 42 const GrProgramDesc& desc)
43 : INHERITED(pipeline, primProc, desc) 43 : INHERITED(pipeline, primProc, desc)
44 , fGpu(gpu) 44 , fGpu(gpu)
45 , fVaryingHandler(this) 45 , fVaryingHandler(this)
46 , fUniformHandler(this) { 46 , fUniformHandler(this) {
47 } 47 }
48 48
49 const GrCaps* GrVkPipelineStateBuilder::caps() const { 49 const GrCaps* GrVkPipelineStateBuilder::caps() const {
50 return fGpu->caps(); 50 return fGpu->caps();
51 } 51 }
52 const GrGLSLCaps* GrVkPipelineStateBuilder::glslCaps() const { 52 const GrGLSLCaps* GrVkPipelineStateBuilder::glslCaps() const {
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 fUniformHandles, 259 fUniformHandles,
260 fUniformHandler.fUniforms, 260 fUniformHandler.fUniforms,
261 fUniformHandler.fCurrentVertexUBOOffset, 261 fUniformHandler.fCurrentVertexUBOOffset,
262 fUniformHandler.fCurrentFragmentUBOOffset, 262 fUniformHandler.fCurrentFragmentUBOOffset,
263 (uint32_t)fUniformHandler.numSamplers(), 263 (uint32_t)fUniformHandler.numSamplers(),
264 fGeometryProcessor, 264 fGeometryProcessor,
265 fXferProcessor, 265 fXferProcessor,
266 fFragmentProcessors); 266 fFragmentProcessors);
267 } 267 }
268 268
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkPipelineStateBuilder.h ('k') | src/gpu/vk/GrVkPipelineStateCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698