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

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

Issue 1854283004: Track GL buffer state based on unique resource ID (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix for GR_GL_USE_BUFFER_DATA_NULL_HINT=0 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/GrGLVertexArray.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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc e::LifeCycle, 125 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, GrGpuResourc e::LifeCycle,
126 const SkTArray<GrMipLevel>&) override { return NULL; } 126 const SkTArray<GrMipLevel>&) override { return NULL; }
127 127
128 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership ) override; 128 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&, GrWrapOwnership ) override;
129 129
130 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&, 130 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&,
131 GrWrapOwnership) override; 131 GrWrapOwnership) override;
132 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override { return NULL; } 132 GrRenderTarget* onWrapBackendTextureAsRenderTarget(const GrBackendTextureDes c&) override { return NULL; }
133 133
134 GrBuffer* onCreateBuffer(GrBufferType, size_t size, GrAccessPattern) overrid e; 134 GrBuffer* onCreateBuffer(size_t size, GrBufferType type, GrAccessPattern) ov erride;
135 135
136 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override; 136 void onClear(GrRenderTarget*, const SkIRect& rect, GrColor color) override;
137 137
138 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override; 138 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override;
139 139
140 void onDraw(const GrPipeline&, 140 void onDraw(const GrPipeline&,
141 const GrPrimitiveProcessor&, 141 const GrPrimitiveProcessor&,
142 const GrMesh*, 142 const GrMesh*,
143 int meshCount) override; 143 int meshCount) override;
144 144
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once 221 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once
222 // since there is significant overhead to the first compile of any compiler. 222 // since there is significant overhead to the first compile of any compiler.
223 shaderc_compiler_t fCompiler; 223 shaderc_compiler_t fCompiler;
224 224
225 225
226 typedef GrGpu INHERITED; 226 typedef GrGpu INHERITED;
227 }; 227 };
228 228
229 #endif 229 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLVertexArray.cpp ('k') | src/gpu/vk/GrVkGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698