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

120 Коммитов

Автор SHA1 Сообщение Дата
Markus Stange e9142df968 Bug 1574745 - Move ShouldRecordFrames() from BasicCompositor to Compositor because CompositorOGL will need it. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D43875

--HG--
extra : moz-landing-system : lando
2019-08-30 19:52:15 +00:00
Markus Stange 28d283ab15 Bug 1574592 - Remove now-unused CompositorWidget::DoCompositorCleanup again. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D42403

--HG--
extra : moz-landing-system : lando
2019-08-25 17:11:02 +00:00
Markus Stange dac6adef26 Bug 1491442 - Fold DoWidgetCleanup and DetachWidget into Compositor::Destroy. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D40867

--HG--
extra : moz-landing-system : lando
2019-08-16 01:09:48 +00:00
Markus Stange 62430de27f Bug 1491442 - Add CompositorWidget::DoCompositorCleanup() to give the widget a chance to clean up any state from PreRender/PostRender on the correct thread. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D40514

--HG--
extra : moz-landing-system : lando
2019-08-16 01:09:26 +00:00
Barret Rennie d9cf636b77 Bug 1544572 - Support composition recording for LayerManagerComposite r=mstange
Composition recording is now supported by the LayerManagerComposite using the
AsyncReadbackBuffer infrastructure provided by the compositor screenshots work.
This enables composition recording for LayerManagerComposite with all
compositors *except* BasicCompositor, since it does not always have a window
render target (it only keeps one around while the profiler is running and
collecting screenshots).

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

--HG--
extra : moz-landing-system : lando
2019-04-17 21:31:37 +00:00
Barret Rennie 3800dbb8ec Bug 1444449 - Do not return raw pointers to window targets from compositors r=bas
Differential Revision: https://phabricator.services.mozilla.com/D18598

--HG--
extra : moz-landing-system : lando
2019-02-12 18:53:10 +00:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Emilio Cobos Álvarez ed8949d457 Bug 1477678 - Remove useless Compositor::SetDispAcquireFence. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D2295

--HG--
extra : moz-landing-system : lando
2018-07-23 13:06:24 +00:00
Emilio Cobos Álvarez fffb25b74f Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Kartikaya Gupta bad638dcd9 Bug 1441916 - Introduce the notion of the APZ sampler thread. r=botond
The sampler thread is similar to the controller thread in that it doesn't
correspond to a particular actual thread, but instead introduces an
abstraction that allows us to reason about code flow and data ownership
that is logically grouped on a single thread. For now the sampler thread
remains mapped to the compositor thread, but eventually we will allow
it to be render backend thread when webrender is enabled.

MozReview-Commit-ID: D6i2t5lDvkv

--HG--
extra : rebase_source : 06211ad878973c76ca3fd618386bbbd0cfdd4821
2018-03-01 23:00:41 -05:00
Milan Sreckovic 099cfc4242 Bug 1423570: Use BaseRect access methods instead of member variables in gfx/ r=bas.schouten
MozReview-Commit-ID: ZGySgc9oP3

--HG--
extra : rebase_source : 23aadc10e9885002290155684b2c495780d979ce
2017-12-19 15:48:39 -05:00
sotaro 551a052a4a Bug 1410766 - Re-acquireDevices in gpu process when SimulateDeviceReset() is called r=dvander 2017-11-03 17:06:37 +09:00
Daniel Holbert 126bd9e1a4 Bug 1412427 part 8: (automated patch) Switch a bunch of C++ files in gfx to use our standard mode lines. r=jrmuizel
This patch was generated automatically by the "modeline.py" script, available
here: https://github.com/amccreight/moz-source-tools/blob/master/modeline.py

For every file that is modified in this patch, the changes are as follows:
 (1) The patch changes the file to use the exact C++ mode lines from the
     Mozilla coding style guide, available here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#Mode_Line

 (2) The patch deletes any blank lines between the mode line & the MPL
     boilerplate comment.

 (3) If the file previously had the mode lines and MPL boilerplate in a
     single contiguous C++ comment, then the patch splits them into
     separate C++ comments, to match the boilerplate in the coding style.

MozReview-Commit-ID: 77D61xpSmIl

