include/mupdf/fitz/shade.h: document fz_paint_shade()'s new <cache> arg.
authorJulian Smith <[email protected]>
Mon, 2 Aug 2021 10:34:25 +0000 (11:34 +0100)
committerJulian Smith <[email protected]>
Tue, 3 Aug 2021 11:03:27 +0000 (12:03 +0100)
include/mupdf/fitz/shade.h

index 9052ae91a78d4e405e3b4f99a22292457e660c6f..2b77be3d9ef93e1a2c8ff7c2783a8ad4a1e7e8a9 100644 (file)
@@ -128,7 +128,11 @@ void fz_drop_shade_color_cache(fz_context *ctx, fz_shade_color_cache *cache);
        bbox: Pointer to a bounding box to limit the rendering
        of the shade.
 
-       op: NULL, or pointer to overprint bitmap.
+       eop: NULL, or pointer to overprint bitmap.
+
+       cache: *cache is used to cache color information. If *cache is NULL it
+       is set to point to a new fz_shade_color_cache. If cache is NULL it is
+       ignored.
 */
 void fz_paint_shade(fz_context *ctx, fz_shade *shade, fz_colorspace *override_cs, fz_matrix ctm, fz_pixmap *dest, fz_color_params color_params, fz_irect bbox, const fz_overprint *eop, fz_shade_color_cache **cache);