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

778 Коммитов

Автор SHA1 Сообщение Дата
sotaro 624fefcfd6 Bug 1418202 - Serialize ProgramBinary to/from blob/disk r=nical 2018-05-31 15:07:34 +09:00
Kartikaya Gupta e9a2771d52 Bug 1464473 - Update for API change in WR PR 2768. r=nical
MozReview-Commit-ID: ARLaXz9K0i7

--HG--
extra : rebase_source : 6c4897ab613472d5b24e5bcd200d55eaaa8ebf4c
2018-05-29 08:46:41 -04:00
Kartikaya Gupta f50bd712ac Bug 1464473 - Update for API change in WR PR 2764. r=Gankro
MozReview-Commit-ID: AScuSY0OViR

--HG--
extra : rebase_source : 7d8e98c0fc46c2759752b08d1555da99e8e2ff6b
2018-05-29 08:45:48 -04:00
Kartikaya Gupta 10f4292c33 Bug 1464473 - Update webrender to 3829687ffbe8d55885d71a3d5e5e79216251548f. r=Gankro
MozReview-Commit-ID: 100EQ2cTdj4

--HG--
extra : rebase_source : 22829dcb9b4a4b07a9b76aea6f1df5c9a1f1b488
2018-05-29 08:45:25 -04:00
Kartikaya Gupta d807b18531 Bug 1417784 - Shift how the AsyncImagePipelineManager is notified of updates. r=sotaro
Instead of notifying the AsyncImagePipelineManager on the compositor
thread via the CompositorBridgeParent, we can send it the new pipeline
info directly from the RenderThread after the update happens. This
effectively splits the AsyncImagePipelineManager update-processing into
two parts: one that takes in the new pipeline info and one that process
it. This allows us to invoke the processing step from other code running
on the compositor thread, which we will need to do in the next patch.

MozReview-Commit-ID: 7xhm8I7bY4C

--HG--
extra : rebase_source : bfa62e326fd830bc2ef771138e5008fb2bc0d6b8
2018-05-28 11:29:41 -04:00
Kartikaya Gupta af64629a66 Bug 1417784 - Use a CompositorBridgeParent* instead of a base class pointer. r=sotaro
We do a silent upcast from CompositorBridgeParent* to the base class and
pass it around as a CompositorBridgeParentBase* for no reason. Avoiding
this simplifies the code slightly and avoids virtual function overhead.
We do need to move a couple of functions in CompositorBridgeParent from
protected scope to public scope.

MozReview-Commit-ID: 9Zq3GwxEXpr

--HG--
extra : rebase_source : 67346159e7d99ca7fc2fe0052e85aa6618b50d27
2018-05-28 11:29:41 -04:00
Kartikaya Gupta 8e203673f1 Bug 1463416 - use new WR subpixel positioning API from WR PR 2738. r=Gankro
Patch originally developed on bug 1458921 but needs to land with the WR update.

MozReview-Commit-ID: 82BYyNWBAfn

--HG--
extra : rebase_source : e6bca2f446c019fd41a37c2c28db73bbe1cfc216
2018-05-26 11:09:21 -04:00
Kartikaya Gupta 0e92bc1c16 Bug 1463416 - Update for API changes in WR PR 2718. r=nical
MozReview-Commit-ID: Ct8krYkLfHL

--HG--
extra : rebase_source : ed01919ad38b66d485ae395621167e059f4ec6d8
2018-05-26 11:09:21 -04:00
Kartikaya Gupta ca48941951 Bug 1463416 - Update webrender to cset 63c71ca9bbe4dec0ebc9c9bc8ab65b06a6b40641. r=Gankro
MozReview-Commit-ID: 21gmlBlV8En

--HG--
extra : rebase_source : 89e3746c4254b9a20ca811be6419eb3901b4f319
2018-05-26 11:09:20 -04:00
Kartikaya Gupta 26304e2c11 Bug 1462611 - Update webrender to commit bb354abbf84602d3d8357c63c4f0b1139ec4deb1. r=jrmuizel
MozReview-Commit-ID: KiJVmU52MMd

