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

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

Issue 1904723003: Revert of Use transfer buffer for BatchAtlas texture copies (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 bool onReadPixels(GrSurface* surface, 144 bool onReadPixels(GrSurface* surface,
145 int left, int top, int width, int height, 145 int left, int top, int width, int height,
146 GrPixelConfig, 146 GrPixelConfig,
147 void* buffer, 147 void* buffer,
148 size_t rowBytes) override; 148 size_t rowBytes) override;
149 149
150 bool onWritePixels(GrSurface* surface, 150 bool onWritePixels(GrSurface* surface,
151 int left, int top, int width, int height, 151 int left, int top, int width, int height,
152 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri de; 152 GrPixelConfig config, const SkTArray<GrMipLevel>&) overri de;
153 153
154 bool onTransferPixels(GrTexture*, 154 bool onTransferPixels(GrSurface*,
155 int left, int top, int width, int height, 155 int left, int top, int width, int height,
156 GrPixelConfig config, GrBuffer* transferBuffer, 156 GrPixelConfig config, GrBuffer* transferBuffer,
157 size_t offset, size_t rowBytes) override; 157 size_t offset, size_t rowBytes) override { return fals e; }
158 158
159 void onResolveRenderTarget(GrRenderTarget* target) override {} 159 void onResolveRenderTarget(GrRenderTarget* target) override {}
160 160
161 sk_sp<GrVkPipelineState> prepareDrawState(const GrPipeline&, 161 sk_sp<GrVkPipelineState> prepareDrawState(const GrPipeline&,
162 const GrPrimitiveProcessor&, 162 const GrPrimitiveProcessor&,
163 GrPrimitiveType, 163 GrPrimitiveType,
164 const GrVkRenderPass&); 164 const GrVkRenderPass&);
165 165
166 // Bind vertex and index buffers 166 // Bind vertex and index buffers
167 void bindGeometry(const GrPrimitiveProcessor&, const GrNonInstancedMesh&); 167 void bindGeometry(const GrPrimitiveProcessor&, const GrNonInstancedMesh&);
(...skipping 51 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/GrGLGpu.cpp ('k') | src/gpu/vk/GrVkGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698