Граф коммитов

429 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta 36d9b3e3e4 Bug 1401244 - Update call to set_window_parameters for API change in WR cset f88825b. r=jrmuizel
MozReview-Commit-ID: AqpuZiClTjk

--HG--
extra : rebase_source : 77989c868712731fea42f4481c23167bb94aea8e
2017-09-22 08:54:32 -04:00
Kartikaya Gupta f1c3046b7d Bug 1401244 - Update webrender to commit 2a005f156b9f25862a2dc8443b57be37168233f2. r=jrmuizel
MozReview-Commit-ID: IJ9TXtRw8j3

--HG--
extra : rebase_source : fc0f28ef5535aad1b33548ee4f6825cb3bbea0a3
2017-09-22 08:52:50 -04:00
Ethan Lin fb32d577e9 Bug 1398706 - Always create new clip ids in ScrollingLayersHelper if it's inside a mask. r=kats
MozReview-Commit-ID: Hhsbgpqddo1

--HG--
extra : rebase_source : 40507644148da5bfe6ca3dd5f1f438ac9e7e10ff
2017-09-19 17:05:22 +08:00
Kartikaya Gupta 59ea9aa15f Bug 1399505 - Expose the API to add sticky frames to the WR display list. r=mstange
MozReview-Commit-ID: 1SEz6bqMoME

--HG--
extra : rebase_source : 133853e09f8bc5b1e7d725a53ef3d6a0ab1fdc00
2017-09-21 10:11:39 -04:00
Morris Tseng d17dfbe119 Bug 1392200 - Update interfaces for backface-visibility support. r=kats
MozReview-Commit-ID: 6ctGRSUI3pB
2017-09-21 14:41:38 +08:00
Jeff Muizelaar d1f3804a22 Bug 1401606 - Change a bunch of asserts! to debug_asserts! r=kats
I saw these show up a bit in profiles and we have a better idea which
threads to call things on now.
2017-09-20 23:11:20 -04:00
Martin Robinson 8069c9b013 Bug 1400216 - Update bindings.rs for interfaces changed in WR cset aabd0936. r=kats
MozReview-Commit-ID: HMNal0zNJZi

--HG--
extra : rebase_source : 23a4a40af6dbb035ae3c7a7a82133629dd7c9da5
2017-09-19 12:16:33 -04:00
Sebastian Hengst 09dd8ba13f merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : ee605ac050c0532521f96bdeda5ef20fb0099519
2017-09-15 00:18:43 +02:00
Morris Tseng d4f068b487 Bug 1398241 - Update bindings.rs for interfaces changed in WR cset 02e21a58. r=kats
MozReview-Commit-ID: Aq6jP4tcuoU

--HG--
extra : rebase_source : eb5c3ada835582c8c18b8821fff5829d869933b1
2017-09-14 08:18:21 -04:00
Kartikaya Gupta 8ad7a18daf Bug 1398241 - Update webrender to commit 7d9444a24fb98bcc41afdca2a5bf145d514500f1. r=jrmuizel
MozReview-Commit-ID: 7faAn2asOOw

