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

Side by Side Diff: src/gpu/vk/GrVkGpu.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 | « 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 192
193 bool onWritePixels(GrSurface* surface, 193 bool onWritePixels(GrSurface* surface,
194 int left, int top, int width, int height, 194 int left, int top, int width, int height,
195 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri de; 195 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri de;
196 196
197 bool onTransferPixels(GrSurface*, 197 bool onTransferPixels(GrSurface*,
198 int left, int top, int width, int height, 198 int left, int top, int width, int height,
199 GrPixelConfig config, GrBuffer* transferBuffer, 199 GrPixelConfig config, GrBuffer* transferBuffer,
200 size_t offset, size_t rowBytes) override { return fals e; } 200 size_t offset, size_t rowBytes) override { return fals e; }
201 201
202 void onResolveRenderTarget(GrRenderTarget* target) override {} 202 void onResolveRenderTarget(GrRenderTarget* target) override;
203 203
204 // Ends and submits the current command buffer to the queue and then creates a new command 204 // Ends and submits the current command buffer to the queue and then creates a new command
205 // buffer and begins it. If sync is set to kForce_SyncQueue, the function wi ll wait for all 205 // buffer and begins it. If sync is set to kForce_SyncQueue, the function wi ll wait for all
206 // work in the queue to finish before returning. 206 // work in the queue to finish before returning.
207 void submitCommandBuffer(SyncQueue sync); 207 void submitCommandBuffer(SyncQueue sync);
208 208
209 void copySurfaceAsCopyImage(GrSurface* dst, 209 void copySurfaceAsCopyImage(GrSurface* dst,
210 GrSurface* src, 210 GrSurface* src,
211 GrVkImage* dstImage, 211 GrVkImage* dstImage,
212 GrVkImage* srcImage, 212 GrVkImage* srcImage,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 #else 262 #else
263 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once 263 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once
264 // since there is significant overhead to the first compile of any compiler. 264 // since there is significant overhead to the first compile of any compiler.
265 shaderc_compiler_t fCompiler; 265 shaderc_compiler_t fCompiler;
266 #endif 266 #endif
267 267
268 typedef GrGpu INHERITED; 268 typedef GrGpu INHERITED;
269 }; 269 };
270 270
271 #endif 271 #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