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

1722 Коммитов

Автор SHA1 Сообщение Дата
sotaro c9b4baab9c Bug 1597861 - Pause compositor during hiding Wayland window r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D53906

--HG--
extra : moz-landing-system : lando
2019-12-02 06:56:27 +00:00
sotaro 0c611d19d9 Bug 1599653 - Support CanvasContextType::ImageBitmap with WebRender r=nical
Differential Revision: https://phabricator.services.mozilla.com/D54890

--HG--
extra : moz-landing-system : lando
2019-11-28 16:50:43 +00:00
Timothy Nikkel df4a65de6c Bug 1586843. Pass SideBits for fixed position content to webrender so it can pass it back via the HitTest api. r=botond
We add the SideBits to the data we store in the FixedPosScrollTargetTracker. nsDisplayCompositorHitTestInfo then passes the side bits when it sets hit test info. We then pack the side bits into the hit test info bits; luckily they were only using 12 of 16 bits. The wr HitTest api then extracts the side bits from the hit test info bits and passes them back.

Differential Revision: https://phabricator.services.mozilla.com/D54404

--HG--
extra : moz-landing-system : lando
2019-11-29 23:06:59 +00:00
Timothy Nikkel fb46cff121 Bug 1583380. Plumb SideBits from the display list to WebRenderScrollDataWrapper. r=botond
The plumbing from there to the HitTestingTreeNode is already in place for the non-webrender case.

Differential Revision: https://phabricator.services.mozilla.com/D54402

--HG--
extra : moz-landing-system : lando
2019-11-29 23:06:34 +00:00
Timothy Nikkel 297e2538f7 Bug 1583380. Plumb a fixed position webrender animation id from the display list to the HitTestingTreeNode. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D54399

--HG--
extra : moz-landing-system : lando
2019-11-29 23:11:18 +00:00
sotaro 5c0c09d6fe Bug 1597619 - Remove RequestsUpdatingEGLSurface() r=nical
Resume() could be used as a timing of creating EGLSurface.

Differential Revision: https://phabricator.services.mozilla.com/D53782

--HG--
extra : moz-landing-system : lando
2019-11-19 10:36:55 +00:00
sotaro 6c701a41a3 Bug 1596630 - Remove mSyncObject->Synchronize() in RenderCompositorANGLE::BeginFrame() r=nical
mSyncObject->Synchronize() was necessary to handle a case that D3D Texture was created on main thread of content process and the Texture does not have a keyed mutex. But with WebRender, the situation does not happen often. Further the Synchronize() is sometimes very slow. Therefore it is better to remove it from RenderCompositorANGLE::BeginFrame().

Canvas 2d does not use keyed mutex yet. Then the change adds keyed mutex usage for the canvas 2d.

D3D11DXVA2Manager still uses the Synchronize(). In this case, the Synchronize() is manually called in D3D11DXVA2Manager::CopyToImage(). Then RenderCompositorANGLE still needs to create SyncObjectHost.

Differential Revision: https://phabricator.services.mozilla.com/D53168

--HG--
extra : moz-landing-system : lando
2019-11-18 09:49:15 +00:00
Bob Owen 8f56d46eaf Bug 1596791: Invalidate the rendered frame when processing OpUpdatedAsyncImagePipeline commands. r=nical
This stops the potential build up of held textures during a series of empty
webrender transactions, because of a render not happening. The patch also only
sends the OpUpdatedAsyncImagePipeline command when a new texture has been
forwarded for the canvas, to prevent unnecessary invalidation.

Differential Revision: https://phabricator.services.mozilla.com/D53223

--HG--
extra : moz-landing-system : lando
2019-11-18 10:59:40 +00:00
James Hooks 6ea13e1732 Bug 1585806 - Make SideBits an enum class, add casting where necessary. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D51291

--HG--
extra : moz-landing-system : lando
2019-11-16 20:59:34 +00:00
Markus Stange d3a4eb5918 Bug 1576390 - Remove now-unused DrawWindowOverlay and WindowOverlayChanged methods. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D52748