--HG--
extra : rebase_source : edda638057baa61935e15c2d940994ab6dad0035
2018-05-22 09:38:19 -04:00
Kartikaya Gupta 8e7e2dbdb4 Bug 1454042 - Allow missing pipeline information for cross-process iframes. r=sotaro
We should always have the pipeline information for in-process things like
async images, but for cross-process iframes we might not have the information
right away if the content process doesn't get around to sending it for a while.

MozReview-Commit-ID: 18F5nqilXoV

--HG--
extra : rebase_source : 610046cbaaefb38b8e11bda857fd64a00722df27
2018-05-18 10:31:18 -04:00
Nicolas Silva 5424a4d26a Bug 1461342 - Update WebRender bindings after changes in PR #2763. r=kats
MozReview-Commit-ID: 8GAAvPh41eP

--HG--
extra : rebase_source : ebd0012cb5886df33036264f7c6e79c6b4607262
2018-05-18 08:28:33 -04:00
Kartikaya Gupta 16dd5e2b2f Bug 1461342 - Update for API change in WR PR 2762. r=jrmuizel
MozReview-Commit-ID: 3MHCV00262v

--HG--
extra : rebase_source : 2e504a215eb5edd69e30bea3539ac11239d490de
2018-05-18 08:28:26 -04:00
Kartikaya Gupta f7cfb71dcb Bug 1461342 - Update webrender to commit 672f480af48b0ad69c1b2781151278d99816763a. r=jrmuizel
MozReview-Commit-ID: 2mwEtwE2flc

--HG--
extra : rebase_source : d12a363446b07d2c4525bdd9eec42167097ccbe9
2018-05-18 08:28:15 -04:00
Hiroyuki Ikezoe ea397e2c09 Bug 1460389 - Use non-animated (static) value if the animation is in not in-effect. r=birtles,kats
MozReview-Commit-ID: 87YgNy0RkKt

--HG--
extra : rebase_source : ac77b639a558197082f4ac52c02a9988bb2a9194
2018-05-15 09:02:38 +09:00
Hiroyuki Ikezoe 586992e21b Bug 1460389 - Remove TransactionBuilder::AppendTransformProperties. r=kats
This function is no longer used since we introduced TransactionWrapper class in
bug 1451469.

MozReview-Commit-ID: FGxi6thbxcP

--HG--
extra : rebase_source : ef5628f8bffb5c1fedf6de80056d4ebba41a9edf
2018-05-15 08:59:29 +09:00
Kartikaya Gupta 948e9e9519 Bug 1460861 - Update for API change in WR PR 2750. r=Gankro
MozReview-Commit-ID: F0T9oudhunt

--HG--
extra : rebase_source : 1156a8bf23919e5b49465c42ba2227a3408b30c5
2018-05-14 10:25:27 -04:00
Kartikaya Gupta d76b5fa54a Bug 1460861 - Update webrender to commit 9d20df4e76e3b19c569fd89965f70a2c278ff0c8. r=Gankro
MozReview-Commit-ID: C9hlaYMrM7W

--HG--
extra : rebase_source : 83eb50452bfa712dd011a90a1fc1ceeddbce758f
2018-05-14 10:25:05 -04:00
Kartikaya Gupta 65a4d7b8f6 Bug 1459935 - Update for API change in WR PR 2747. r=jrmuizel
MozReview-Commit-ID: CXPExT8Ho7p

--HG--
extra : rebase_source : 9bbb52b70f1e6c750028961125215e62ddb5fb76
2018-05-11 09:15:24 -04:00
Kartikaya Gupta 5681e385b8 Bug 1459935 - Update webrender to commit 4811a6e7c06f9dd1b4056e5f5e66983842983ba0. r=jrmuizel
MozReview-Commit-ID: HUUVwbPauIk

--HG--
extra : rebase_source : 619a602c1c1730c66e517367c3fc11df76bd9479
2018-05-11 09:14:03 -04:00
Kartikaya Gupta 2b4b8a09ab Bug 1457466 - Make the GenerateFrame transaction bypass the scene builder thread. r=nical
This allows frames to be generated by the render backend thread even
while the scene builder thread is busy with a long scene build. The
GenerateFrame transaction also contains APZ and OMTA information, so
this allows the user to scroll and view OMTAnimations during long scene
builds.

