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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 sk_sp<GrVkPipelineState> prepareDrawState(const GrPipeline&, | 45 sk_sp<GrVkPipelineState> prepareDrawState(const GrPipeline&, |
46 const GrPrimitiveProcessor&, | 46 const GrPrimitiveProcessor&, |
47 GrPrimitiveType, | 47 GrPrimitiveType, |
48 const GrVkRenderPass&); | 48 const GrVkRenderPass&); |
49 | 49 |
50 void onDraw(const GrPipeline& pipeline, | 50 void onDraw(const GrPipeline& pipeline, |
51 const GrPrimitiveProcessor& primProc, | 51 const GrPrimitiveProcessor& primProc, |
52 const GrMesh* mesh, | 52 const GrMesh* mesh, |
53 int meshCount) override; | 53 int meshCount) override; |
54 | 54 |
55 void onClear(GrRenderTarget* rt, const SkIRect& rect, GrColor color) overrid
e; | 55 void onClear(GrRenderTarget* rt, const GrFixedClip&, GrColor color) override
; |
56 | 56 |
57 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli
p) override; | 57 void onClearStencilClip(GrRenderTarget*, const GrFixedClip&, bool insideSten
cilMask) override; |
58 | 58 |
59 const GrVkRenderPass* fRenderPass; | 59 const GrVkRenderPass* fRenderPass; |
60 GrVkSecondaryCommandBuffer* fCommandBuffer; | 60 GrVkSecondaryCommandBuffer* fCommandBuffer; |
61 GrVkGpu* fGpu; | 61 GrVkGpu* fGpu; |
62 GrVkRenderTarget* fRenderTarget; | 62 GrVkRenderTarget* fRenderTarget; |
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 |