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

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

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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/GrVkFramebuffer.cpp ('k') | src/gpu/vk/GrVkGpu.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 2015 Google Inc. 2 * Copyright 2015 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 GrVkGpu_DEFINED 8 #ifndef GrVkGpu_DEFINED
9 #define GrVkGpu_DEFINED 9 #define GrVkGpu_DEFINED
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 bool byRegion, 99 bool byRegion,
100 VkMemoryBarrier* barrier) const; 100 VkMemoryBarrier* barrier) const;
101 void addBufferMemoryBarrier(VkPipelineStageFlags srcStageMask, 101 void addBufferMemoryBarrier(VkPipelineStageFlags srcStageMask,
102 VkPipelineStageFlags dstStageMask, 102 VkPipelineStageFlags dstStageMask,
103 bool byRegion, 103 bool byRegion,
104 VkBufferMemoryBarrier* barrier) const; 104 VkBufferMemoryBarrier* barrier) const;
105 void addImageMemoryBarrier(VkPipelineStageFlags srcStageMask, 105 void addImageMemoryBarrier(VkPipelineStageFlags srcStageMask,
106 VkPipelineStageFlags dstStageMask, 106 VkPipelineStageFlags dstStageMask,
107 bool byRegion, 107 bool byRegion,
108 VkImageMemoryBarrier* barrier) const; 108 VkImageMemoryBarrier* barrier) const;
109 109
110 shaderc_compiler_t shadercCompiler() const { 110 shaderc_compiler_t shadercCompiler() const {
111 return fCompiler; 111 return fCompiler;
112 } 112 }
113 113
114 void finishDrawTarget() override; 114 void finishDrawTarget() override;
115 115
116 private: 116 private:
117 GrVkGpu(GrContext* context, const GrContextOptions& options, 117 GrVkGpu(GrContext* context, const GrContextOptions& options,
118 const GrVkBackendContext* backendContext); 118 const GrVkBackendContext* backendContext);
119 119
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 sk_sp<GrVkPipelineState> prepareDrawState(const GrPipeline&, 163 sk_sp<GrVkPipelineState> prepareDrawState(const GrPipeline&,
164 const GrPrimitiveProcessor&, 164 const GrPrimitiveProcessor&,
165 GrPrimitiveType, 165 GrPrimitiveType,
166 const GrVkRenderPass&); 166 const GrVkRenderPass&);
167 167
168 // Bind vertex and index buffers 168 // Bind vertex and index buffers
169 void bindGeometry(const GrPrimitiveProcessor&, const GrNonInstancedMesh&); 169 void bindGeometry(const GrPrimitiveProcessor&, const GrNonInstancedMesh&);
170 170
171 // Ends and submits the current command buffer to the queue and then creates a new command 171 // Ends and submits the current command buffer to the queue and then creates a new command
172 // buffer and begins it. If sync is set to kForce_SyncQueue, the function wi ll wait for all 172 // buffer and begins it. If sync is set to kForce_SyncQueue, the function wi ll wait for all
173 // work in the queue to finish before returning. 173 // work in the queue to finish before returning.
174 void submitCommandBuffer(SyncQueue sync); 174 void submitCommandBuffer(SyncQueue sync);
175 175
176 void copySurfaceAsCopyImage(GrSurface* dst, 176 void copySurfaceAsCopyImage(GrSurface* dst,
177 GrSurface* src, 177 GrSurface* src,
178 const SkIRect& srcRect, 178 const SkIRect& srcRect,
179 const SkIPoint& dstPoint); 179 const SkIPoint& dstPoint);
180 180
181 void copySurfaceAsDraw(GrSurface* dst, 181 void copySurfaceAsDraw(GrSurface* dst,
182 GrSurface* src, 182 GrSurface* src,
(...skipping 29 matching lines...) Expand all
212 212
213 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once 213 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once
214 // since there is significant overhead to the first compile of any compiler. 214 // since there is significant overhead to the first compile of any compiler.
215 shaderc_compiler_t fCompiler; 215 shaderc_compiler_t fCompiler;
216 216
217 217
218 typedef GrGpu INHERITED; 218 typedef GrGpu INHERITED;
219 }; 219 };
220 220
221 #endif 221 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkFramebuffer.cpp ('k') | src/gpu/vk/GrVkGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698