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

1769 Коммитов

Автор SHA1 Сообщение Дата
sotaro 111038667c Bug 1602511 - Blacklist webrender compositor on Intel HD 520 r=gw
Differential Revision: https://phabricator.services.mozilla.com/D56535

--HG--
extra : moz-landing-system : lando
2019-12-10 19:16:13 +00:00
Tom Ritter 00d9d1fdc5 Bug 1587469 - Remove MinGW conditionals for IDCompositionDesktopDevice/IDCompositionDevice2 r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D55998

--HG--
extra : moz-landing-system : lando
2019-12-10 15:38:20 +00:00
sotaro 6c36181d45 Bug 1601862 - Suppress false alarm log r=nical
Differential Revision: https://phabricator.services.mozilla.com/D56150

--HG--
extra : moz-landing-system : lando
2019-12-10 01:10:23 +00:00
Bert Peers 8edb97a47a Bug 1595708 - Cargo build timings SVG output Freezes the entire browser with WebRender r=nical,jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D56244

--HG--
extra : moz-landing-system : lando
2019-12-09 20:21:41 +00:00
Emilio Cobos Álvarez e94a6fe8af Bug 1602317 - Switch WR bindings to use associated-constants-in-body. r=jrmuizel
Now that we have C++17, and thus inline const, we can do this.

Depends on D56306

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

--HG--
extra : moz-landing-system : lando
2019-12-08 21:09:37 +00:00
Emilio Cobos Álvarez 1dc32f9c0f Bug 1602317 - More reliably workaround some silly windows.h defines. r=nical
I couldn't get some Windows sandbox code to build with the other patch in this
bug.

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

--HG--
extra : moz-landing-system : lando
2019-12-09 12:14:16 +00:00
Csoregi Natalia e216498233 Backed out changeset 519be451c283 (bug 1601862) for bustage on RenderCompositorANGLE.cpp. CLOSED TREE 2019-12-09 03:43:33 +02:00
sotaro 2213a5357e Bug 1601862 - Suppress false alarm log r=nical
Differential Revision: https://phabricator.services.mozilla.com/D56150

--HG--
extra : moz-landing-system : lando
2019-12-06 13:04:44 +00:00
sotaro d5a300b92b Bug 1599887 - Update frame is when WR rendering is skipped r=nical
wr::WebRenderPipelineInfo needs to be handled even when WR rendering does not happen.

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

--HG--
extra : moz-landing-system : lando
2019-12-06 13:06:21 +00:00
sotaro 8cbdbb0cb2 Bug 1601531 - Tag image descriptors with PREFER_COMPOSITOR_SURFACE where appropriate r=gw
Differential Revision: https://phabricator.services.mozilla.com/D55922

--HG--
extra : moz-landing-system : lando
2019-12-06 06:53:57 +00:00
Mike Hommey 6a1d6c2698 Bug 1587468 - Update uuid to 0.8.1. r=webdriver-reviewers,whimboo,emilio
This leaves one out-of-tree of uuid 0.7, handled by https://github.com/mozilla/rkv/pull/184
(but we have two copies of that, we'd need to have it landed on both
branches and pulled).

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

--HG--
extra : moz-landing-system : lando
2019-12-06 00:47:50 +00:00
Jamie Nicol ecf8b8f3eb Bug 1599248 - Use local raster space when animating a double tap zoom. r=botond
In bug 1531142 we made it so that when a spatial node is being pinch-zoomed we
use a local raster-space to avoid rerasterizing glyphs for every slight change
in zoom level. This makes it so that we also apply the same trick when
being asynchronously zoomed by a double-tap gesture.

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

--HG--
extra : moz-landing-system : lando
2019-12-05 11:35:38 +00:00
Glenn Watson 5eb0496079 Bug 1600539 - Add an API for tagging image descriptors as videos. r=nical
In future, WR will consider this when deciding whether an image
should be promoted to be a native compositor surface.

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

--HG--
extra : moz-landing-system : lando
2019-12-03 11:21:16 +00:00
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 9171fb9fcf Bug 1600533 - Rename WaitForPreviousPresentQuery() r=gw
Differential Revision: https://phabricator.services.mozilla.com/D55403

--HG--
extra : moz-landing-system : lando
2019-12-02 10:41:57 +00:00
sotaro 00f9b4efee Bug 1585619 - Add option of using PrintWindow() for taking snapshot of DirectComposition r=gw
Differential Revision: https://phabricator.services.mozilla.com/D47894

