Ryan Hunt
838d856d00
Bug 1356371 - Use cbindgen for WebRender bindings generation r=kats
...
This commit adds some directives to help cbindgen generate correct
structs and functions, removes some old FFI code that isn't needed
anymore, and regenerates webrender_ffi_generated.h
MozReview-Commit-ID: KZSEZEN671A
2017-04-13 15:45:51 -04:00
Ryan Hunt
e21c1641a7
Bug 1356371 - Create a WrExternalImageId because ExternalImageId is not repr(C) r=kats
...
This is only temporary as ExternalImageId has been made repr(C) upstream.
MozReview-Commit-ID: 1On7fRbNI4o
2017-04-13 15:31:09 -04:00
Ryan Hunt
eb7de9be41
Bug 1356057 - Add a WrGlyphInstance struct r=kats
...
MozReview-Commit-ID: ApIOZyS4VV7
2017-04-12 23:28:40 -04:00
Kartikaya Gupta
dfce6379eb
Bug 1354944 - Plug in the generated FFI header. r=jrmuizel
...
MozReview-Commit-ID: E6qlCffKH1s
2017-04-11 22:17:18 -04:00
Kartikaya Gupta
c7ca608eff
Bug 1355615 - Update wr_api_finalize_builder to take pointers on the C++ side to match the Rust side. r=jrmuizel
...
MozReview-Commit-ID: IskZgT17n42
2017-04-11 18:03:59 -04:00
Kartikaya Gupta
3c6cf54e02
Bug 1355612 - Make WrGlyphInstance hold a Point2D instead of raw x/y to match the Rust side. r=jrmuizel
...
MozReview-Commit-ID: 7OtctQ4gWyv
2017-04-11 18:00:50 -04:00
Kartikaya Gupta
3cd9ae859b
Bug 1355602 - Decouple pushing scroll layers from pushing stacking contexts. r=jrmuizel
...
This removes the call to push_scroll_layer in wr_push_stacking_context, so that
it's now possible to push a stacking context without necessarily pushing a
scroll layer. There is already a separate function to push a scroll layer so the
call sites can do that. This patch just changes all the call sites that were
pushing a stacking context to also push a scroll layer, so there should be no
functional change. Future patches can remove the spurious scroll layers.
MozReview-Commit-ID: FtCkc9JQd8l
2017-04-11 17:04:59 -04:00
Kartikaya Gupta
b9f4e30241
Bug 1355577 - Make the pointer in WrByteSlice const on the C++ side to match the Rust side. r=jrmuizel
...
MozReview-Commit-ID: FWCzZt8RAMj
2017-04-11 16:13:44 -04:00
Kartikaya Gupta
54c13996a3
Bug 1354946 - Add an explicit WrMatrix type for passing 4x4 matrices across the FFI boundary. r=rhunt
...
Right now we just cast from a float* on the C++ side to a LayoutTransform on
the Rust side, except the LayoutTransform isn't a repr(C) storage type, so
there's no guarantee that it will actually have the same layout. Adding an
explicit type and conversion code ensure that we are able to pass the matrix
across the boundary safely.
MozReview-Commit-ID: H3gK3g0K3xz
2017-04-11 08:33:58 -04:00
Kartikaya Gupta
0ab4fbb23b
Bug 1355187 - Update some of the ExternalImage data types to be more similar in Rust and C++. r=rhunt
...
The WrExternalImageId is currently a struct wrapping a uint64_t on the C++ side,
which is unnecessary as we can just typedef it directly to a uint64_t. On the
Rust side it's a tuple of (u64).
Also the WrExternalImageIdType enum should be WrExternalImageType for consistency.
MozReview-Commit-ID: DgOf4xfY9h3
2017-04-10 17:38:02 -04:00
Kartikaya Gupta
cb137d8428
Bug 1355187 - Rename some struct fields so that the Rust/C++ names are the same. r=rhunt
...
The binding generator just takes the Rust field names and uses that in the
generated C++ structs. So installing the autogenerated bindings is easier if
we make sure the names are the same ahead of time.
MozReview-Commit-ID: 6cuzmtI5Qqw
2017-04-10 17:38:02 -04:00
Kartikaya Gupta
4b146ed115
Merge m-c to graphics
...
MozReview-Commit-ID: ICVAgHmKVL4
2017-04-10 08:47:20 -04:00
Morris Tseng
feb2c3ef95
Bug 1347469 - Add bindings for gradient border. r=kats
...
MozReview-Commit-ID: H6OwWaeBYWY
2017-04-10 17:27:30 +08:00
Ethan Lin
c3bd8aa1bc
Bug 1351242 - Add webrender support for nsDisplayBackgroundImage image type. r=mchang
2017-04-07 14:53:16 +08:00
Lee Salzman
6ca29fbb02
Bug 1348980 - use UnscaledFont to track WebRender font keys. r=jrmuizel
2017-04-06 17:41:24 -04:00
Kartikaya Gupta
76551d31cc
Bug 1353735 - Fix return value of binding function. r=jrmuizel
...
MozReview-Commit-ID: 3COc4L4J5Y2
2017-04-05 11:18:52 -04:00
Ryan Hunt
5402853c16
Bug 1351480 - Update bindings for gradients. r=jrmuizel
...
MozReview-Commit-ID: 48bjXH4ZCBi
2017-03-31 19:18:44 -04:00
JerryShih
857444c0cf
Bug 1347062 - P2: use WrImageDescriptor for wr_api_add_external_image_handle(). r=nical,sotaro
...
MozReview-Commit-ID: 1dNQRZGeKaA
2017-03-31 22:29:14 +08:00
JerryShih
9d5de27a3c
Bug 1347062 - P1: add WrExternalImage binding utility function. r=nical,sotaro
...
MozReview-Commit-ID: 4oJvybXRuTX
2017-03-31 22:29:14 +08:00
Wes Kocher
5066a5dc90
Merge autoland to central, a=merge
...
MozReview-Commit-ID: 4DDSNU4ABBB
2017-03-27 17:03:30 -07:00
Nicolas Silva
381af6a4d1
Bug 1347641 - Implement the BlobImageRenderer binding glue. r=jrmuizel
2017-03-27 13:44:52 +02:00
Nicolas Silva
3fba55933f
Bug 1347641 - Add ByteSlice to pass constant u8 slices across ffi. r=jrmuizel
2017-03-27 13:44:22 +02:00
Kartikaya Gupta
078c898f7d
Merge m-c to graphics
...
MozReview-Commit-ID: 1rTRVEHequ9
2017-03-23 10:01:31 -04:00
Sotaro Ikeda
2b12e25a7f
Bug 1325911 - Update Gleam to v0.4. r=kats
...
MozReview-Commit-ID: 6QghwNrEC9V
2017-03-20 12:10:40 -04:00
Kartikaya Gupta
7dc4171ed2
Bug 1350986 - Add some gfxCriticalNote messages for WebRender startup failure codepaths. r=jrmuizel
...
MozReview-Commit-ID: 7VHA8QBMvJ8
2017-03-27 14:32:39 -04:00
Morris Tseng
02d2f424f0
Bug 1341156 - Modify webrender_ffi and add OpDPPushBorderImage. r=kats r=ethlin
...
MozReview-Commit-ID: Ct63gy6nk3q
2017-03-13 11:46:03 +08:00
Ryan Hunt
62e14e2b7d
Bug 1345975 - Sort WebRender binding definitions r=kats
...
MozReview-Commit-ID: B1Z5IcAq8Qm
2017-03-09 17:39:19 -05:00
Ryan Hunt
5fb553c67e
Bug 1345975 - Rename WrLayoutSize to WrSize r=kats
...
MozReview-Commit-ID: JY9YyoypFym
2017-03-09 16:58:33 -05:00
Ryan Hunt
d7f00f1fa2
Bug 1345907 - Use clip region instead of clip rect r=kats
2017-03-09 11:57:06 -05:00
Ryan Hunt
4f412add62
Bug 1345907 - Add bindings for ClipRegion r=kats
2017-03-09 11:54:16 -05:00
sotaro
2ccb9fc5dd
Bug 1345344 - Pass stride for ExternalImageBuffer r=nical
2017-03-09 11:10:09 +09:00
sotaro
e4aa155f04
Bug 1343764 - Add ExternalBuffer handling r=nical
2017-03-07 19:37:28 +09:00
Jeff Muizelaar
677ccdea94
Bug 1344396. Build the display lists directly. r=kats
...
This is a largely uninteresting patch that just uses the DisplayListBuilder
directly. A wonderful cleanup patch will come after this. One of the more
interesting pieces is the use of PushBuiltDisplayList. This is needed for
handling empty transactions. See https://github.com/servo/webrender/pull/934
for more info.
2017-03-06 23:16:30 -05:00
Jeff Muizelaar
fd22ad7eb4
Bug 1343019 - Call set_window_parameters as appropriate. r=kats
...
MozReview-Commit-ID: 14f4vetRM98
2017-03-06 17:41:51 -05:00
Kartikaya Gupta
4eecd7ad12
Bug 1343019 - Update webrender to cset 178a65d098afcda7de0298d80d423bc80c6426ba. r=jrmuizel
...
In addition to updating webrender and the third-party deps, this includes:
- Marking some more reftests as passing with the new version of webrender.
- Updating webrender bindings code to go with changes to push_stacking_context.
- Passing the window dimensions to the Renderer::new function.
MozReview-Commit-ID: 6dRHvAmIQ40
2017-03-06 18:46:30 -05:00
sotaro
8b11d7d6f8
Bug 1342833 - WebRenderBridgeParent::ClearResources() does not clear DisplayList r=jrmuizel
2017-03-06 10:42:17 +09:00
Kartikaya Gupta
b797d39787
Bug 1343984 - Comment out the unused WrExternalImageIdType stuff as it produces hard-to-remove webrender_bindings warnings. r=jrmuizel
...
MozReview-Commit-ID: 3CGCGPAVBNn
2017-03-02 16:26:17 -05:00
Jeff Muizelaar
0ad9d2a3e7
Bug 1341064. Send child side built display lists over gecko ipc to compositor.
2017-03-01 20:37:59 -05:00
sotaro
0c6930bf8f
Bug 1343457 - Update external image adding api r=kats
2017-03-02 10:22:40 +09:00
Jeff Muizelaar
2eaee83cba
Bug 1342558. Change SetRootDisplayList to consume built display lists. r=nical
2017-03-01 09:10:53 -05:00
JerryShih
fb96ad3886
Bug 1340997 - add external image callback in RendererOGL. r=sotaro
...
MozReview-Commit-ID: 8aCSe1iu44C
2017-03-01 17:08:56 +08:00
JerryShih
9c4f1a17a3
Bug 1340997 - rename the external image related structure in webrender_ffi. r=sotaro
...
The name of "WrExternalImageIdId" is a little bit strange.
MozReview-Commit-ID: 8pfWxg5XuYS
2017-03-01 17:08:56 +08:00
sotaro
68a497a1d6
Bug 1342380 - Enable VsyncScheduler again r=kats
2017-02-27 09:27:04 +09:00
Jeff Muizelaar
e421e711ab
Bug 1342246. Generate resource ids on the client side. r=lsalzman
2017-02-23 17:52:38 -05:00
Jeff Muizelaar
6c17be53a5
Bug 1341878. Separate out finishing the display list from sending it. r=sotaro
...
This adds the size to the DPEnd command so that we can use it in
SetRootDisplayList instead of storing it in WrState.
2017-02-23 16:12:40 -05:00
Kartikaya Gupta
5f2c670e9a
Bug 1342450 - Rename MOZ_ENABLE_WEBRENDER to MOZ_BUILD_WEBRENDER. r=rhunt
...
MozReview-Commit-ID: 3GkmCJJq8et
2017-03-22 17:36:25 -04:00
Mason Chang
c54dd84910
Bug 1340317 - Support box shadow outer offset and spread radius in WebRender box shadows. r=lsalzman
2017-02-16 15:05:34 -08:00
Mason Chang
8f7497ee5a
Bug 1339661. Declare WrBoxShadowClipMode a uint32_t. r=me
2017-02-17 09:08:59 -08:00
Ryan Hunt
e164984182
Bug 1340338 - Fix non enable-webrender build bustage r=me
2017-02-17 10:36:48 -05:00
Ryan Hunt
26ec0b48ef
Bug 1340338 - Add WebRender bindings for linear and radial gradients r=nical
2017-02-16 19:51:32 -05:00