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

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

Issue 1877073002: Add optional data parameter to createBuffer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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/GrGLGpu.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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc e::LifeCycle, 123 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc e::LifeCycle,
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) ov erride; 132 GrBuffer* onCreateBuffer(size_t size, GrBufferType type, GrAccessPattern,
133 const void* data) override;
133 134
134 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; 135 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override;
135 136
136 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override; 137 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override;
137 138
138 void onDraw(const GrPipeline&, 139 void onDraw(const GrPipeline&,
139 const GrPrimitiveProcessor&, 140 const GrPrimitiveProcessor&,
140 const GrMesh*, 141 const GrMesh*,
141 int meshCount) override; 142 int meshCount) override;
142 143
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 219
219 // 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
220 // 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.
221 shaderc_compiler_t fCompiler; 222 shaderc_compiler_t fCompiler;
222 223
223 224
224 typedef GrGpu INHERITED; 225 typedef GrGpu INHERITED;
225 }; 226 };
226 227
227 #endif 228 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGpu.cpp ('k') | src/gpu/vk/GrVkGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698