MozReview-Commit-ID: KG5YC2KwIaH

--HG--
extra : rebase_source : 3ba559aa22a3a036a3b3a034ea20caacdc8c864a
2018-05-11 09:09:19 -04:00
Kartikaya Gupta d3693ff0d7 Bug 1457466 - Trigger a render/composite after an async scene build has been swapped in. r=nical
MozReview-Commit-ID: DLROm9gg544

--HG--
extra : rebase_source : d7ecffdfcb87b3148e5486b4f6810a6e73a9dcf3
2018-05-11 09:09:16 -04:00
Kartikaya Gupta 27baa6b4f2 Bug 1460495 - When sending a transaction, ensure the new transaction that takes its place has the same async-scene-build flag set. r=sotaro
MozReview-Commit-ID: HYwUwqE2P2O

--HG--
extra : rebase_source : 9540a4dc271d51b5d517fb6498d54d0c55eec6c6
2018-05-10 13:05:22 -04:00
Kartikaya Gupta 85e5ccd033 Bug 1458598 - Expose the generated reference frame id for stacking contexts. r=mstange
This is just plumbing, no functional changes yet.

MozReview-Commit-ID: FlmnMVammse

--HG--
extra : rebase_source : edede45a77a829dbd125dc1f18a4c2a4bc8087c1
2018-05-08 09:16:26 -04:00
Martin Robinson 2d70c66a68 Bug 1458870 - Changes necessary to deal with new WebRender nine-patch API from PR 2724. r=jrmuizel
MozReview-Commit-ID: 9217FeM4VJH

--HG--
extra : rebase_source : 72f5ab352a8d70149a2306eed9c7afc87405636e
2018-05-08 10:36:23 -04:00
Kartikaya Gupta c7cceabe9a Bug 1458870 - Update webrender to commit 9a3bc6b965554c04c0bba326cdee45240c3b4ba7. r=jrmuizel
MozReview-Commit-ID: J3QepnGtmOs

--HG--
extra : rebase_source : 761203f2ec165d2ca1f88c9ef00630e200e7eadc
2018-05-08 09:33:03 -04:00
Kartikaya Gupta 1eb717ccf5 Bug 1377187 - Rewrite the clipping code to use the new clipchain API. r=mstange
The clip chain API in webrender allows us to build the clip state in WR
so that it matches the gecko display list more closely. This patch throws
away ScrollingLayersHelper.* and introduces ClipManager.* which pushes
the clip state to WR using the new method. A quick summary of the new
method is below.

Each display item in gecko has a DisplayItemClipChain which is a chain
of individual clips. The individual clips are defined in WR, and the
clip ids for those clips are put into a WR clip chain using the new
define_clip_chain API. Furthermore, each clip chain can also have a
parent chain, which is used to link a DisplayItemClipChain to the parent
display item's DisplayItemClipChain. This allows the WR clip state to
closely match the structure of the gecko display list clip state,
resulting in more correct behaviour.

There are a few other major changes that are lumped into this patch and
that were tricky to separate into their own patches:
- The collapsing of WrScrollId and WrStickyId into WrClipId. On the WR
  side all the clip ids are treated the same anyway. Trying to preserve
  the arbitrary distinction on the gecko side was resulting in
  increasingly convoluted code, with different kinds of Variant<..>
  types in the method signatures. It was much simpler and resulted in a
  bunch of code deletion to just collapse the types.
- Moving the "override" mechanism from WebRenderAPI to ClipManager. The
  override mechanism (explained in ClipManager.h) was simplified by
  moving it into ClipManager, because it removed the need for tracking
  additional clip stack state in WebRenderAPI.

MozReview-Commit-ID: GGbdFyJGprK

--HG--
extra : rebase_source : baa56ff179e917b0ab5a5c186a3a415761f8050a
2018-05-08 09:08:39 -04:00
Kartikaya Gupta 1f11e1e04e Bug 1377187 - Simplify code to define clips and scroll layers. r=mstange
This is a refactoring that moves the "parent clip id" determination from
bindings.rs into WebRenderAPI.cpp. This should be functionally
identical.

MozReview-Commit-ID: 36rQmsH5E7J