--HG--
extra : rebase_source : 9203005b5edf5a846aceb16f8f8d6f7c9082898d
2017-09-14 08:14:53 -04:00
Jeff Muizelaar 23df55f0ef Bug 1397922. Correctly set the opacity of blob images. r=Gankro
Currently we're always marking them opaque even when they're not.
2017-09-09 17:43:45 -04:00
Nicolas Silva 59e80c8f7e Bug 1393031 - Use shared memory to pass resource update data. r=jrmuizel 2017-09-14 18:48:55 +02:00
Sotaro Ikeda 354fb7d239 Bug 1390138 - Add render() error handling to gecko. r=jrmuizel 2017-09-05 15:18:15 -04:00
Nicolas Silva 38b33aa593 Bug 1393031 - Separate WebRenderAPI and ResourceUpdateQueue. r=sotaro 2017-09-04 13:59:42 +02:00
Nicolas Silva 4b7b1e5992 Bug 1393031 - Use the ResourceUpdateQueue API on the content side. r=jrmuizel 2017-09-04 13:59:36 +02:00
Nicolas Silva 09e43ac029 Bug 1393031 - Expose webrender transactions at the ipc boundary. r=jrmuizel, r=kanru 2017-09-04 13:59:26 +02:00
Nicolas Silva 2830bb5952 Bug 1393031 - Make ResourceUpdateQueue move-only. r=sotaro 2017-09-04 13:59:17 +02:00
Nicolas Silva b067cea354 Bug 1393031 - Expose webrender resource updates in the C++ wrapper. r=sotaro 2017-09-04 13:59:12 +02:00
Sebastian Hengst 43bc951ac7 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: ES9rKhiQo10
2017-09-01 10:38:51 +02:00
Wes Kocher 6472928439 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 77Uz3uceUmk
2017-08-31 16:56:23 -07:00
Lee Salzman 251cd46deb Bug 1393055 - map ScaledFonts to WebRender FontInstanceKeys. r=jrmuizel
MozReview-Commit-ID: AadEI5CnTZ1
2017-08-30 13:45:11 -04:00
Kartikaya Gupta 4abab82626 Bug 1395237 - Fix for change in WR cset da0b2138. r=jrmuizel
MozReview-Commit-ID: LC6rp1Vysdp
2017-08-31 14:09:26 -04:00
Kartikaya Gupta 9a69b9b3c6 Bug 1395237 - Update webrender to commit 81cba6b139c4c1061cab6a1c38acf2ae7f50445d. r=jrmuizel
Includes Cargo.lock updates.

MozReview-Commit-ID: GsEbblWnzT3
2017-08-31 14:09:26 -04:00
Kartikaya Gupta 21ac463b1b Bug 1395212 - Avoid computing the entire ScrollMetadata for cases where we just need the scroll id. r=mstange
MozReview-Commit-ID: BEYfq2EqIel

--HG--
extra : rebase_source : 7315123162b80758be347c243375e28462352e06
2017-08-30 14:51:19 -04:00
Kartikaya Gupta 543988e106 Bug 1395212 - Update wr::DisplayListBuilder to expose separate APIs for defining and pushing scroll layers. r=mstange
This makes the DisplayListBuilder scrolling API more consistent with the
clipping API, and allows for more optimization at the call site (in the next
patch).

MozReview-Commit-ID: LdCA7wkXDwF

--HG--
extra : rebase_source : 1fe934e778c597f6a639ad2ecbda46995f8fd09e
2017-08-30 14:51:19 -04:00
Kartikaya Gupta b8355b02c7 Bug 1395212 - Hoist the scroll layer deduplication code out of bindings.rs into wr::DisplayListBuilder. r=mstange
This also splits the wr_dp_push_scroll_layer function in bindings.rs into two
separate functions. This makes the API consistent with clipping, and also allows
for optimizations in the upcoming patches.

MozReview-Commit-ID: IXnOZK0dZm

--HG--
extra : rebase_source : aa28875433a03ee9d6c388750f022958958d05e9
2017-08-30 14:51:19 -04:00
sotaro ac34705d9c Bug 1395110 - Remove ScopedBindTextureUnit from RenderDXGITextureHostOGL::EnsureLockable() r=nical 2017-08-30 21:29:48 +09:00
sotaro 11c145a7c1 Bug 1394338 - Add WebRender error handling to RendererOGL r=nical 2017-08-30 09:10:22 +09:00
Kartikaya Gupta 8933bc1c63 Bug 1394518 - Log the mWrState pointer in WRDL_LOG so we can distinguish the output from different pipelines. r=jrmuizel
MozReview-Commit-ID: A3KDJyBmSCX

--HG--
extra : rebase_source : e5f8f4a3e6e16ed88bb8c8acf28f97fd45f02850
2017-08-28 14:20:25 -04:00
Dzmitry Malyshau 0f699bc3ed Bug 1393468 - Fix for changes in WR cset 460a1ae9. r=jrmuizel
MozReview-Commit-ID: FOc07gJbfZY