--HG--
extra : moz-landing-system : lando
2019-11-13 02:24:06 +00:00
sotaro 19b4d3425b Bug 1594303 - Code clean up around RenderAndroidSurfaceTextureHostOGL r=jnicol
Removes NofityForUse() functions for simplicity.

Ensure that RenderTextureHost::PrepareForUse() is called before RenderTextureHost:: Lock(). When a task of calling RenderTextureHost::PrepareForUse() is simply posted to render thread, there is a case that RenderTextureHost:: Lock() is called before PrepareForUse() .

Differential Revision: https://phabricator.services.mozilla.com/D51974

--HG--
extra : moz-landing-system : lando
2019-11-08 12:52:16 +00:00
Nicolas Silva 6c7032b199 Bug 1585760 - Check that IPC is open before accessing parent protocol. r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D49164

--HG--
extra : moz-landing-system : lando
2019-11-04 14:38:33 +00:00
Barret Rennie e62c6d736d Bug 1581240 - Add an API to retrieve the collected frames from WebRender r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D47816

--HG--
extra : moz-landing-system : lando
2019-11-07 22:34:49 +00:00
Barret Rennie 59bbcf47d9 Bug 1581240 - Return a Promise from windowUtils.setCompositionRecording() r=nika
`windowUtils.setCompositionRecording()` now returns a promise that is resolved
when the composition recorder is enabled (if given `true`) or when frames are
written to disk (if given `false`). To accomplish this, the
`WebRenderCompositionRecorder` now returns a `MozPromise` when writing frames
to disk begins that is resolved when that process finishes.

Differential Revision: https://phabricator.services.mozilla.com/D47300

--HG--
extra : moz-landing-system : lando
2019-11-07 22:34:25 +00:00
Daniel Varga 8afb8d99f1 Backed out 4 changesets (bug 1581240) for build bustage with error: implicit instantiation of undefined template 'nsTString<char>. On a CLOSED TREE
Backed out changeset b73b86efe266 (bug 1581240)
Backed out changeset 17dd226e21ae (bug 1581240)
Backed out changeset e2fd47ff8a89 (bug 1581240)
Backed out changeset c0589670c762 (bug 1581240)
2019-11-07 01:31:57 +02:00
Barret Rennie 3f8aaa035d Bug 1581240 - Add an API to retrieve the collected frames from WebRender r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D47816

--HG--
extra : moz-landing-system : lando
2019-11-06 20:48:47 +00:00
Barret Rennie 8323f194e5 Bug 1581240 - Return a Promise from windowUtils.setCompositionRecording() r=nika
`windowUtils.setCompositionRecording()` now returns a promise that is resolved
when the composition recorder is enabled (if given `true`) or when frames are
written to disk (if given `false`). To accomplish this, the
`WebRenderCompositionRecorder` now returns a `MozPromise` when writing frames
to disk begins that is resolved when that process finishes.

Differential Revision: https://phabricator.services.mozilla.com/D47300

--HG--
extra : moz-landing-system : lando
2019-11-06 20:48:43 +00:00
Sebastian Hengst 80da66f898 Backed out 5 changesets (bug 1554499) for frequent crashes, at least on OS X (bug 1594381). a=backout
Backed out changeset 3a49bec95338 (bug 1554499)
Backed out changeset c802ab8cc730 (bug 1554499)
Backed out changeset f60fee484460 (bug 1554499)
Backed out changeset a49d1c9e8b14 (bug 1554499)
Backed out changeset 133cddb65f59 (bug 1554499)
2019-11-06 14:29:12 +01:00
Miko Mynttinen 9b72daa6e2 Bug 1554499 - Store WebRenderAnimationData using display item type as key r=jrmuizel
Depends on D50186

Differential Revision: https://phabricator.services.mozilla.com/D50187

--HG--
extra : moz-landing-system : lando
2019-11-05 15:10:40 +00:00
Bob Owen 32869c5f76 Bug 1589718: Add a RenderedFrameId to RenderCompositor and use it to control release of textures. r=sotaro
This replaces mUpdatesCount in AsyncImagePipelineManager, which was really how
many times NotifyPipelinesUpdated was called with aRender == true. I think this
makes the release logic clearer as it is more explicit.
It also changes things for RenderCompositorANGLE, so that we check to see if
any other frames have completed even if we don't want to wait for them.

Differential Revision: https://phabricator.services.mozilla.com/D51064

--HG--
extra : moz-landing-system : lando
2019-11-04 16:15:20 +00:00
sotaro 11d9c7b7fa Bug 1591346 - Remove EGL_ANGLE_experimental_present_path usage with WebRender r=gw
EGL_ANGLE_experimental_present_path was enabled for fast rendering to SwapChain by ANGLE. But current gecko does not request ANGLE to render to SwapChain for WebRender. Then we do not need to use EGL_ANGLE_experimental_present_path anymore. But Its usage still has a side effect that y is flipped. But OS compositor implementation on Windows does not want it. And it seems not good to continue to use EGL_ANGLE_experimental_present_path since it is experimental feature.

But when EGL_ANGLE_experimental_present_path is removed, rendering result of frame buffer is y flipped with ANGLE compared to other OpenGL implementation. It needs to be handled in WR. It is similar to chromium.

Differential Revision: https://phabricator.services.mozilla.com/D50604

--HG--
extra : moz-landing-system : lando
2019-10-28 00:56:41 +00:00
Sylvestre Ledru 7c309095ea Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
Please note that it is the first reformat with clang-format 9
I only saw a fix in the .mm file

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D49056

--HG--
extra : moz-landing-system : lando
2019-10-21 14:13:44 +00:00
Kris Taeleman 4170fd9b5c Bug 1547737 - Make RecvRequestScreenPixels work with WR. r=jnicol
Differential Revision: https://phabricator.services.mozilla.com/D49492

--HG--
extra : moz-landing-system : lando
2019-10-18 13:40:40 +00:00
sotaro 25f26b36da Bug 1588987 - Do not trigger WR rendering during paused state r=nical
Differential Revision: https://phabricator.services.mozilla.com/D49379

--HG--
extra : moz-landing-system : lando
2019-10-16 09:10:30 +00:00
Kris Taeleman 8205a49853 Bug 1585801 - Fixing crash when folder is not writable and refactored logic. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D48999

--HG--
extra : moz-landing-system : lando
2019-10-15 17:03:22 +00:00
Jeff Muizelaar b36a941d02 Bug 1588224. Blob: Remove unused members and some debugging code.
This also reduces the size of BlobItemData which will give us
some free performance on SVGs that have a lot of items by reducing
our working set size.

Differential Revision: https://phabricator.services.mozilla.com/D49023

--HG--
extra : moz-landing-system : lando
2019-10-11 21:59:59 +00:00
Jeff Muizelaar 487b155e34 Bug 1586573. Don't use the visibleRect for non blob images. r=aosmond
This reverts to the previous behaviour for non-blob fallback images.

Differential Revision: https://phabricator.services.mozilla.com/D48631

--HG--
extra : moz-landing-system : lando
2019-10-09 16:54:34 +00:00
Jeff Muizelaar 88c6d9a1dc Bug 1587210. Always clear mInvalidRect. r=mstange
In the future mInvalidRect and some other state should move out of DIGroup
and into a non-persistant struct that's only used during Group building.
This will allow us to completely avoid errors like this.

Differential Revision: https://phabricator.services.mozilla.com/D48706

--HG--
extra : moz-landing-system : lando
2019-10-09 18:10:54 +00:00
Jamie Nicol 51410a091e Bug 1584109 - Rename WR_RENDER_TIME to WR_FRAMEBUILD_TIME. r=jrmuizel
It is actually measuring frame building time, not rendering.

