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

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

Issue 2262473003: Define clear regions in terms of GrFixedClip (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_fixedcliptosrc
Patch Set: rebase Created 4 years, 3 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/GrGLGpuCommandBuffer.h ('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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGpuCommandBuffer.h ('k') | src/gpu/vk/GrVkGpuCommandBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698