--HG--
extra : rebase_source : 794c0bcc23091920ea35af76f9efb1997a963521
2017-08-28 09:27:48 -04:00
Kartikaya Gupta 2b2a05eaba Bug 1393468 - Regenerate FFI bindings header. r=jrmuizel
MozReview-Commit-ID: Kjy5LKXpicj

--HG--
extra : rebase_source : 690032246d0bdba4c5ee1439edb5551ffd9f60ba
2017-08-28 09:27:05 -04:00
Jeff Muizelaar 1dcc5366ff Bug 1387550 - Support tiled drawing of blob images in Gecko.
Tiling will be used when we need an image that's larger than
the max texture size.
2017-08-26 17:31:25 -04:00
Sebastian Hengst 4814ba9f4f Backed out changeset 326d1e6cf7b1 (bug 1393031) for bustage at gfx/layers/opengl/MacIOSurfaceTextureHostOGL.cpp:178: no member named 'AddExternalImage' in 'mozilla::wr::WebRenderAPI' on OS X and also bustage on Windows. r=backout on a CLOSED TREE 2017-08-25 12:42:01 +02:00
Sebastian Hengst 82246334ad Backed out changeset 663105088e1e (bug 1393031) 2017-08-25 12:40:37 +02:00
Nicolas Silva abdcea3c3b Bug 1393031 - Make ResourceUpdateQueue move-only. r=sotaro 2017-08-25 11:58:05 +02:00
Nicolas Silva d415c1134b Bug 1393031 - Expose WebRender's ResourceUpdates to C++. r=sotaro 2017-08-25 11:58:00 +02:00
Kartikaya Gupta 20b72b068b Bug 1393461 - Regenerate webrender_ffi_generated with cbindgen:0.1.23. r=jrmuizel
MozReview-Commit-ID: 7SX5isYVTl0

--HG--
extra : rebase_source : 2ee4ed248b7012268a596974b2e468f01cd419c9
2017-08-24 10:33:24 -04:00
Kartikaya Gupta 93e44f9dee Bug 1393461 - Update cbindgen.toml to note that cbindgen needs nightly. r=jrmuizel
MozReview-Commit-ID: Fs8VvriGOnA

--HG--
extra : rebase_source : d1838920e02a797bd4f85bec25f545294ee10576
2017-08-24 10:17:12 -04:00
Ethan Lin 376639c99a Bug 1392921 - In TopmostScrollId(), return FrameMetrics::NULL_SCROLL_ID when the scroll id stack is empty. r=kats
MozReview-Commit-ID: 3kmgsisMhW5

--HG--
extra : rebase_source : d9e20940fcc5c1790dbf4f3b6b2769b1fd054121
2017-08-23 14:46:38 +08:00
Nicolas Silva 9f6f1a7d88 Bug 1390840 - Add prefs to display the debugging view of webrender's texture cache and intermediate targets. r=jrmuizel 2017-08-23 12:00:37 +02:00
Sebastian Hengst 029f702dfd Backed out changeset 483991689217 (bug 1390840) for bustage at dist/include/mozilla/webrender/webrender_ffi_generated.h:1199: expected ',' before ')' token. r=backout 2017-08-21 18:39:59 +02:00
Sebastian Hengst 441fc1a176 Backed out changeset b9c53ad8893b (bug 1390840) 2017-08-21 18:38:22 +02:00
Nicolas Silva 55bbef54aa Bug 1390840 - Add prefs to display the debugging view of webrender's texture cache and intermediate targets. r=jrmuizel 2017-08-21 18:22:56 +02:00
Nicolas Silva 27126ac4d3 Bug 1390840 - Use cbindgen 0.1.21 in webrender's binding. r=jrmuizel 2017-08-21 18:22:45 +02:00
Kartikaya Gupta 4d8c254efc Bug 1389497 - Re-generate FFI header for change in WR cset 615bbe8. r=jrmuizel
MozReview-Commit-ID: 1rgTEUYOW1j

