commit e19867ed127cffaf42de5bccfe6d880e9ac79ad6 Author: Federico Mena Quintero Date: Wed Aug 1 14:04:00 2018 -0500 gitlab#315 - Docs on how to run the filters-related benchmarks https://gitlab.gnome.org/GNOME/librsvg/issues/315 CONTRIBUTING.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) commit bdea07e225a8ce6933b3d9309f77bdda9417a126 Author: Jordan Petridis Date: Wed Aug 1 20:39:44 2018 +0300 cargo fmt rsvg_internals/src/aspect_ratio.rs | 4 +-- rsvg_internals/src/coord_units.rs | 3 +- rsvg_internals/src/drawing_ctx.rs | 5 ++- rsvg_internals/src/filters/composite.rs | 3 +- rsvg_internals/src/filters/context.rs | 6 ++-- rsvg_internals/src/filters/merge.rs | 3 +- rsvg_internals/src/filters/mod.rs | 3 +- rsvg_internals/src/filters/turbulence.rs | 3 +- rsvg_internals/src/gradient.rs | 6 ++-- rsvg_internals/src/marker.rs | 39 +++++++++++----------- rsvg_internals/src/space.rs | 9 ++--- rsvg_internals/src/surface_utils/shared_surface.rs | 6 ++-- rsvg_internals/src/transform.rs | 28 ++++++---------- 13 files changed, 50 insertions(+), 68 deletions(-) commit a1443fd79dcfba850e08123c9cc2b56241314d7f Author: Federico Mena Quintero Date: Mon Jul 30 21:21:28 2018 -0700 Update NEWS NEWS | 6 ++++++ 1 file changed, 6 insertions(+) commit 760b65f1ddff2a780cc774a692d534811270830c Author: Federico Mena Quintero Date: Mon Jul 30 21:15:47 2018 -0700 Bump version to 2.43.3 configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit e7de8f25b8049c186975ef510e2bd41d62397ae7 Author: Federico Mena Quintero Date: Fri Jul 20 10:27:42 2018 -0700 (#309): Don't panic if rendering to a non-image surface The somewhat convoluted code in with_discrete_layer() was trying to create a cairo::ImageSurface from the incoming cr's target, which may in fact not be an image surface. We now have a test for this, too. https://gitlab.gnome.org/GNOME/librsvg/issues/309 rsvg_internals/src/drawing_ctx.rs | 48 ++++++++++++++++++--------------------- tests/api.c | 33 +++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 26 deletions(-) commit 340a2635f36f510ad833f6ca34f29f89d21451f3 Merge: 0133a696 184c10cb Author: Federico Mena Quintero Date: Mon Jul 30 21:10:41 2018 -0700 Merge branch 'pborelli/librsvg-cleanup' commit 184c10cbe2c3562152954b7a81399dca2dc834e8 Author: Paolo Borelli Date: Sun Jul 29 18:04:31 2018 +0200 handle: move more handle methods to handle.c Having methods spread across many files makes the code confusing librsvg/rsvg-base.c | 346 ------------------------------------------------ librsvg/rsvg-handle.c | 347 ++++++++++++++++++++++++++++++++++++++++++++++++- librsvg/rsvg-private.h | 3 - 3 files changed, 346 insertions(+), 350 deletions(-) commit 8cee78763e8d11650252bbee61278eb07f54d5fc Author: Paolo Borelli Date: Sun Jul 29 17:56:07 2018 +0200 Rename file for clarity These are all functions that deal with GdkPixbuf Makefile.am | 2 +- librsvg/{rsvg-file-util.c => rsvg-pixbuf.c} | 0 2 files changed, 1 insertion(+), 1 deletion(-) commit 125f0a9de5930afb0d30d50263905a8cc4ee996f Author: Paolo Borelli Date: Sun Jul 29 17:51:42 2018 +0200 handle: move some of the _new() variants in handle.c These methods should be near all the other variants, no reason to have a separate file. Makefile.am | 1 - librsvg/rsvg-base-file-util.c | 129 ------------------------------------------ librsvg/rsvg-handle.c | 102 +++++++++++++++++++++++++++++++++ 3 files changed, 102 insertions(+), 130 deletions(-) commit 06e0ea7bc5b0228c625b7f152acee815735f71f5 Author: Paolo Borelli Date: Sun Jul 29 17:40:38 2018 +0200 Remove unused function rsvg_pixbuf_from_data_with_size_data Note: this function was exported (probably by mistake), but it was not declared in a public header and after a few searches I do not find any program that ever called it. librsvg/rsvg-file-util.c | 37 ------------------------------------- librsvg/rsvg-private.h | 6 ------ 2 files changed, 43 deletions(-) commit 47a3fb5bb15cf9d61a2a36dd5f31d74708881df4 Author: Paolo Borelli Date: Sun Jul 29 17:39:27 2018 +0200 Remove unused define librsvg/rsvg-file-util.c | 2 -- 1 file changed, 2 deletions(-) commit 0133a6964a02eeaf55dba320c8b513890691d0fd Author: Paolo Borelli Date: Sun Jul 29 17:16:37 2018 +0200 drawing_ctx: use refcell for the defs field rsvg_internals/src/drawing_ctx.rs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) commit ab1dab86b97702272e50c23c2566e48098d77444 Author: Paolo Borelli Date: Sun Jul 29 15:56:20 2018 +0200 load: register in defs from the rust code librsvg/rsvg-load.c | 9 +++++---- rsvg_internals/src/lib.rs | 1 - rsvg_internals/src/load.rs | 14 +++++++++++++- rsvg_internals/src/node.rs | 18 ------------------ 4 files changed, 18 insertions(+), 24 deletions(-) commit 7ae212496f6ef68def821710dc921fa4d2669508 Author: Paolo Borelli Date: Sun Jul 29 10:58:55 2018 +0200 defs: port RsvgDefs to rust Makefile.am | 2 - doc/Makefile.am | 1 - librsvg/rsvg-base.c | 1 - librsvg/rsvg-defs.c | 123 -------------------------------------- librsvg/rsvg-defs.h | 49 --------------- librsvg/rsvg-handle.c | 1 - librsvg/rsvg-load.c | 1 - librsvg/rsvg-private.h | 12 ++++ rsvg_internals/src/defs.rs | 101 ++++++++++++++++++++++++------- rsvg_internals/src/drawing_ctx.rs | 8 ++- rsvg_internals/src/handle.rs | 42 +++++++++++++ rsvg_internals/src/lib.rs | 2 + rsvg_internals/src/node.rs | 7 ++- 13 files changed, 147 insertions(+), 203 deletions(-) commit bfa87218d1a96d004002a8bf6b22dc55d5bdaac4 Author: Paolo Borelli Date: Sun Jul 29 11:04:49 2018 +0200 handle: move function for loading an extern to handle.c librsvg/rsvg-defs.c | 33 ++++----------------------------- librsvg/rsvg-handle.c | 29 ++++++++++++++++++++++++++++- librsvg/rsvg-private.h | 3 ++- 3 files changed, 34 insertions(+), 31 deletions(-) commit 2404fe2a7ac81a0cbd5b79e3b143c4d62d563c98 Author: Paolo Borelli Date: Sun Jul 29 10:58:05 2018 +0200 handle: add defs getter librsvg/rsvg-defs.c | 10 ++++++---- librsvg/rsvg-handle.c | 6 ++++++ librsvg/rsvg-private.h | 3 +++ 3 files changed, 15 insertions(+), 4 deletions(-) commit ad76056ad2da1255c669cb2286aa6279d9bb786c Author: Paolo Borelli Date: Sun Jul 29 10:52:43 2018 +0200 handle: remove all_nodes array As far as I can see this array of extra refs is not needed. librsvg/rsvg-base.c | 9 --------- librsvg/rsvg-handle.c | 2 -- librsvg/rsvg-load.c | 3 --- librsvg/rsvg-private.h | 8 ++------ 4 files changed, 2 insertions(+), 20 deletions(-) commit be97f2790d508af56c8ae207804b621db202afeb Author: Paolo Borelli Date: Sun Jul 29 10:28:40 2018 +0200 rustfmt rsvg_internals/src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) commit 0ca31ca181698fa5d34cd75bce0921a00fbd53a0 Author: Paolo Borelli Date: Sat Jul 28 17:41:16 2018 +0200 state: remove unused C function librsvg/rsvg-private.h | 15 --------------- rsvg_internals/src/lib.rs | 1 - rsvg_internals/src/state.rs | 15 --------------- 3 files changed, 31 deletions(-) commit 6f39c92b876387b84ada148f3b15a6aa514f0cff Author: Jordan Petridis Date: Thu Jul 26 04:27:38 2018 +0300 cargo fmt rsvg_internals/src/state.rs | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) commit 315f524cf0590931c0b5cdec09abbdd0bcdb804f Author: Federico Mena Quintero Date: Tue Jul 24 12:50:37 2018 -0700 rustfmt rsvg_internals/src/shapes.rs | 8 ++------ rsvg_internals/src/state.rs | 33 ++++++++++++++++++--------------- 2 files changed, 20 insertions(+), 21 deletions(-) commit e6f542eb06013d2957e3510735e004f10abeb0d1 Merge: 7b19ce98 18074eff Author: Federico Mena Quintero Date: Tue Jul 24 12:50:00 2018 -0700 Merge branch 'pborelli/librsvg-length' commit 7b19ce988df91d614b74cf59388dd06ae0239458 Merge: 8d831972 2e0e9583 Author: Federico Mena Quintero Date: Tue Jul 24 10:10:28 2018 -0700 Merge branch 'YaLTeR/librsvg-fast-srgb' commit 18074eff7057ab492c48af00cbc96f901db7e764 Author: Paolo Borelli Date: Tue Jul 24 11:01:36 2018 +0200 handle: cleanup dispose librsvg/rsvg-handle.c | 46 +++++++++++----------------------------------- librsvg/rsvg-private.h | 2 -- 2 files changed, 11 insertions(+), 37 deletions(-) commit ca96a9b0a71232e8eab1fe992ee94139a632acb9 Author: Paolo Borelli Date: Tue Jul 24 09:22:59 2018 +0200 handle: use g_ptr_array_new_with_free_func for the nodes librsvg/rsvg-handle.c | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) commit 02060d0bc1a7247f957e6003b2f95c7b0a5fc891 Author: Paolo Borelli Date: Mon Jul 23 23:56:25 2018 +0200 Remove unused paint-server header Makefile.am | 1 - doc/Makefile.am | 2 -- librsvg/rsvg-paint-server.h | 52 --------------------------------------------- librsvg/rsvg-styles.h | 1 - tests/styles.c | 1 - 5 files changed, 57 deletions(-) commit 824c8b21277f60c21bb9fe4d05c934ba80a27680 Author: Paolo Borelli Date: Mon Jul 23 23:40:48 2018 +0200 Consolidate rsvg-xml.c inside rsvg-load I do not see a reason to split a single function in its own file Makefile.am | 2 - doc/Makefile.am | 4 +- librsvg/rsvg-load.c | 75 +++++++++++++++++++++++++++++++++---- librsvg/rsvg-xml.c | 104 ---------------------------------------------------- librsvg/rsvg-xml.h | 39 -------------------- 5 files changed, 69 insertions(+), 155 deletions(-) commit c85088735b50c15b54a682595fb570639fb46ead Author: Paolo Borelli Date: Mon Jul 23 23:20:37 2018 +0200 Remove structure.h header It now only had two prototypes with no real reason to be a separate file Makefile.am | 1 - doc/Makefile.am | 1 - librsvg/rsvg-handle.c | 1 - librsvg/rsvg-load.c | 11 +++++++---- librsvg/rsvg-private.h | 4 ++++ librsvg/rsvg-structure.h | 47 ----------------------------------------------- 6 files changed, 11 insertions(+), 54 deletions(-) commit fe5d9d5defdf9ed313ffe0de6222fe0fe5b6cdd2 Author: Paolo Borelli Date: Mon Jul 23 23:06:31 2018 +0200 Rename RsvgLength to simply Length Now that it is not used from C, we can drop the manual namespacing. rsvg_internals/src/filters/bounds.rs | 18 ++--- rsvg_internals/src/filters/context.rs | 8 +- rsvg_internals/src/filters/mod.rs | 14 ++-- rsvg_internals/src/filters/node.rs | 22 ++--- rsvg_internals/src/gradient.rs | 32 ++++---- rsvg_internals/src/image.rs | 20 ++--- rsvg_internals/src/length.rs | 148 +++++++++++++++------------------- rsvg_internals/src/marker.rs | 22 ++--- rsvg_internals/src/mask.rs | 22 ++--- rsvg_internals/src/parsers.rs | 4 +- rsvg_internals/src/pattern.rs | 20 ++--- rsvg_internals/src/shapes.rs | 78 +++++++++--------- rsvg_internals/src/state.rs | 32 ++++---- rsvg_internals/src/stop.rs | 8 +- rsvg_internals/src/structure.rs | 40 ++++----- rsvg_internals/src/text.rs | 28 +++---- tests/styles.c | 4 +- 17 files changed, 248 insertions(+), 272 deletions(-) commit 39427d7fddc0b8b98e94caa9a584bb8b11ada1eb Author: Paolo Borelli Date: Mon Jul 23 22:59:30 2018 +0200 length: do not export to C librsvg/rsvg-private.h | 40 ------------------------------- rsvg_internals/src/length.rs | 56 ++------------------------------------------ rsvg_internals/src/lib.rs | 9 ------- 3 files changed, 2 insertions(+), 103 deletions(-) commit bfffb5407d1a4f2daae54699104b9ec106ef867a Author: Paolo Borelli Date: Mon Jul 23 22:57:06 2018 +0200 handle: move check before using treebase librsvg/rsvg-handle.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit f6024337ee79463d75f66139c2ab14355d66c011 Author: Paolo Borelli Date: Mon Jul 23 22:54:48 2018 +0200 handle: move some of get_dimensions_sub to rust Make rsvg_node_svg_get_size return a boolean indicating if the size can be used and if yes, return the normalized width and height. This removes the last use of RsvgLength in C. librsvg/rsvg-handle.c | 37 +++++----------------- librsvg/rsvg-structure.h | 6 +--- rsvg_internals/src/lib.rs | 2 +- rsvg_internals/src/structure.rs | 69 +++++++++++++++-------------------------- 4 files changed, 35 insertions(+), 79 deletions(-) commit 8d8319729b5b3ec41467a75b8c7d71eeea7d2f41 Merge: 0d64e208 560351a6 Author: Jordan Petridis Date: Mon Jul 23 00:05:13 2018 +0000 Merge branch 'fix-distcheck' into 'master' Fix distcheck See merge request GNOME/librsvg!101 commit 560351a66a420fa45e1fbbf97d70ed68ee16c25b Author: Ivan Molodetskikh Date: Sun Jul 22 20:59:29 2018 +0300 Fix distcheck Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 2e0e9583ff51dc529400333ea244056138ef78f9 Author: Ivan Molodetskikh Date: Sun Jul 22 17:52:00 2018 +0300 Switch from rulinalg to nalgebra Nalgebra is more widely used, is much more functional and most importantly provides stack-based types. Cargo.lock | 110 ++++++++--- rsvg_internals/Cargo.toml | 2 +- rsvg_internals/src/filters/color_matrix.rs | 110 ++++++----- rsvg_internals/src/filters/convolve_matrix.rs | 25 +-- rsvg_internals/src/filters/gaussian_blur.rs | 8 +- .../src/filters/light/diffuse_lighting.rs | 2 +- rsvg_internals/src/filters/light/light_source.rs | 26 +-- rsvg_internals/src/filters/light/mod.rs | 203 ++++++++++----------- .../src/filters/light/specular_lighting.rs | 9 +- rsvg_internals/src/lib.rs | 4 +- rsvg_internals/src/surface_utils/shared_surface.rs | 22 +-- 11 files changed, 283 insertions(+), 238 deletions(-) commit b1310876dca0808fb9fb52f88b1c9c2a9484597d Author: Ivan Molodetskikh Date: Sun Jul 22 12:22:51 2018 +0300 Introduce SurfaceType to SharedImageSurface This helps get rid of unnecessary linear<=>sRGB conversions. rsvg_internals/benches/box_blur.rs | 9 +- rsvg_internals/benches/pixel_iterators.rs | 9 +- rsvg_internals/src/filters/blend.rs | 19 ++++- rsvg_internals/src/filters/color_matrix.rs | 2 +- rsvg_internals/src/filters/component_transfer.rs | 2 +- rsvg_internals/src/filters/composite.rs | 19 ++++- rsvg_internals/src/filters/context.rs | 38 +++++---- rsvg_internals/src/filters/convolve_matrix.rs | 3 +- rsvg_internals/src/filters/displacement_map.rs | 2 +- rsvg_internals/src/filters/flood.rs | 4 +- rsvg_internals/src/filters/image.rs | 4 +- .../src/filters/light/diffuse_lighting.rs | 15 +++- .../src/filters/light/specular_lighting.rs | 15 +++- rsvg_internals/src/filters/merge.rs | 66 ++++++++++----- rsvg_internals/src/filters/mod.rs | 4 +- rsvg_internals/src/filters/morphology.rs | 2 +- rsvg_internals/src/filters/offset.rs | 2 +- rsvg_internals/src/filters/tile.rs | 2 +- rsvg_internals/src/filters/turbulence.rs | 22 ++++- rsvg_internals/src/srgb.rs | 13 ++- rsvg_internals/src/surface_utils/iterators.rs | 3 + rsvg_internals/src/surface_utils/shared_surface.rs | 98 ++++++++++++---------- 22 files changed, 238 insertions(+), 115 deletions(-) commit 79f2805a2dee4c7b26ba64568efdd745751e411b Author: Ivan Molodetskikh Date: Sun Jul 22 10:46:39 2018 +0300 Use table lookup in srgb::{un,}linearize() rsvg_internals/build.rs | 59 +++++++++++++++++++++ rsvg_internals/src/srgb.rs | 33 +++++------- ...-component-transfer-from-reference-page-ref.png | Bin 6956 -> 6906 bytes .../svg1.1/filters-background-01-f-ref.png | Bin 18995 -> 19327 bytes .../reftests/svg1.1/filters-color-01-b-ref.png | Bin 23085 -> 22994 bytes .../reftests/svg1.1/filters-composite-04-f-ref.png | Bin 114495 -> 114362 bytes .../reftests/svg1.1/filters-composite-05-f-ref.png | Bin 29869 -> 29786 bytes .../reftests/svg1.1/filters-comptran-01-b-ref.png | Bin 16093 -> 16010 bytes .../reftests/svg1.1/filters-conv-01-f-ref.png | Bin 49867 -> 49853 bytes .../reftests/svg1.1/filters-conv-03-f-ref.png | Bin 27292 -> 27315 bytes .../reftests/svg1.1/filters-conv-04-f-ref.png | Bin 75850 -> 75911 bytes .../reftests/svg1.1/filters-displace-02-f-ref.png | Bin 7304 -> 7640 bytes .../reftests/svg1.1/filters-gauss-01-b-ref.png | Bin 20705 -> 20929 bytes .../reftests/svg1.1/filters-offset-01-b-ref.png | Bin 10654 -> 10605 bytes .../reftests/svg1.1/filters-overview-01-b-ref.png | Bin 34241 -> 34381 bytes .../reftests/svg1.1/filters-overview-02-b-ref.png | Bin 41760 -> 42180 bytes .../reftests/svg1.1/filters-overview-03-b-ref.png | Bin 41934 -> 42356 bytes 17 files changed, 71 insertions(+), 21 deletions(-) commit 0d64e208d9e576f900f160ea24f92c9251feb49f Merge: 29c9d8c2 35e9c453 Author: Federico Mena Quintero Date: Thu Jul 19 21:34:12 2018 -0500 Merge branch 'YaLTeR/librsvg-fast-box-blur' commit 29c9d8c2c06d7745b4d4bdcf6df090c3ad34d0e8 Merge: 85543f36 9e137b53 Author: Federico Mena Quintero Date: Fri Jul 20 02:20:30 2018 +0000 Merge branch 'chars' into 'master' load: move some chars handling logic to rust See merge request GNOME/librsvg!98 commit 35e9c453c987190882286eabc097a396abbc334b Author: Ivan Molodetskikh Date: Thu Jul 19 17:34:00 2018 +0300 Use the new optimized box blur rsvg_internals/src/filters/gaussian_blur.rs | 47 +++++---------------- .../svg1.1/filters-background-01-f-ref.png | Bin 18990 -> 18995 bytes 2 files changed, 10 insertions(+), 37 deletions(-) commit 1ada832eae1dd0446ed29a69e563fb00890fc126 Author: Ivan Molodetskikh Date: Thu Jul 19 17:33:45 2018 +0300 Add box_blur benchmarks rsvg_internals/Cargo.toml | 4 +++ rsvg_internals/benches/box_blur.rs | 53 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) commit e0ee4cb92ad39adc8b499434ea8eb8bba036eb91 Author: Ivan Molodetskikh Date: Thu Jul 19 17:33:22 2018 +0300 Add SharedImageSurface::box_blur{,_loop}() rsvg_internals/src/surface_utils/shared_surface.rs | 163 +++++++++++++++++++++ 1 file changed, 163 insertions(+) commit 1a2b9f4d7e90a68a47598991111cebce602edb81 Author: Ivan Molodetskikh Date: Thu Jul 19 17:33:05 2018 +0300 Add SharedImageSurface::get_pixel_or_transparent() rsvg_internals/src/surface_utils/shared_surface.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) commit 7224bdc6a9a80912ec86a9677bc53a15412199d1 Author: Ivan Molodetskikh Date: Thu Jul 19 17:32:12 2018 +0300 Convert benchmarks to use Criterion Cargo.lock | 423 ++++++++++++++++++++++++++++++ rsvg_internals/Cargo.toml | 6 + rsvg_internals/benches/pixel_iterators.rs | 52 ++-- 3 files changed, 454 insertions(+), 27 deletions(-) commit 9e137b5389936782e0c18305a4d8dec482cd89c3 Author: Paolo Borelli Date: Wed Jul 18 23:46:49 2018 +0200 load: move some chars handling logic to rust librsvg/rsvg-load.c | 85 ++++++---------------------------------------- rsvg_internals/src/lib.rs | 2 +- rsvg_internals/src/node.rs | 83 +++++++++++++++++++++++++++----------------- rsvg_internals/src/text.rs | 8 +++++ 4 files changed, 72 insertions(+), 106 deletions(-) commit 85543f3691b2f91e214e7cb105ef142de653ec65 Merge: b8fef500 99e044da Author: Federico Mena Quintero Date: Sun Jul 15 17:54:40 2018 +0000 Merge branch 'filters-to-rust-10' into 'master' SharedImageSurface refactors and performance improvements See merge request GNOME/librsvg!97 commit 99e044da808c5a6410c6762d137c9c48f8c4afdd Author: Ivan Molodetskikh Date: Sun Jul 15 14:46:34 2018 +0300 Optimize convolve() for alpha_only rsvg_internals/src/surface_utils/shared_surface.rs | 106 ++++++++++++++------- 1 file changed, 72 insertions(+), 34 deletions(-) commit 27a919d09d61016cdd6c720805d9a3f4f3d153c2 Author: Ivan Molodetskikh Date: Sun Jul 15 14:46:20 2018 +0300 Propagate alpha_only through scale() rsvg_internals/src/surface_utils/shared_surface.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 5132d32ff5026e17c5c952c85e59dd77406563c4 Author: Ivan Molodetskikh Date: Sun Jul 15 14:45:41 2018 +0300 Mark PixelRectangle::next() as inline(always) Significantly helps with convolve performance. rsvg_internals/src/surface_utils/iterators.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 5b637bee0ff5ba9c0757786d69751b426ee259bb Author: Ivan Molodetskikh Date: Sun Jul 15 14:19:23 2018 +0300 Optimize srgb::* for alpha_only rsvg_internals/src/filters/context.rs | 8 +------- rsvg_internals/src/srgb.rs | 19 +++++++++---------- 2 files changed, 10 insertions(+), 17 deletions(-) commit 6c64b0c278e3fa8be891c9a48ff49affe4b9677d Author: Ivan Molodetskikh Date: Sun Jul 15 14:08:01 2018 +0300 Optimize unpremultiply() for alpha_only rsvg_internals/src/surface_utils/shared_surface.rs | 5 +++++ 1 file changed, 5 insertions(+) commit 8c049721a3cc6193b867ee12a81a88befef68b93 Author: Ivan Molodetskikh Date: Sun Jul 15 14:03:16 2018 +0300 Make into_image_surface() not panic rsvg_internals/src/filters/mod.rs | 14 +++++--------- rsvg_internals/src/surface_utils/shared_surface.rs | 21 ++++++++++++++------- 2 files changed, 19 insertions(+), 16 deletions(-) commit cfc20af4626b4cf2f264fe266f43c238efb0852b Author: Ivan Molodetskikh Date: Sun Jul 15 13:57:27 2018 +0300 Add an alpha-only flag to SharedImageSurface rsvg_internals/src/surface_utils/shared_surface.rs | 28 +++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) commit f7775e109a9fe872b11c217c9077dd191412cfea Author: Ivan Molodetskikh Date: Sun Jul 15 13:29:20 2018 +0300 Return SharedImageSurface from extract_alpha() rsvg_internals/src/filters/context.rs | 12 +++--------- rsvg_internals/src/surface_utils/shared_surface.rs | 4 ++-- 2 files changed, 5 insertions(+), 11 deletions(-) commit 5576c03c6f6f3fdf431cb1b4a64188ca1fa38f06 Author: Ivan Molodetskikh Date: Sun Jul 15 13:25:02 2018 +0300 Return SharedImageSurface from convolve() rsvg_internals/src/filters/gaussian_blur.rs | 20 ++++++++++---------- rsvg_internals/src/surface_utils/shared_surface.rs | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) commit c0bec8e1ece882fc0eccca2078d9142e6b3b56ac Author: Ivan Molodetskikh Date: Sun Jul 15 13:23:26 2018 +0300 Return SharedImageSurface from unpremultiply() rsvg_internals/src/filters/convolve_matrix.rs | 3 +-- rsvg_internals/src/filters/displacement_map.rs | 1 - rsvg_internals/src/surface_utils/shared_surface.rs | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) commit e650025c9acba5636adc0c1eea7141c9e6aa48c4 Author: Ivan Molodetskikh Date: Sun Jul 15 13:21:03 2018 +0300 Return SharedImageSurface from scale{,_to}() rsvg_internals/src/filters/convolve_matrix.rs | 6 ++---- rsvg_internals/src/filters/light/diffuse_lighting.rs | 6 ++---- rsvg_internals/src/filters/light/specular_lighting.rs | 6 ++---- rsvg_internals/src/surface_utils/shared_surface.rs | 6 +++--- 4 files changed, 9 insertions(+), 15 deletions(-) commit 45c7dd7991965e07b2ba84898a92fd1f3f594763 Author: Ivan Molodetskikh Date: Sun Jul 15 13:14:28 2018 +0300 Add a format check to SharedImageSurface::new() rsvg_internals/src/surface_utils/shared_surface.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) commit 648a0d8cc42bc2e854c2b4350bd853529ae447e9 Author: Ivan Molodetskikh Date: Sat Jul 14 09:13:14 2018 +0300 Replace two variants in FilterError with a single rsvg_internals/src/filters/blend.rs | 8 +-- rsvg_internals/src/filters/color_matrix.rs | 5 +- rsvg_internals/src/filters/component_transfer.rs | 5 +- rsvg_internals/src/filters/composite.rs | 10 +-- rsvg_internals/src/filters/context.rs | 40 +++++------ rsvg_internals/src/filters/convolve_matrix.rs | 38 ++++------ rsvg_internals/src/filters/displacement_map.rs | 13 ++-- rsvg_internals/src/filters/error.rs | 26 +++---- rsvg_internals/src/filters/flood.rs | 5 +- rsvg_internals/src/filters/gaussian_blur.rs | 82 ++++++++-------------- rsvg_internals/src/filters/image.rs | 9 ++- .../src/filters/light/diffuse_lighting.rs | 30 +++----- .../src/filters/light/specular_lighting.rs | 30 +++----- rsvg_internals/src/filters/merge.rs | 10 +-- rsvg_internals/src/filters/morphology.rs | 5 +- rsvg_internals/src/filters/offset.rs | 5 +- rsvg_internals/src/filters/tile.rs | 7 +- rsvg_internals/src/filters/turbulence.rs | 5 +- 18 files changed, 127 insertions(+), 206 deletions(-) commit b8fef500d1c44a29126fef6c3f4c85a47fd314aa Author: Jordan Petridis Date: Sun Jul 15 15:54:36 2018 +0300 cargo fmt rsvg_internals/src/state.rs | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-)