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

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

Issue 2210383002: Implement Vulkan Resolve. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add layout change Created 4 years, 4 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 | « no previous file | src/gpu/vk/GrVkCommandBuffer.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 GrVkCommandBuffer_DEFINED 8 #ifndef GrVkCommandBuffer_DEFINED
9 #define GrVkCommandBuffer_DEFINED 9 #define GrVkCommandBuffer_DEFINED
10 10
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 VkImageLayout dstLayout, 263 VkImageLayout dstLayout,
264 uint32_t copyRegionCount, 264 uint32_t copyRegionCount,
265 const VkBufferImageCopy* copyRegions); 265 const VkBufferImageCopy* copyRegions);
266 266
267 void updateBuffer(GrVkGpu* gpu, 267 void updateBuffer(GrVkGpu* gpu,
268 GrVkBuffer* dstBuffer, 268 GrVkBuffer* dstBuffer,
269 VkDeviceSize dstOffset, 269 VkDeviceSize dstOffset,
270 VkDeviceSize dataSize, 270 VkDeviceSize dataSize,
271 const void* data); 271 const void* data);
272 272
273 void resolveImage(GrVkGpu* gpu,
274 const GrVkImage& srcImage,
275 const GrVkImage& dstImage,
276 uint32_t regionCount,
277 const VkImageResolve* regions);
278
273 void submitToQueue(const GrVkGpu* gpu, VkQueue queue, GrVkGpu::SyncQueue syn c); 279 void submitToQueue(const GrVkGpu* gpu, VkQueue queue, GrVkGpu::SyncQueue syn c);
274 bool finished(const GrVkGpu* gpu) const; 280 bool finished(const GrVkGpu* gpu) const;
275 281
276 #ifdef SK_TRACE_VK_RESOURCES 282 #ifdef SK_TRACE_VK_RESOURCES
277 void dumpInfo() const override { 283 void dumpInfo() const override {
278 SkDebugf("GrVkPrimaryCommandBuffer: %d (%d refs)\n", fCmdBuffer, this->g etRefCnt()); 284 SkDebugf("GrVkPrimaryCommandBuffer: %d (%d refs)\n", fCmdBuffer, this->g etRefCnt());
279 } 285 }
280 #endif 286 #endif
281 287
282 private: 288 private:
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 } 320 }
315 321
316 void onFreeGPUData(const GrVkGpu* gpu) const override {} 322 void onFreeGPUData(const GrVkGpu* gpu) const override {}
317 323
318 friend class GrVkPrimaryCommandBuffer; 324 friend class GrVkPrimaryCommandBuffer;
319 325
320 typedef GrVkCommandBuffer INHERITED; 326 typedef GrVkCommandBuffer INHERITED;
321 }; 327 };
322 328
323 #endif 329 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/vk/GrVkCommandBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698