 #define SEGMENT_TOP             5
 #define SEGMENT_RIGHT           6
 #define SEGMENT_BOTTOM          7
-
-#define CLIP_NONE   0
-#define CLIP_DASH   1
-#define CLIP_DOT    2
 
 #ifdef WR_VERTEX_SHADER
 

// transition occurs. Used for corners only.
flat varying vec4 vColorLine;

// x = segment, z = edge axes, w = clip mode
flat varying ivec4 vConfig;

// xy = Local space position of the clip center.


void main(void) {
    int segment = aFlags & 0xff;

    vec2 outer_scale = get_outer_corner_scale(segment);
    vec2 outer = outer_scale * aRect.zw;
