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

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

Issue 1862043002: Refactor to separate backend object lifecycle and GpuResource budget decision (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix unrelated GrBuffer::onGpuMemorySize() lack of override keyword compile error Created 4 years, 8 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/gl/GrGLTextureRenderTarget.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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 } 110 }
111 111
112 void finishDrawTarget() override; 112 void finishDrawTarget() override;
113 113
114 private: 114 private:
115 GrVkGpu(GrContext* context, const GrContextOptions& options, 115 GrVkGpu(GrContext* context, const GrContextOptions& options,
116 const GrVkBackendContext* backendContext); 116 const GrVkBackendContext* backendContext);
117 117
118 void onResetContext(uint32_t resetBits) override {} 118 void onResetContext(uint32_t resetBits) override {}
119 119
120 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, GrGpuResource::LifeCyc le, 120 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted,
121 const SkTArray<GrMipLevel>&) override; 121 const SkTArray<GrMipLevel>&) override;
122 122
123 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc e::LifeCycle, 123 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, SkBudgeted,
124 const SkTArray<GrMipLevel>&) override { return NULL; } 124 const SkTArray<GrMipLevel>&) override { return NULL; }
125 125
126 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership ) override; 126 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership ) override;
127 127
128 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, 128 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&,
129 GrWrapOwnership) override; 129 GrWrapOwnership) override;
130 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override { return NULL; } 130 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override { return NULL; }
131 131
132 GrBuffer* onCreateBuffer(size_t size, GrBufferType type, GrAccessPattern, 132 GrBuffer* onCreateBuffer(size_t size, GrBufferType type, GrAccessPattern,
133 const void* data) override; 133 const void* data) override;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 219
220 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once 220 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once
221 // since there is significant overhead to the first compile of any compiler. 221 // since there is significant overhead to the first compile of any compiler.
222 shaderc_compiler_t fCompiler; 222 shaderc_compiler_t fCompiler;
223 223
224 224
225 typedef GrGpu INHERITED; 225 typedef GrGpu INHERITED;
226 }; 226 };
227 227
228 #endif 228 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLTextureRenderTarget.cpp ('k') | src/gpu/vk/GrVkGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698