--HG--
extra : moz-landing-system : lando
2019-11-30 03:14:58 +00:00
sotaro 78ab5adc85 Bug 1600261 - Call MakeCurrent() before calling eglSwapInterval r=stransky
By bug 1597619 change, MakeCurrent() became not called before calling eglSwapInterval. The comment already mentioned this requirement.

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

--HG--
extra : moz-landing-system : lando
2019-12-02 12:46:44 +00:00
sotaro 1274053b7a Bug 1600546 - Add logs to DCLayerTree r=gw
Differential Revision: https://phabricator.services.mozilla.com/D55407

--HG--
extra : moz-landing-system : lando
2019-12-02 10:41:35 +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
Markus Stange cf6c4692db Bug 1599609 - Add mTotalPixelCount to get accurate memory usage reporting in WR OS comppositor profiler markers. r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D54857

--HG--
extra : moz-landing-system : lando
2019-11-27 23:07:26 +00:00
Markus Stange 720bec5704 Bug 1599609 - Change printf to a profiler text marker. r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D54856

--HG--
extra : moz-landing-system : lando
2019-11-27 23:07:51 +00:00
Markus Stange e5db20bdde Bug 1599605 - Crash when DestroySurface is called with an unknown ID. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D54854

--HG--
extra : moz-landing-system : lando
2019-11-27 02:38:49 +00:00
Sylvestre Ledru 8d2f0d1b1f Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-11-26 14:35:02 +00:00
Martin Stransky a731b16af1 Bug 1599016 [Wayland] Don't use GL_TEXTURE_EXTERNAL_OES textures with DMA BUF backend, r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D54690

--HG--
extra : moz-landing-system : lando
2019-11-26 11:15:48 +00:00
Markus Stange d582a45148 Bug 1597585 - Remove WidgetRenderingContext's unused field mCompositor. r=mattwoodrow
The only use of this was inside Android's nsWindow::PreRender.
That method was removed in changeset 81de9d1439b0e352729142f6aa2914674073da03 (bug 1335895).

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

--HG--
extra : moz-landing-system : lando
2019-11-20 23:22:18 +00:00
sotaro 8e6892faec Bug 1597911 - Enable MOZ_RELEASE_ASSERT in DCLayerTree::CreateSurface() r=gw
Differential Revision: https://phabricator.services.mozilla.com/D53929

--HG--
extra : moz-landing-system : lando
2019-11-20 09:26:59 +00:00
Glenn Watson cf3a4562ea Bug 1597887 - Improve performance of DirectComposition mode with WR. r=sotaro
This patch include two performance improvements:
 - Only rebuild the DC visual tree if different from last frame.
 - Use EGLImage instead of pbuffer for DC <-> GL interop.

These fix most of the talos regressions with DC enabled in WR.

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

--HG--
extra : moz-landing-system : lando
2019-11-20 07:12:42 +00:00
Markus Stange ef17cbb1fe Bug 1597587 - Remove unnecessary dirty rect intersection. r=sotaro
Depends on D53289

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

--HG--
extra : moz-landing-system : lando
2019-11-19 21:35:15 +00:00
Markus Stange d72f22d80a Bug 1449205 - Share OpenGL contexts between WebRender windows on macOS. r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D53121

--HG--
extra : moz-landing-system : lando
2019-11-19 17:46:39 +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
Markus Stange a1a4d63983 Bug 1592150 - Enable support for partial updates in the WebRender OS compositor on macOS. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D51762

--HG--
extra : moz-landing-system : lando
2019-11-19 03:33:43 +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
Andrew Osmond e8b66dfae2 Bug 1589402 - Stop rounding complex clip rects in layout space. r=jrmuizel
We already snap the complex clip rects during scene building, taking
into account any necessary transforms and device pixel scaling. Just
like normal clips, we shouldn't round in layout space.

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

--HG--
extra : moz-landing-system : lando
2019-11-15 18:02:17 +00:00
Bert Peers a389b627ed Bug 1596769 - Fix broken WebRender capture on Windows r=kvark
On Windows, save the Ctrl-Shift-3 capture to the user's local app data
to make sure we have write permissions.
Verified with ./mach run + capture => saved to C:\Users\...\AppData\Local\wr-capture

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

