DescriptionProposal for the mesh gradient interface. Implemented as a grid of
patches and uses 4 private arrays to store the values of the control points and
colors. When it needs a patch at a certain position of the grid it just
builds it using the corresponding values of the array and the
grid coordinates provided. Details on implementation are documented in the corresponding classes' comments.
Also added a gm for mesh gradients.
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/cc03adb90901d226e8b0252a187b19a68fabcc42
Patch Set 1 #
Total comments: 6
Patch Set 2 : Changed name to SkPatchGrid #
Total comments: 10
Patch Set 3 : Draw order for patches in grid and bool for getPatch #Patch Set 4 : Renamed GM to SKPatchGridGM and removed last mesh references in comments #
Total comments: 6
Patch Set 5 : Fixed small nits #Patch Set 6 : Using new SkCanvas::drawPatch(const SkPoint cubics[12], ...) #Patch Set 7 : Moved SkPatchGrid to utils #Patch Set 8 : Use fXferMode #
Messages
Total messages: 20 (0 generated)
|