--HG--
extra : rebase_source : f376e71f7681ec3f67e0ab4f2e3035da4edf2a5b
2018-05-08 09:07:30 -04:00
Kartikaya Gupta 4cb7167284 Bug 1459714 - Use a single transaction for all things associated with a new display list. r=sotaro
This ensures the commands to delete compositables are received by WR in the same
transaction as the updates to the display list that removes the references to
those compositables. Otherwise, WR can try to do a scene build on the intermediate
state which results in missing pipeline errors.

MozReview-Commit-ID: ByOHCFWSSjt

--HG--
extra : rebase_source : bcc0f129cbd75e3e9e3543236591b22687d39090
2018-05-08 08:49:44 -04:00
sotaro fbaa7511c1 Bug 1459525 - Remove wr_shutdown_log_for_gpu_process() r=jrmuizel 2018-05-08 11:37:39 +09:00
Alexis Beingessner 239a528013 Bug 1435094 - wire up GlyphRasterSpace to nsDisplayTransform. r=kats,mstange
When a transform thinks it's animated we should abandon screen rasterization
and instead favour local rasterization. This produces a more visually
pleasant rendering, as pixel-snapping "wobbles" the text between
frames.

The float scale of GlyphRasterSpace::Local is currently unused, but this
PR tries its best to set it to a reasonable value, based on discussion
with glennw about the intended semantics. We agreed it should specify
the scale *relative* to the parent stacking context, which means it's
just whatever scaling the stacking context's transform applies. It's
possible we'll need to clamp this value or make it properly 2-dimensional
later on.

Some book-keeping is added to StackingContextHelper to ensure that
GlyphRasterSpace::Screen is never requested by a descendent
of a stacking context using GlyphRasterSpace::Local.

nsDisplayMask is changed to use a StackingContextHelper to ensure
rasterSpace is properly propagated.

In addition, this is the first commit making use of cbindgen's new support
for bridging Rust enums natively into C++! This bumps our minimum cbindgen
to 6.0.0 (just released).

MozReview-Commit-ID: 9AlsB6nUheB

--HG--
extra : rebase_source : 247e5b197e998682cb4bb74f6f9319a9a4dd3264
2018-05-03 20:38:37 -04:00
sotaro b482332d39 Bug 1457387 - Remove WrExternalLogHandler r=jrmuizel 2018-05-04 14:31:32 +09:00
Ciure Andrei 9be98c9d63 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-05-04 00:56:01 +03:00
Jonathan Kew 7dbe882858 Bug 1457254 - Don't pass true for aIsDataFont when creating an UnscaledFontMac from AddNativeFontHandle, this is for installed fonts. r=lsalzman 2018-05-03 22:00:53 +01:00
Kartikaya Gupta c6b419d0eb Bug 1457891 - Update webrender to commit 8da531dc2cd77a4dadbfe632b04e76454f51ac9f. r=jrmuizel
MozReview-Commit-ID: HTqjYp9gFwA

--HG--
extra : rebase_source : 184b9afc8834819c7bace70ea51d81642d2e17ff
2018-05-03 09:00:55 -04:00
Kartikaya Gupta 9d0713c20d Bug 1457448 - Ensure we flush the async scene builder thread before snapshotting. r=nical
MozReview-Commit-ID: 3XTFWiEmk0p

--HG--
extra : rebase_source : 0547263009cfb48bb7f010662d57734ed57f63c7
2018-04-27 10:46:21 -04:00
Kartikaya Gupta 4e2f121981 Bug 1457241 - Update webrender to commit 4b65822a2f7e1fed246a492f9fe193ede2f37d74. r=jrmuizel
MozReview-Commit-ID: EIE8tuyH8Ai

--HG--
extra : rebase_source : 8886acf54a54822ee1de326a6ad082edd069dea1
2018-04-30 10:12:52 -04:00
Kartikaya Gupta 3bb1df5d75 Bug 1453360 - Rename NotifyDidCompositeToPipeline to NotifyPipelineRendered. r=nical
This also rearranges the method implementation slightly to make the next
patch easier to read. This patch should have zero functional changes,
it's just refactoring.

MozReview-Commit-ID: 53StJ0TH3IT