--HG--
extra : moz-landing-system : lando
2019-11-15 16:02:56 +00:00
Josh Matthews a9c6070468 Bug 1595787: Move ExternalImageHandler and OutputImageHandler traits to webrender_api. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D52686

--HG--
extra : moz-landing-system : lando
2019-11-14 17:40:28 +00:00
Markus Stange 8b245c092f Bug 1576390 - Remove the prefs gfx.core-animation.enabled and gfx.compositor.glcontext.opaque, and all the code needed to support it. r=mattwoodrow,spohl
Differential Revision: https://phabricator.services.mozilla.com/D52739

--HG--
extra : moz-landing-system : lando
2019-11-13 19:07:37 +00:00
Markus Stange ba013d0f42 Bug 1594950 - Change NextSurface APIs to accept a dirty region, and remove the public method InvalidateRegionThroughoutSwapchain. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D50878

--HG--
extra : moz-landing-system : lando
2019-11-13 18:55:18 +00:00
Markus Stange 80c235777f Bug 1594950 - Bake the layer size and its opaqueness into the layer, don't allow mutating it. r=jrmuizel
These settings are now supplied during layer creation and never change.
Consumers must now create new NativeLayer objects if they want to change size or toggle opaqueness.
This aligns the NativeLayer API with DirectComposition's capabilities. It also simplifies swap chain
management.

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

--HG--
extra : moz-landing-system : lando
2019-11-13 18:46:02 +00:00
Cosmin Sabou 1d71e9f510 Backed out 4 changesets (bug 1594950) for turning bug 1405083 into permafail.
Backed out changeset 684a87e91d94 (bug 1594950)
Backed out changeset adea6912c3a3 (bug 1594950)
Backed out changeset aea7108204e9 (bug 1594950)
Backed out changeset 15baea8520de (bug 1594950)
2019-11-13 06:44:24 +02:00
sotaro 22a4932c7e Bug 1595703 - Remove DXGI_USAGE_SHADER_INPUT usage r=gw
DXGI_USAGE_SHADER_INPUT is not necessary with current WebRender.

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

--HG--
extra : moz-landing-system : lando
2019-11-12 19:15:39 +00:00
sotaro e3f85dc709 Bug 1595027 - Disable partial present when SwapChain uses alpha r=nical
During high contrast mode, alpha is used by SwapChain. In this case, IDXGISwapChain1::Present1() shows nothing with compositor window. To address the problem, we disable the Present1() usage when alpha is used.

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

--HG--
extra : moz-landing-system : lando
2019-11-12 22:13:41 +00:00
Sylvestre Ledru ea96556c9f Bug 1562642 - add missing license in gfx/ r=nical
Depends on D52581

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

--HG--
extra : moz-landing-system : lando
2019-11-12 22:01:02 +00:00
Markus Stange 2db4b324b7 Bug 1594950 - Change NextSurface APIs to accept a dirty region, and remove the public method InvalidateRegionThroughoutSwapchain. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D50878

--HG--
extra : moz-landing-system : lando
2019-11-12 19:50:26 +00:00
Markus Stange 82452d888a Bug 1594950 - Bake the layer size and its opaqueness into the layer, don't allow mutating it. r=jrmuizel
These settings are now supplied during layer creation and never change.
Consumers must now create new NativeLayer objects if they want to change size or toggle opaqueness.
This aligns the NativeLayer API with DirectComposition's capabilities. It also simplifies swap chain
management.

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

--HG--
extra : moz-landing-system : lando
2019-11-12 19:50:25 +00:00
Miko Mynttinen 887eef5e7f Bug 1595036 - Put GPU debug markers behind a pref r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D52339

--HG--
extra : moz-landing-system : lando
2019-11-08 15:59:27 +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
sotaro 7001d3c524 Bug 1592512 - Handle surface opacity of OS compositor surface on Windows r=gw
Differential Revision: https://phabricator.services.mozilla.com/D52322

--HG--
extra : moz-landing-system : lando
2019-11-08 10:15:07 +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
sotaro 127c0ad209 Bug 1592510 - Make partial updates with WebRender OS compositor work on Windows r=gw
Differential Revision: https://phabricator.services.mozilla.com/D51984

--HG--
extra : moz-landing-system : lando
2019-11-07 00:57:23 +00:00