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

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

Issue 2104353002: Add discard support to Vulkan (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: comment Created 4 years, 5 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/vk/GrVkCaps.cpp ('k') | src/gpu/vk/GrVkGpuCommandBuffer.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 2016 Google Inc. 2 * Copyright 2016 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 GrVkGpuCommandBuffer_DEFINED 8 #ifndef GrVkGpuCommandBuffer_DEFINED
9 #define GrVkGpuCommandBuffer_DEFINED 9 #define GrVkGpuCommandBuffer_DEFINED
10 10
(...skipping 14 matching lines...) Expand all
25 public: 25 public:
26 GrVkGpuCommandBuffer(GrVkGpu* gpu, 26 GrVkGpuCommandBuffer(GrVkGpu* gpu,
27 GrVkRenderTarget*, 27 GrVkRenderTarget*,
28 const LoadAndStoreInfo& colorInfo, 28 const LoadAndStoreInfo& colorInfo,
29 const LoadAndStoreInfo& stencilInfo); 29 const LoadAndStoreInfo& stencilInfo);
30 30
31 virtual ~GrVkGpuCommandBuffer(); 31 virtual ~GrVkGpuCommandBuffer();
32 32
33 void end() override; 33 void end() override;
34 34
35 void discard(GrRenderTarget* rt) override {} 35 void discard(GrRenderTarget* rt) override;
36 36
37 private: 37 private:
38 GrGpu* gpu() override; 38 GrGpu* gpu() override;
39 39
40 void onSubmit(const SkIRect& bounds) override; 40 void onSubmit(const SkIRect& bounds) override;
41 41
42 // Bind vertex and index buffers 42 // Bind vertex and index buffers
43 void bindGeometry(const GrPrimitiveProcessor&, const GrNonInstancedMesh&); 43 void bindGeometry(const GrPrimitiveProcessor&, const GrNonInstancedMesh&);
44 44
45 sk_sp<GrVkPipelineState> prepareDrawState(const GrPipeline&, 45 sk_sp<GrVkPipelineState> prepareDrawState(const GrPipeline&,
(...skipping 17 matching lines...) Expand all
63 VkClearValue fColorClearValue; 63 VkClearValue fColorClearValue;
64 64
65 SkTArray<GrVkImage*> fSampledImages; 65 SkTArray<GrVkImage*> fSampledImages;
66 66
67 bool fIsEmpty; 67 bool fIsEmpty;
68 68
69 typedef GrGpuCommandBuffer INHERITED; 69 typedef GrGpuCommandBuffer INHERITED;
70 }; 70 };
71 71
72 #endif 72 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkCaps.cpp ('k') | src/gpu/vk/GrVkGpuCommandBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698