| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |