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

Side by Side Diff: src/gpu/vk/GrVkPipelineState.h

Issue 1970293002: Support allowSRGBInputs on Vulkan (via secondary texture views) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: default case for switch Created 4 years, 7 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/GrVkCaps.cpp ('k') | src/gpu/vk/GrVkPipelineState.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 8
9 #ifndef GrVkPipelineState_DEFINED 9 #ifndef GrVkPipelineState_DEFINED
10 #define GrVkPipelineState_DEFINED 10 #define GrVkPipelineState_DEFINED
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 GrVkDescriptorPool* fPool; 193 GrVkDescriptorPool* fPool;
194 194
195 private: 195 private:
196 static const uint32_t kMaxDescLimit = 1 << 10; 196 static const uint32_t kMaxDescLimit = 1 << 10;
197 197
198 void getNewPool(GrVkGpu* gpu); 198 void getNewPool(GrVkGpu* gpu);
199 }; 199 };
200 200
201 void writeUniformBuffers(const GrVkGpu* gpu); 201 void writeUniformBuffers(const GrVkGpu* gpu);
202 202
203 void writeSamplers(GrVkGpu* gpu, const SkTArray<const GrTextureAccess*>& tex tureBindings); 203 void writeSamplers(GrVkGpu* gpu, const SkTArray<const GrTextureAccess*>& tex tureBindings,
204 bool allowSRGBInputs);
204 205
205 /** 206 /**
206 * We use the RT's size and origin to adjust from Skia device space to vulkan normalized device 207 * We use the RT's size and origin to adjust from Skia device space to vulkan normalized device
207 * space and to make device space positions have the correct origin for proce ssors that require 208 * space and to make device space positions have the correct origin for proce ssors that require
208 * them. 209 * them.
209 */ 210 */
210 struct RenderTargetState { 211 struct RenderTargetState {
211 SkISize fRenderTargetSize; 212 SkISize fRenderTargetSize;
212 GrSurfaceOrigin fRenderTargetOrigin; 213 GrSurfaceOrigin fRenderTargetOrigin;
213 214
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 283
283 DescriptorPoolManager fSamplerPoolManager; 284 DescriptorPoolManager fSamplerPoolManager;
284 const GrVkDescriptorPool* fCurrentUniformDescPool; 285 const GrVkDescriptorPool* fCurrentUniformDescPool;
285 286
286 int fNumSamplers; 287 int fNumSamplers;
287 288
288 friend class GrVkPipelineStateBuilder; 289 friend class GrVkPipelineStateBuilder;
289 }; 290 };
290 291
291 #endif 292 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkCaps.cpp ('k') | src/gpu/vk/GrVkPipelineState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698