--HG--
extra : rebase_source : b5e016bf6428564c0815fcdd1eac0c8fbfc7cd0b
2017-08-18 09:13:15 -04:00
Kartikaya Gupta 36bcefa513 Bug 1389497 - Update bindings for API change in WR cset 63ec62c. r=kvark
MozReview-Commit-ID: 7vCZWSfb9Hh

--HG--
extra : rebase_source : 2be5ec3723c10d10fd912abe776c7a993e3ac57c
2017-08-18 08:57:09 -04:00
Kartikaya Gupta 83c2515b8a Bug 1389497 - Update webrender to commit 1007a65c6dd1fdfb8b39d57d7faff3cae7b32e0c. r=jrmuizel
MozReview-Commit-ID: LLg2tnX9LYu

--HG--
extra : rebase_source : 9fbbd518af8a3e2727edfe92ebf6171f272e9d65
2017-08-18 08:51:39 -04:00
Kartikaya Gupta 7017055b92 Bug 1390804 - When pushing a mask clip, don't record it in DisplayListBuilder's clip stack. r=ethlin
Recording mask clips in the clip stack changes the value of TopmostClipId()
which confuses the code in ScrollingLayersHelper. The mask clip can be
thought of as an "out-of-band" clip that ScrollingLayersHelper doesn't
need to know about. This patch adds a mechanism for pushing such
"out-of-band" clips without touching the clip stack.

MozReview-Commit-ID: 8Zeqtigk0cj

--HG--
extra : rebase_source : 35176f3c9d98d186f78d7a0ff44845c7c3c9f67e
2017-08-17 13:54:25 -04:00
Alexis Beingessner 9c4535798f Bug 1357545 - handle text-shadows/decorations with webrender (layers-free) r=jrmuizel
This replaces our DrawTargetCapture hack with a similar but more powerful TextDrawTarget
hack. The old design had several limitations:

* It couldn't handle shadows
* It couldn't handle selections
* It couldn't handle font/color changes in a single text-run
* It couldn't handle decorations (underline, overline, line-through)

Mostly this was a consequence of the fact that it only modified the start and end
of the rendering algorithm, and therefore couldn't distinguish draw calls for different
parts of the text.

This new design is based on a similar principle as DrawTargetCapture, but also passes
down the TextDrawTarget in the drawing arguments, so that the drawing algorithm can
notify us of changes in phase (e.g. "now we're doing underlines"). This also lets us
directly pass data to TextDrawTarget when possible (as is done for shadows and selections).

In doing this, I also improved the logic copied from ContainsOnlyColoredGlyphs to handle
changes in font/color mid-text-run (which can happen because of font fallback).

The end result is:

* We handle all shadows natively
* We handle all selections natively
* We handle all decorations natively
* We handle font/color changes in a single text-run
    * Although we still hackily intercept draw calls
    * But we don't need to buffer commands, reducing total memcopies

In addition, this change integrates webrender's PushTextShadow and PushLine APIs,
which were designed for this use case. This is only done in the layerless path;
WebrenderTextLayer continues to be semantically limited, as we aren't actively
maintaining non-layers-free webrender anymore.

This also doesn't modify TextLayers, to minimize churn. In theory they can be
augmented to support the richer semantics that TextDrawTarget has, but there's
little motivation since the API is largely unused with this change.

MozReview-Commit-ID: 4IjTsSW335h

--HG--
extra : rebase_source : d69f69648ade5c7a8e6bb756f4b8ab9e2543e576
2017-06-19 10:58:28 -04:00
Kartikaya Gupta 24d7292dde Bug 1389138 - Add helper to track the topmost scroll id on the WR stack. r=mstange
Note that when PushClipAndScrollInfo is called, we are pushing an
already-defined scrolling clip onto the stack, and anything that gets
pushed inside it is going to be defined as being inside that scrolling
clip. So we need to make sure to update the scroll id stack for those
calls as well. This was an oversight previously but it never mattered.

MozReview-Commit-ID: D40Gk00HYrq

--HG--
extra : rebase_source : 677a92f918481a73877f551b9ac32975e0110be9
2017-08-17 11:06:51 -04:00