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

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

Issue 1819343002: Fully implement onResetContext for Vulkan (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | « no previous file | no next file » | 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698