Differential Revision: https://phabricator.services.mozilla.com/D48343

--HG--
extra : moz-landing-system : lando
2019-10-09 10:52:22 +00:00
Jeff Muizelaar c572d06005 Bug 1516286. WR Fallback: Do the empty check later. r=aosmond
What we actually care about here is whether itemRect is empty bceause that's
the what we'll use for the actual surface size.

Differential Revision: https://phabricator.services.mozilla.com/D48548

--HG--
extra : moz-landing-system : lando
2019-10-08 14:20:40 +00:00
sotaro fb4696fe6d Bug 1570879 - Fix high contrast theme handling with DirectComposition and WebRender r=nical
When high contrast mode is enabled, title bar is drawn as transparent and on-client area rendering by DWM is shown. But when compositor window in GPU process is used, the on-client area rendering was not shown. To address the proboem, window needs to be cleard as transparent and SwapChain of compositor window needs to be DXGI_ALPHA_MODE_PREMULTIPLIED.

WinCompositorWidget::mTransparencyMode is changed to atomic, since it is accessed from compositor thread and render thread.

Differential Revision: https://phabricator.services.mozilla.com/D48302

--HG--
extra : moz-landing-system : lando
2019-10-08 10:07:47 +00:00
Botond Ballo 4268dbf031 Bug 1552608 - Propagate the fixed-position sides to the hit testing tree. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D48375

--HG--
extra : moz-landing-system : lando
2019-10-07 21:41:20 +00:00
Jeff Muizelaar f5e2385e64 Bug 1582210. Support splitting blob images into different sizes. r=nical
This makes things better especially when the bounds of the combined blob
is changing but the bound of the separate ones are not.

The current implementation is a bit ugly, but it's simple and
can be cleaned up in the cleanups I have in mind for the future.

Differential Revision: https://phabricator.services.mozilla.com/D47983

--HG--
extra : moz-landing-system : lando
2019-10-07 21:27:41 +00:00
Sylvestre Ledru f12b9fa5c3 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D47737

--HG--
extra : moz-landing-system : lando
2019-10-06 18:29:55 +00:00
Jeff Muizelaar d8da468e74 Bug 1582152. Drop bounds change check. r=mstange
Instead of checking whether the bounds of the clipped
image has changed just check whether our clipped bounds
have changed. This simplifies the code and avoids
a bunch of extra invalidations.

Differential Revision: https://phabricator.services.mozilla.com/D47971

--HG--
extra : moz-landing-system : lando
2019-10-02 19:44:29 +00:00
Jeff Muizelaar b01dc0a82e Bug 1584375. Remove unused origin from recording. r=nical
This was added as part of an intermediate step to blob
recoordination. It's not used anymore.

Differential Revision: https://phabricator.services.mozilla.com/D47354

--HG--
extra : moz-landing-system : lando
2019-10-02 21:47:11 +00:00
Jeff Muizelaar 06f5d9b0b1 Bug 1584378. blob: Remove unused mImageBounds. r=nical
We don't use this for the bounds of the blob anymore.

Differential Revision: https://phabricator.services.mozilla.com/D47360

--HG--
extra : moz-landing-system : lando
2019-10-02 16:43:35 +00:00
Daniel Varga f1edb8b815 Backed out changeset dfa9c9bab741 (bug 1584375) for marionette crash @ rust_begin_unwind. On a CLOSED TREE 2019-10-02 20:43:36 +03:00
Jeff Muizelaar 20983ff87e Bug 1584375. Remove unused origin from recording. r=nical
This was added as part of an intermediate step to blob
recoordination. It's not used anymore.

Differential Revision: https://phabricator.services.mozilla.com/D47354

--HG--
extra : moz-landing-system : lando
2019-10-02 16:42:24 +00:00
Jeff Muizelaar f1095f28e0 Bug 1580922. Always adjust the blob visible area. r=nical
Now that we're painting based on the visible area we need to make sure that we
update the blob when ever the visible area changes. We'll do this by
unconditionally setting the visible area.