--HG--
extra : rebase_source : 2f3aeb54271da75a7e051afc24b8a4c96f8496f2
2018-04-27 10:32:30 -04:00
Kartikaya Gupta f7c175a667 Bug 1456978 - Ensure that all generate_frame transactions end up clearing the pending frame count. r=sotaro
This prevents us from getting stuck in the frame throttling code where
TooManyPendingFrames always returns true.

MozReview-Commit-ID: 92tybPOaOTP

--HG--
extra : rebase_source : 8934f89a191759e85578db3dfde9e017a03a82eb
2018-04-27 07:41:03 -04:00
Kartikaya Gupta 302aed6dcf Bug 1456978 - Remove redundant construction of WindowId. r=sotaro
MozReview-Commit-ID: 2XiVcQJotRv

--HG--
extra : rebase_source : ecfffd3b36bbd69f7f252240275cbc632340ab41
2018-04-27 07:41:03 -04:00
Kartikaya Gupta 4b12c6a2da Bug 1456978 - Rename function to a more appropriate name. r=sotaro
MozReview-Commit-ID: 2mVFcPsK6oe

--HG--
extra : rebase_source : 3fef0fbd0c0b42214d638b204c8753de1eca8d67
2018-04-27 07:41:03 -04:00
Cosmin Sabou 68fdb6cf4f Merge inbound to mozilla-central. a=merge 2018-04-27 13:04:36 +03:00
Andrew Osmond 63d93fdc78 Bug 1425484 - Part 3. Integrate shared surfaces with the blob image recordings. r=jrmuizel 2018-04-26 19:00:16 -04:00
Lee Salzman 2942892fa9 Bug 1448703 - follow-up - disambiguate unknown font from cleared all. r=me 2018-04-26 11:58:49 -04:00
Andreea Pavel b1e3552b06 Backed out changeset 81601f1ab879 (bug 1448703) for build bustages at builds/worker/workspace/build/src/gfx/webrender_bindings/Moz2DImageRenderer.cpp:108 on a CLOSED TREE 2018-04-26 18:52:48 +03:00
Lee Salzman ff6c421be0 Bug 1448703 - follow-up - disambiguate unknown font from cleared all. r=me 2018-04-26 11:38:09 -04:00
Noemi Erli 0ec806df24 Backed out changeset f8ad5962fc89 (bug 1435094) bustage in /builds/worker/workspace/build/src/layout/painting/nsDisplayList.cpp on a CLOSED TREE 2018-04-27 04:14:39 +03:00
Alexis Beingessner 4bb2580c85 Bug 1435094 - wire up GlyphRasterSpace to nsDisplayTransform. r=kats,mstange
When a transform thinks it's animated we should abandon screen rasterization
and instead favour local rasterization. This produces a more visually
pleasant rendering, as pixel-snapping "wobbles" the text between
frames.

The float scale of GlyphRasterSpace::Local is currently unused, but this
PR tries its best to set it to a reasonable value, based on discussion
with glennw about the intended semantics. We agreed it should specify
the scale *relative* to the parent stacking context, which means it's
just whatever scaling the stacking context's transform applies. It's
possible we'll need to clamp this value or make it properly 2-dimensional
later on.

Some book-keeping is added to StackingContextHelper to ensure that
GlyphRasterSpace::Screen is never requested by a descendent
of a stacking context using GlyphRasterSpace::Local.

nsDisplayMask is changed to use a StackingContextHelper to ensure
rasterSpace is properly propagated.

In addition, this is the first commit making use of cbindgen's new support
for bridging Rust enums natively into C++! This bumps our minimum cbindgen
to 6.0.0 (just released).

MozReview-Commit-ID: 9AlsB6nUheB

--HG--
extra : rebase_source : 978e51dbedeb1542e0829752b7f828ffeb2872e9
2018-04-25 10:47:34 -04:00
shindli c72db9830d Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-27 00:44:51 +03:00
Kartikaya Gupta 0f5d6c9649 Bug 1456114 - Update for API change in WR PR 2691. r=jrmuizel
MozReview-Commit-ID: Eb1wFVY39uu

--HG--
extra : rebase_source : c2c14ebaeecad5b45d17a212e7c436c3b2f4ccaf
2018-04-26 14:15:40 -04:00