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

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

Issue 1832613003: Revise layer, extension and feature setup for Vulkan (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove extra def of ENABLE_VK_LAYERS Created 4 years, 9 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/GrVkExtensions.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 13 matching lines...) Expand all
24 class GrNonInstancedMesh; 24 class GrNonInstancedMesh;
25 25
26 class GrVkBufferImpl; 26 class GrVkBufferImpl;
27 class GrVkCommandBuffer; 27 class GrVkCommandBuffer;
28 class GrVkPipeline; 28 class GrVkPipeline;
29 class GrVkPipelineState; 29 class GrVkPipelineState;
30 class GrVkRenderPass; 30 class GrVkRenderPass;
31 class GrVkTexture; 31 class GrVkTexture;
32 struct GrVkInterface; 32 struct GrVkInterface;
33 33
34 #ifdef SK_DEBUG
35 #define ENABLE_VK_LAYERS
36 #endif
37
38 class GrVkGpu : public GrGpu { 34 class GrVkGpu : public GrGpu {
39 public: 35 public:
40 static GrGpu* Create(GrBackendContext backendContext, const GrContextOptions & options, 36 static GrGpu* Create(GrBackendContext backendContext, const GrContextOptions & options,
41 GrContext* context); 37 GrContext* context);
42 38
43 ~GrVkGpu() override; 39 ~GrVkGpu() override;
44 40
45 const GrVkInterface* vkInterface() const { return fBackendContext->fInterfac e; } 41 const GrVkInterface* vkInterface() const { return fBackendContext->fInterfac e; }
46 const GrVkCaps& vkCaps() const { return *fVkCaps; } 42 const GrVkCaps& vkCaps() const { return *fVkCaps; }
47 43
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 231
236 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once 232 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once
237 // since there is significant overhead to the first compile of any compiler. 233 // since there is significant overhead to the first compile of any compiler.
238 shaderc_compiler_t fCompiler; 234 shaderc_compiler_t fCompiler;
239 235
240 236
241 typedef GrGpu INHERITED; 237 typedef GrGpu INHERITED;
242 }; 238 };
243 239
244 #endif 240 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkExtensions.cpp ('k') | src/gpu/vk/GrVkGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698