OLD | NEW |
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 bool byRegion, | 117 bool byRegion, |
118 VkImageMemoryBarrier* barrier) const; | 118 VkImageMemoryBarrier* barrier) const; |
119 | 119 |
120 shaderc_compiler_t shadercCompiler() const { | 120 shaderc_compiler_t shadercCompiler() const { |
121 return fCompiler; | 121 return fCompiler; |
122 } | 122 } |
123 | 123 |
124 void finishDrawTarget() override; | 124 void finishDrawTarget() override; |
125 | 125 |
126 private: | 126 private: |
127 void onResetContext(uint32_t resetBits) override { | 127 void onResetContext(uint32_t resetBits) override {} |
128 SkDebugf("onResetContext not yet implemented for Vulkan\n"); | |
129 } | |
130 | 128 |
131 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le, | 129 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc
le, |
132 const SkTArray<GrMipLevel>&) override; | 130 const SkTArray<GrMipLevel>&) override; |
133 | 131 |
134 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc
e::LifeCycle, | 132 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc
e::LifeCycle, |
135 const SkTArray<GrMipLevel>&) override { | 133 const SkTArray<GrMipLevel>&) override { |
136 SkDebugf("onCreateCompressedTexture not yet implemented for Vulkan\n"); | 134 SkDebugf("onCreateCompressedTexture not yet implemented for Vulkan\n"); |
137 return NULL; | 135 return NULL; |
138 } | 136 } |
139 | 137 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 shaderc_compiler_t fCompiler; | 230 shaderc_compiler_t fCompiler; |
233 | 231 |
234 // This is only for our current testing and building. The client should be h
olding on to the | 232 // This is only for our current testing and building. The client should be h
olding on to the |
235 // VkInstance. | 233 // VkInstance. |
236 VkInstance fVkInstance; | 234 VkInstance fVkInstance; |
237 | 235 |
238 typedef GrGpu INHERITED; | 236 typedef GrGpu INHERITED; |
239 }; | 237 }; |
240 | 238 |
241 #endif | 239 #endif |
OLD | NEW |