--HG--
extra : rebase_source : c6162fa3cf539a07177a19838324bf368faa162b
2017-10-27 16:10:06 -07:00
Milan Sreckovic e3cd0a3157 Bug 1387514: Upgrade BaseRect (derived classes) width and height direct member variable use to instead use Width()/SetWidth() and Height()/SetHeight() in .cpp files in gfx/*. r=milan
MozReview-Commit-ID: 1jESowJKdyp

--HG--
extra : rebase_source : 3839cdea46729a9af05c777215cffcb9f42a2018
2017-08-14 08:29:28 -04:00
David Anderson d1eec3b0e9 Don't require a Compositor to track async compositable ownership. (bug 1365879 part 13, r=mattwoodrow) 2017-06-20 01:17:20 -07:00
David Anderson f52c24e301 Extract some compositor functions into a LayersHelpers header. (bug 1365879 part 3, r=mattwoodrow) 2017-06-20 01:17:16 -07:00
David Anderson e78f438bc1 Fix potential memory leak in TextureSourceProviderMLGPU. (bug 1365879 part 1, r=mattwoodrow) 2017-06-20 01:17:15 -07:00
Miko Mynttinen d5c1995700 Bug 1345849 - Part 2: Remove unused Triangle::width and height r=jrmuizel
MozReview-Commit-ID: QfOaZcv2uu

--HG--
extra : rebase_source : 12d1f458156e62aab56834d83e1951db3554f43a
2017-03-27 16:22:35 -04:00
Miko Mynttinen 9f15e545a5 Bug 1345849 - Part 1: Use DrawTriangles() instead of DrawTriangle() in OpenGL compositor backend r=jrmuizel
MozReview-Commit-ID: H11vFsMlIaA

--HG--
extra : rebase_source : 56da41251925d335f8ba80f1a302e9a9a92ac972
2017-03-27 13:59:15 -04:00
David Anderson ce7cc32129 Improve pixel fill statistics in the D3D11 compositor overlay. (bug 1352151 part 6, r=bas)
This introduces two new statistics to the overlay. The first is the ratio of
pixel shader invocations (as determined by the GPU) to the number of pixels we
determined need to be redrawn. The ideal ratio is 1.0, indicating that we
filled every pixel exactly once. Anything over 1.0 indicates overdraw.

We also add the ratio of shaded pixels to window size. This indicates how well
we computed the invalid region, and whether or not we overfilled that
region.

Note that the OpenGL and Basic compositors do not yet query the GPU for
this statistic, so they will estimate shader invocations by the area of
DrawQuad calls.

Finally, we remove the feature where layout can request the most
recent overdraw statistic. It was not implemented on all compositors, and the
only test that used it was disabled.

--HG--
extra : rebase_source : 448a162998921974575a1a988bcfde52c959d3ed
2017-04-10 19:44:46 -07:00
David Anderson 4d00ab76d4 Factor texture methods out of Compositor into a TextureSourceProvider class. (bug 1343814 part 1, r=mattwoodrow) 2017-03-21 20:32:53 -07:00
Miko Mynttinen 3078595329 Bug 1323791 - Part 1: Use no-repeat texture rects with polygon layers r=mattwoodrow
MozReview-Commit-ID: 3ObTvCXQZAj

--HG--
extra : rebase_source : 2a6e268dfe785b7403a3c08220fb5d19ea027c5b
2017-02-09 12:37:34 +01:00
Miko Mynttinen 690db7a2ca Bug 1332268 - Update EffectComponentAlpha texture coordinates when rendering split layers r=mattwoodrow
MozReview-Commit-ID: HFgikDMPB7F

--HG--
extra : rebase_source : 884ea1083f8def68e8c5c199929f2c0cc04a3148
2017-01-19 21:16:30 +01:00
Sebastian Hengst 4885d0ba4e Backed out changeset 7d3e3c0a23c6 (bug 1332268) for failing own reftest component-alpha-1.html on Windows 7 debug. r=backout 2017-01-20 16:06:58 +01:00
Miko Mynttinen e5ff71df8e Bug 1332268 - Update EffectComponentAlpha texture coordinates when rendering split layers r=mattwoodrow
MozReview-Commit-ID: HFgikDMPB7F

--HG--
extra : rebase_source : 256af44a9d313de28e6117922316e11aaa4c4c5d
2017-01-19 14:24:43 +01:00
Miko Mynttinen e5fcb76439 Bug 1331894 - Crash in InvalidArrayIndex_CRASH | mozilla::layers::BuildPathFromPolygon - Cull polygons with no area r=jrmuizel
MozReview-Commit-ID: KCkIA68vvgW

--HG--
extra : rebase_source : b1a2eb20149e47180553744e0b24a0eb6162df23
2017-01-18 12:10:12 +01:00
Miko Mynttinen 139ddef384 Bug 1323797 - Add compositor support for triangle layers (for BasicCompositor backend) - Part 2: Add DrawTriangles() and DrawPolygon() r=mattwoodrow
MozReview-Commit-ID: 3wgtRO5yK3T

--HG--
extra : rebase_source : 0c675e4e5e01fe178e4d7446c632b4d7c338bd24
2017-01-10 16:16:33 +02:00
Miko Mynttinen c0b2cd5b45 Bug 1274673 - Use binary space partitioning for sorting/drawing layers - Part 3: Use BSPTree for layer sorting r=jrmuizel,mattwoodrow
MozReview-Commit-ID: 3Hy4IRDFgaP

--HG--
extra : rebase_source : ec31672ba66a81537cd21356466c8774023edd60
2016-12-06 13:39:01 -10:00
Miko Mynttinen d8d0459a98 Bug 1274673 - Use binary space partitioning for sorting/drawing layers - Part 2: Rename Polygon3D to Polygon, and use 4D points for all calculations r=kip
MozReview-Commit-ID: I6DB8xldpjO

--HG--
extra : rebase_source : c881f68722404e0d749a00424eb17d284a7383d2
2016-12-04 17:49:32 +01:00
Sotaro Ikeda 92926a0f41 Bug 1317656 - Cleanup more gonk/b2g dependent code r=nical 2016-11-15 22:01:30 -08:00
Matt Woodrow 8ef69ac7f8 Bug 1315585 - Don't assume mLastCompositionEndTime has been initialized in NotifyNotUsedAfterComposition. r=dvander 2016-11-08 15:38:30 +13:00
Matt Woodrow 5ab6ff0b97 Bug 1313281 - Part 6: Remove FenceHandle. r=sotaro 2016-10-27 21:02:12 +13:00
Matt Woodrow 4d0b10822d Bug 1308363 - Remove GONK specific code from gfx/. r=jrmuizel,sotaro 2016-10-27 13:17:10 +13:00
Miko Mynttinen 1314efc774 Bug 1286412 - Add compositor support for triangle layers (for OpenGL backend) r=jrmuizel
MozReview-Commit-ID: 75q8ja7G1ko

--HG--
extra : rebase_source : 99e2684351a6403d7a957b876337de20b16de139
2016-10-07 10:58:13 -07:00
Matt Woodrow 2b82a4295e Bug 1302918 - Remove old Compositor sharing code. r=nical 2016-09-23 09:44:46 +12:00
Matt Woodrow 356ce39110 Bug 1288618 - Part 8: Add Compositor API to create a TextureSource from a layers::Image. r=nical 2016-09-21 21:24:43 +12:00
Carsten "Tomcat" Book f918af64da Backed out 16 changesets (bug 1288618) for bustage on a CLOSED TREE
Backed out changeset 06187d250f7a (bug 1288618)
Backed out changeset 2a47f8ea1d89 (bug 1288618)
Backed out changeset e179c8e8265d (bug 1288618)
Backed out changeset 25396a1af922 (bug 1288618)
Backed out changeset e98f835c6ee5 (bug 1288618)
Backed out changeset 24df0e89b273 (bug 1288618)
Backed out changeset f8bbdabdb6da (bug 1288618)
Backed out changeset 8b0adeab93df (bug 1288618)
Backed out changeset 95f23366de82 (bug 1288618)
Backed out changeset 63a9c689e1d5 (bug 1288618)
Backed out changeset 8f67443dccb8 (bug 1288618)
Backed out changeset 4e7fe69d5f45 (bug 1288618)
Backed out changeset 53b113acee42 (bug 1288618)
Backed out changeset 2583ae4e2e3b (bug 1288618)
Backed out changeset 75a61d0e71b7 (bug 1288618)
Backed out changeset da740b4fd484 (bug 1288618)
2016-09-21 08:44:11 +02:00
Matt Woodrow 2cb0c77257 Bug 1288618 - Part 8: Add Compositor API to create a TextureSource from a layers::Image. r=nical
--HG--
extra : rebase_source : 7498abba1e4e364e9a299ee55b44070c6a65f55a
2016-09-21 15:36:09 +12:00
Carsten "Tomcat" Book b3103bcc88 Backed out changeset da04776fc1bd (bug 1288618) 2016-09-15 16:34:07 +02:00
Matt Woodrow 5c29dcbfd9 Bug 1288618 - Part 8: Add Compositor API to create a TextureSource from a layers::Image. r=nical 2016-09-15 23:17:59 +12:00
Randall Barker 8adc72b766 Bug 1297853 - White flash when creating a private browsing tab r=jchen,kats 2016-09-06 18:01:36 -07:00
David Anderson 8f6e2c429f Bug 1298501 - Fix Compositor::IsValid returning the wrong value. r=mattwoodrow
--HG--
extra : rebase_source : e5b04f76c326be3f49dd2f520dc8b54f76f58b80
2016-08-26 13:38:00 -04:00
Randall Barker a9be905342 Bug 1294857 - Compositor uses page's background color to clear in Fennec r=kats 2016-08-18 14:03:26 -07:00
Lee Salzman 67a15db27a Bug 1283330 - take floating point inaccuracy into account for assertions in DecomposeIntoNoRepeatRects. r=nical 2016-07-27 12:23:34 -04:00
Sotaro Ikeda b1f63863e8 Bug 1287627 - Handle flush TextureHost without composition r=nical 2016-07-19 05:38:35 -07:00
David Anderson 3f0ea0572d Rename CompositorWidgetProxy files to CompositorWidget. (bug 1281998 part 2, r=jimm)
--HG--
rename : widget/CompositorWidgetProxy.cpp => widget/CompositorWidget.cpp
rename : widget/CompositorWidgetProxy.h => widget/CompositorWidget.h
rename : widget/windows/WinCompositorWidgetProxy.cpp => widget/windows/WinCompositorWidget.cpp
rename : widget/windows/WinCompositorWidgetProxy.h => widget/windows/WinCompositorWidget.h
2016-07-01 01:15:16 -07:00
Phil Ringnalda 0d0d24bccc Back out 7 changesets (bug 1281998) for Windows Marionette crashes
Backed out changeset d806fac2c856 (bug 1281998)
Backed out changeset b8d4fedfd7eb (bug 1281998)
Backed out changeset a72929c0c3ec (bug 1281998)
Backed out changeset 74198f88fa37 (bug 1281998)
Backed out changeset 54a0e73f6906 (bug 1281998)
Backed out changeset 99d1da1293b7 (bug 1281998)
Backed out changeset a5a9585754b1 (bug 1281998)

--HG--
rename : widget/CompositorWidget.cpp => widget/CompositorWidgetProxy.cpp
rename : widget/CompositorWidget.h => widget/CompositorWidgetProxy.h
rename : widget/windows/WinCompositorWidget.cpp => widget/windows/WinCompositorWidgetProxy.cpp
rename : widget/windows/WinCompositorWidget.h => widget/windows/WinCompositorWidgetProxy.h
2016-06-29 19:35:24 -07:00
David Anderson 804c1ee06f Rename CompositorWidgetProxy files to CompositorWidget. (bug 1281998 part 2, r=jimm)
--HG--
rename : widget/CompositorWidgetProxy.cpp => widget/CompositorWidget.cpp
rename : widget/CompositorWidgetProxy.h => widget/CompositorWidget.h
rename : widget/windows/WinCompositorWidgetProxy.cpp => widget/windows/WinCompositorWidget.cpp
rename : widget/windows/WinCompositorWidgetProxy.h => widget/windows/WinCompositorWidget.h
extra : rebase_source : 8ecf59ad6039f0d0d2a51008aef53ef37aa2ce0e
2016-06-29 16:47:22 -04:00
Nicolas Silva e3b9d57c76 Bug 1280762 - ReadUnlock the TextureHost when its IPDL actor dies. r=sotaro 2016-06-21 18:06:34 +02:00
Sotaro Ikeda f731d220ed Bug 1252835 - Make TextureHost recycling implicit r=nical 2016-06-15 04:28:10 -07:00