Home
last modified time | relevance | path

Searched refs:GrStencilOp (Results 1 – 5 of 5) sorted by relevance

/external/skia/src/gpu/
DGrStencilSettings.cpp135 static constexpr GrStencilOp gUserStencilOpToRaw[kGrUserStencilOpCount] = {
136 GrStencilOp::kKeep,
139 GrStencilOp::kZero,
140 GrStencilOp::kReplace,
141 GrStencilOp::kInvert,
142 GrStencilOp::kIncWrap,
143 GrStencilOp::kDecWrap,
144 GrStencilOp::kIncClamp, // kIncMaybeClamp.
145 GrStencilOp::kDecClamp, // kDecMaybeClamp.
148 GrStencilOp::kZero, // kZeroClipBit.
[all …]
DGrStencilSettings.h29 enum class GrStencilOp : uint8_t { enum
41 static constexpr int kGrStencilOpCount = 1 + (int)GrStencilOp::kDecClamp;
76 struct Face : public GrTStencilFaceSettings<GrStencilTest, GrStencilOp> {
/external/skia/src/gpu/vk/
DGrVkPipeline.cpp107 static VkStencilOp stencil_op_to_vk_stencil_op(GrStencilOp op) { in stencil_op_to_vk_stencil_op()
119 GR_STATIC_ASSERT(0 == (int)GrStencilOp::kKeep); in stencil_op_to_vk_stencil_op()
120 GR_STATIC_ASSERT(1 == (int)GrStencilOp::kZero); in stencil_op_to_vk_stencil_op()
121 GR_STATIC_ASSERT(2 == (int)GrStencilOp::kReplace); in stencil_op_to_vk_stencil_op()
122 GR_STATIC_ASSERT(3 == (int)GrStencilOp::kInvert); in stencil_op_to_vk_stencil_op()
123 GR_STATIC_ASSERT(4 == (int)GrStencilOp::kIncWrap); in stencil_op_to_vk_stencil_op()
124 GR_STATIC_ASSERT(5 == (int)GrStencilOp::kDecWrap); in stencil_op_to_vk_stencil_op()
125 GR_STATIC_ASSERT(6 == (int)GrStencilOp::kIncClamp); in stencil_op_to_vk_stencil_op()
126 GR_STATIC_ASSERT(7 == (int)GrStencilOp::kDecClamp); in stencil_op_to_vk_stencil_op()
127 SkASSERT(op < (GrStencilOp)kGrStencilOpCount); in stencil_op_to_vk_stencil_op()
/external/skia/src/gpu/gl/
DGrGLPathRendering.cpp68 static GrGLenum gr_stencil_op_to_gl_path_rendering_fill_mode(GrStencilOp op) { in gr_stencil_op_to_gl_path_rendering_fill_mode()
73 case GrStencilOp::kIncWrap: in gr_stencil_op_to_gl_path_rendering_fill_mode()
75 case GrStencilOp::kInvert: in gr_stencil_op_to_gl_path_rendering_fill_mode()
DGrGLGpu.cpp2752 GrGLenum gr_to_gl_stencil_op(GrStencilOp op) { in gr_to_gl_stencil_op()
2763 GR_STATIC_ASSERT(0 == (int)GrStencilOp::kKeep); in gr_to_gl_stencil_op()
2764 GR_STATIC_ASSERT(1 == (int)GrStencilOp::kZero); in gr_to_gl_stencil_op()
2765 GR_STATIC_ASSERT(2 == (int)GrStencilOp::kReplace); in gr_to_gl_stencil_op()
2766 GR_STATIC_ASSERT(3 == (int)GrStencilOp::kInvert); in gr_to_gl_stencil_op()
2767 GR_STATIC_ASSERT(4 == (int)GrStencilOp::kIncWrap); in gr_to_gl_stencil_op()
2768 GR_STATIC_ASSERT(5 == (int)GrStencilOp::kDecWrap); in gr_to_gl_stencil_op()
2769 GR_STATIC_ASSERT(6 == (int)GrStencilOp::kIncClamp); in gr_to_gl_stencil_op()
2770 GR_STATIC_ASSERT(7 == (int)GrStencilOp::kDecClamp); in gr_to_gl_stencil_op()
2771 SkASSERT(op < (GrStencilOp)kGrStencilOpCount); in gr_to_gl_stencil_op()