Differential Revision: https://phabricator.services.mozilla.com/D47335

--HG--
extra : moz-landing-system : lando
2019-10-02 07:53:18 +00:00
Jeff Muizelaar 933084b066 Bug 1580922. Partially revert blob recoord fallback changes. r=nical
This moves the origin of fallback blobs back to the top left of their display
item bounds. This is what they were before the patches in bug 1568227 and makes
more sense because there's not necessarily a reference frame above the fallback
frame which means that the coordinates of the display item can change without
us wanting to invalidate the interior.

Differential Revision: https://phabricator.services.mozilla.com/D47275

--HG--
extra : moz-landing-system : lando
2019-10-01 22:23:45 +00:00
Brindusan Cristian e139ad7ab8 Backed out changeset 88a32122785b (bug 1580922) for reftest failures at webkit-text-stroke-property-001.html. CLOSED TREE 2019-10-01 22:29:12 +03:00
Jeff Muizelaar 869980f0d4 Bug 1580922. Partially revert blob recoord fallback changes. r=nical
This moves the origin of fallback blobs back to the top left of their display
item bounds. This is what they were before the patches in bug 1568227 and makes
more sense because there's not necessarily a reference frame above the fallback
frame which means that the coordinates of the display item can change without
us wanting to invalidate the interior.

Differential Revision: https://phabricator.services.mozilla.com/D47275

--HG--
extra : moz-landing-system : lando
2019-10-01 12:15:53 +00:00
Ciure Andrei ffa2b6a320 Backed out changeset 38e1e9c5d8c1 (bug 1580922) for causing webkit-text-stroke-property-001.html reftest failures CLOSED TREE 2019-10-01 04:36:20 +03:00
Jeff Muizelaar 645bc7cc30 Bug 1580922. Partially revert blob recoord fallback changes. r=nical
This moves the origin of fallback blobs back to the top left of their display
item bounds. This is what they were before the patches in bug 1568227 and makes
more sense because there's not necessarily a reference frame above the fallback
frame which means that the coordinates of the display item can change without
us wanting to invalidate the interior.

Differential Revision: https://phabricator.services.mozilla.com/D47275

--HG--
extra : moz-landing-system : lando
2019-09-30 22:10:29 +00:00
Ciure Andrei 79d2986eb6 Backed out changeset ea9e4099e608 (bug 1580922) at request from jrmuizel CLOSED TREE 2019-10-01 01:05:24 +03:00
Jeff Muizelaar 986b2ec145 Bug 1580922. Partially revert blob recoord fallback changes. r=nical
This moves the origin of fallback blobs back to the top left of their display
item bounds. This is what they were before the patches in bug 1568227 and makes
more sense because there's not necessarily a reference frame above the fallback
frame which means that the coordinates of the display item can change without
us wanting to invalidate the interior.

Differential Revision: https://phabricator.services.mozilla.com/D47275

--HG--
extra : moz-landing-system : lando
2019-09-30 07:39:14 +00:00
Jeff Muizelaar 9651ff76cf Bug 1582645. Only set mLastVisibleRect after we've sent it to WebRender. r=nical
This avoids us setting when we don't send it. e.g. When it's empty.

Differential Revision: https://phabricator.services.mozilla.com/D47028

--HG--
extra : moz-landing-system : lando
2019-09-30 17:48:34 +00:00
Coroiu Cristina 161096b665 Backed out changeset 43ac974f69db (bug 1582645) for increasing the crash volume a=backout 2019-09-30 12:51:23 +03:00
Jeff Muizelaar bdcf335677 Bug 1582645. Only set mLastVisibleRect after we've sent it to WebRender. r=nical
This avoids us setting when we don't send it. e.g. When it's empty.

Differential Revision: https://phabricator.services.mozilla.com/D47028

--HG--
extra : moz-landing-system : lando
2019-09-26 21:08:29 +00:00