Gecko:CSSBorderRenderingWithShaders: Difference between revisions

Jump to navigation Jump to search
(Created page with "== Problem Statement == Our border-rendering problem can be reduced to the following parameters: * For each side, a border style: one of SOLID, DASHED, DOTTED. * For each side, ...")
 
Line 9: Line 9:
== Approach ==
== Approach ==


# Divide the border into its 8 parts (some of which may be empty): 4 corners and 4 sides. We can do
# Divide the border into 8 pieces (some of which may be empty): 4 corners and 4 straight sides. We can do simpler/faster things for the straight-sides pieces.
simpler/faster things for sides.
# For each pixel:
# For each pixel:
## Compute the value of the pixel as if all border styles are SOLID
## Compute the value of the pixel as if all border styles are SOLID
1,295

edits

Navigation menu