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

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

Issue 2146103002: Update RT views and framebuffer in vulkan after mipmaping (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: nits Created 4 years, 5 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/GrVkBuffer.h ('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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 #endif 129 #endif
130 130
131 void submitSecondaryCommandBuffer(GrVkSecondaryCommandBuffer*, 131 void submitSecondaryCommandBuffer(GrVkSecondaryCommandBuffer*,
132 const GrVkRenderPass*, 132 const GrVkRenderPass*,
133 const VkClearValue*, 133 const VkClearValue*,
134 GrVkRenderTarget*, 134 GrVkRenderTarget*,
135 const SkIRect& bounds); 135 const SkIRect& bounds);
136 136
137 void finishDrawTarget() override; 137 void finishDrawTarget() override;
138 138
139 void generateMipmap(GrVkTexture* tex) const; 139 void generateMipmap(GrVkTexture* tex);
140 140
141 bool updateBuffer(GrVkBuffer* buffer, const void* src, VkDeviceSize offset, VkDeviceSize size); 141 bool updateBuffer(GrVkBuffer* buffer, const void* src, VkDeviceSize offset, VkDeviceSize size);
142 142
143 // Heaps 143 // Heaps
144 enum Heap { 144 enum Heap {
145 kLinearImage_Heap = 0, 145 kLinearImage_Heap = 0,
146 // We separate out small (i.e., <= 16K) images to reduce fragmentation 146 // We separate out small (i.e., <= 16K) images to reduce fragmentation
147 // in the main heap. 147 // in the main heap.
148 kOptimalImage_Heap, 148 kOptimalImage_Heap,
149 kSmallOptimalImage_Heap, 149 kSmallOptimalImage_Heap,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 #else 260 #else
261 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once 261 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once
262 // since there is significant overhead to the first compile of any compiler. 262 // since there is significant overhead to the first compile of any compiler.
263 shaderc_compiler_t fCompiler; 263 shaderc_compiler_t fCompiler;
264 #endif 264 #endif
265 265
266 typedef GrGpu INHERITED; 266 typedef GrGpu INHERITED;
267 }; 267 };
268 268
269 #endif 269 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkBuffer.h ('k') | src/gpu/vk/GrVkGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698