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

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

Issue 1852413002: Implement blit image for copySurface in Vulkan (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/GrVkCommandBuffer.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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Bind vertex and index buffers 167 // Bind vertex and index buffers
168 void bindGeometry(const GrPrimitiveProcessor&, const GrNonInstancedMesh&); 168 void bindGeometry(const GrPrimitiveProcessor&, const GrNonInstancedMesh&);
169 169
170 // Ends and submits the current command buffer to the queue and then creates a new command 170 // Ends and submits the current command buffer to the queue and then creates a new command
171 // buffer and begins it. If sync is set to kForce_SyncQueue, the function wi ll wait for all 171 // buffer and begins it. If sync is set to kForce_SyncQueue, the function wi ll wait for all
172 // work in the queue to finish before returning. 172 // work in the queue to finish before returning.
173 void submitCommandBuffer(SyncQueue sync); 173 void submitCommandBuffer(SyncQueue sync);
174 174
175 void copySurfaceAsCopyImage(GrSurface* dst, 175 void copySurfaceAsCopyImage(GrSurface* dst,
176 GrSurface* src, 176 GrSurface* src,
177 GrVkImage* dstImage,
178 GrVkImage* srcImage,
177 const SkIRect& srcRect, 179 const SkIRect& srcRect,
178 const SkIPoint& dstPoint); 180 const SkIPoint& dstPoint);
179 181
182 void copySurfaceAsBlit(GrSurface* dst,
183 GrSurface* src,
184 GrVkImage* dstImage,
185 GrVkImage* srcImage,
186 const SkIRect& srcRect,
187 const SkIPoint& dstPoint);
188
180 void copySurfaceAsDraw(GrSurface* dst, 189 void copySurfaceAsDraw(GrSurface* dst,
181 GrSurface* src, 190 GrSurface* src,
182 const SkIRect& srcRect, 191 const SkIRect& srcRect,
183 const SkIPoint& dstPoint); 192 const SkIPoint& dstPoint);
184 193
185 // helper for onCreateTexture and writeTexturePixels 194 // helper for onCreateTexture and writeTexturePixels
186 bool uploadTexData(GrVkTexture* tex, 195 bool uploadTexData(GrVkTexture* tex,
187 int left, int top, int width, int height, 196 int left, int top, int width, int height,
188 GrPixelConfig dataConfig, 197 GrPixelConfig dataConfig,
189 const void* data, 198 const void* data,
(...skipping 21 matching lines...) Expand all
211 220
212 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once 221 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once
213 // since there is significant overhead to the first compile of any compiler. 222 // since there is significant overhead to the first compile of any compiler.
214 shaderc_compiler_t fCompiler; 223 shaderc_compiler_t fCompiler;
215 224
216 225
217 typedef GrGpu INHERITED; 226 typedef GrGpu INHERITED;
218 }; 227 };
219 228
220 #endif 229 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkCommandBuffer.cpp ('k') | src/gpu/vk/GrVkGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698