Simon Giesecke
1fbb2b245e
Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D84807
2020-08-04 11:27:07 +00:00
Matt Woodrow
908df2a465
Bug 1653409 - Upload software decoded video directly to IOSurface on OSX. r=mstange
...
Differential Revision: https://phabricator.services.mozilla.com/D85105
2020-08-04 01:18:14 +00:00
Noemi Erli
c5adcfe981
Backed out 4 changesets (bug 1654992, bug 1654991) for causing timeous in mask-opacity-1e.html
...
Backed out changeset 11f0f54c6e0a (bug 1654992)
Backed out changeset a353dd5b3f08 (bug 1654991)
Backed out changeset 6a7964ba549f (bug 1654991)
Backed out changeset cf3bfb91d98c (bug 1654991)
2020-08-03 22:09:36 +03:00
Simon Giesecke
9d2e516112
Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D84807
2020-08-03 14:54:18 +00:00
sotaro
64eefafadd
Bug 1645579 - Disable RecycleAllocator for RDD process when WebRender is disabled on Mac r=nical
...
Recycling caused rendering problem on a MacOS PC with OpenGL compositor. TextureHost reuse with OpenGL compositor seemed to have a problem.
Adds pref layers.recycle-allocator-rdd for disable/enable the RecycleAllocator.
Differential Revision: https://phabricator.services.mozilla.com/D79639
2020-06-16 18:14:46 +00:00
Simon Giesecke
00eddcee05
Bug 1642949 - Replace uses of RemoveElementAt by RemoveLastElement/PopLastElement where possible. r=necko-reviewers,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D78027
2020-06-10 10:46:14 +00:00
Butkovits Atila
7f9b16b938
Backed out 3 changesets (bug 1643289, bug 1642949) for causing failure at test_headless_screenshot.html. CLOSED TREE
...
Backed out changeset 98c420f73380 (bug 1643289)
Backed out changeset 9447ea8910aa (bug 1643289)
Backed out changeset 0c827da9d847 (bug 1642949)
2020-06-10 10:07:23 +03:00
Simon Giesecke
1c59dae9e4
Bug 1642949 - Replace uses of RemoveElementAt by RemoveLastElement/PopLastElement where possible. r=necko-reviewers,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D78027
2020-06-10 05:49:28 +00:00
alwu
8f35661a2c
Bug 1612557 - part3 : add Graphic label in ImageContainer::SetCurrentImages(). r=mattwoodrow
...
This patch will do :
- add a graphic label in `ImageContainer::SetCurrentImages()`
The advantage of doing so :
- to mark following profiling frames as graphic, so we can know the time of spending on graphic and media respectively
Differential Revision: https://phabricator.services.mozilla.com/D74173
2020-05-08 01:19:14 +00:00
Simon Giesecke
b484c57d6d
Bug 1626570 - Improve handling of copying arrays in gfx/layers/. r=botond
...
Differential Revision: https://phabricator.services.mozilla.com/D73633
2020-05-05 12:59:26 +00:00
sotaro
5fe2750020
Bug 1618429 - Add RecycleAllocator support to ImageContainer for RDD process r=nical
...
Differential Revision: https://phabricator.services.mozilla.com/D64508
2020-03-11 10:52:48 +00:00
Simon Giesecke
83e48517da
Bug 1613985 - Use default for equivalent-to-default constructors/destructors in gfx. r=jrmuizel
...
Differential Revision: https://phabricator.services.mozilla.com/D65288
2020-03-04 15:39:20 +00:00
sotaro
ca816f63e0
Bug 1618458 - Clean up TextureClientRecycleAllocator r=nical
...
Preparation for Bug 1618429.
Differential Revision: https://phabricator.services.mozilla.com/D64530
2020-02-27 13:34:08 +00:00
Sylvestre Ledru
3a389404c5
Bug 1605934 - Use nested namespaces r=sg
...
Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files
Differential Revision: https://phabricator.services.mozilla.com/D58217
2020-01-18 13:48:34 +00:00
Dorel Luca
8cc61e1d4b
Backed out changeset bbb39655cf71 (bug 1605934) for build bustage in widget/gtk/mozwayland/mozwayland.c
2020-01-18 15:39:55 +02:00
Sylvestre Ledru
8cc3e9bf3f
Bug 1605934 - Use nested namespaces r=sg
...
Done with:
./mach static-analysis check --checks="-*, modernize-concat-nested-namespaces" --fix .
and then clang-format on the files
Differential Revision: https://phabricator.services.mozilla.com/D58217
2020-01-18 13:16:39 +00:00
Jean-Yves Avenard
325a79ad0a
Bug 1543359 - P6. Add backend for color range information. r=mattwoodrow.
...
Add code for YCbCr buffer and IOSurface backend.
Differential Revision: https://phabricator.services.mozilla.com/D27213
2019-07-26 08:45:31 +00:00
Narcis Beleuzu
5e823403ff
Backed out 15 changesets (bug 1543359) for wrench bustages on image.rs . CLOSED TREE
...
Backed out changeset 548006270186 (bug 1543359)
Backed out changeset c9585e9d9f3c (bug 1543359)
Backed out changeset 1c7ca95a2a9b (bug 1543359)
Backed out changeset d742d80b892f (bug 1543359)
Backed out changeset 210eee703fd9 (bug 1543359)
Backed out changeset 4eb933d55d88 (bug 1543359)
Backed out changeset fb9b71ed9f4b (bug 1543359)
Backed out changeset 98b968443458 (bug 1543359)
Backed out changeset a85bd4691bea (bug 1543359)
Backed out changeset b576317853e9 (bug 1543359)
Backed out changeset 095bca5c9b1a (bug 1543359)
Backed out changeset 48eb0ebf9f2e (bug 1543359)
Backed out changeset b22b0eb708b8 (bug 1543359)
Backed out changeset 52187d9320b1 (bug 1543359)
Backed out changeset fa6792c1c2e8 (bug 1543359)
2019-07-26 11:40:33 +03:00
Jean-Yves Avenard
c97acded3d
Bug 1543359 - P6. Add backend for color range information. r=mattwoodrow.
...
Add code for YCbCr buffer and IOSurface backend.
Differential Revision: https://phabricator.services.mozilla.com/D27213
2019-07-26 06:13:37 +00:00
Cosmin Sabou
037643879f
Backed out 14 changesets (bug 1543359) for causing build bustages. CLOSED TREE
...
Backed out changeset 87c99ef85813 (bug 1543359)
Backed out changeset cd0afc5758ba (bug 1543359)
Backed out changeset 101ac87ff017 (bug 1543359)
Backed out changeset 348e748e3451 (bug 1543359)
Backed out changeset d9e937f5caf4 (bug 1543359)
Backed out changeset 2f4eb6501552 (bug 1543359)
Backed out changeset 0d316ef8c668 (bug 1543359)
Backed out changeset bf238b58c694 (bug 1543359)
Backed out changeset 496f206d03d6 (bug 1543359)
Backed out changeset 7c3a1f23baa8 (bug 1543359)
Backed out changeset 90fff717198b (bug 1543359)
Backed out changeset b2ce591ca398 (bug 1543359)
Backed out changeset a63968f077e3 (bug 1543359)
Backed out changeset ca660ab1e0c1 (bug 1543359)
2019-07-26 07:39:11 +03:00
Jean-Yves Avenard
c6e850aa6f
Bug 1543359 - P6. Add backend for color range information. r=mattwoodrow.
...
Add code for YCbCr buffer and IOSurface backend.
Differential Revision: https://phabricator.services.mozilla.com/D27213
2019-07-22 08:24:30 +00:00
sotaro
8d9b156cb4
Bug 1557257 - Rename KnowsCompositor* aForwarder to aKnowsCompositor r=nical
...
Differential Revision: https://phabricator.services.mozilla.com/D33928
2019-06-07 12:27:05 +00:00
Jeff Gilbert
7cd002e59b
Bug 1545892 - Reduce includes in gfx2DGlue.h, nsLayoutUtils.h, nsPresContext.h. r=dholbert
...
Differential Revision: https://phabricator.services.mozilla.com/D28266
2019-04-22 19:58:52 +00:00
Ehsan Akhgari
498e2df734
Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
...
# ignore-this-changeset
2019-01-18 10:16:18 +01:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Andrew Osmond
b8283c2a73
Bug 1504699 - Part 5. Stop sharing code between SharedUserData and SharedSurfacesAnimation. r=nical
...
Originally it made sense to share the code, but now the latter has
become too specialized to reuse it. Fork it off here and update it later
parts in this series.
Differential Revision: https://phabricator.services.mozilla.com/D10901
2018-11-21 06:47:17 -05:00
Michael Froman
d0df81d73d
Bug 1471535 - pt4 - Add BuildSurfaceDescriptorBuffer to ImageContainer for remote decoding. r=jya,mattwoodrow
...
Depends on D8484
Differential Revision: https://phabricator.services.mozilla.com/D8486
2018-11-14 18:05:28 +00:00
Bogdan Tara
ab4f52af45
Backed out 12 changesets (bug 1471535) for VideoDecoderChild failures CLOSED TREE
...
Backed out changeset 3d8a11458d79 (bug 1471535)
Backed out changeset 2176010bc1fe (bug 1471535)
Backed out changeset dfb4d3462b22 (bug 1471535)
Backed out changeset ea6b73ded74d (bug 1471535)
Backed out changeset 404d760a9e82 (bug 1471535)
Backed out changeset 28ae4b6fab68 (bug 1471535)
Backed out changeset af91e1f04c2d (bug 1471535)
Backed out changeset d39fef4334b3 (bug 1471535)
Backed out changeset a038821cd8ae (bug 1471535)
Backed out changeset 5dcc74a938c6 (bug 1471535)
Backed out changeset 53aff7e699b4 (bug 1471535)
Backed out changeset f3f6abc052f0 (bug 1471535)
2018-11-13 23:31:56 +02:00
Michael Froman
7fc6c3acc3
Bug 1471535 - pt4 - Add BuildSurfaceDescriptorBuffer to ImageContainer for remote decoding. r=jya,mattwoodrow
...
Depends on D8484
Differential Revision: https://phabricator.services.mozilla.com/D8486
2018-11-13 17:34:48 +00:00
Dorel Luca
2acd40fffe
Backed out 9 changesets (bug 1471535) for Mochitest failures in build/src/dom/media/ipc/VideoDecoderChild.cpp
...
Backed out changeset 1342e21cf613 (bug 1471535)
Backed out changeset 8dc9b4d59f90 (bug 1471535)
Backed out changeset 8082f226b52d (bug 1471535)
Backed out changeset f53e1e7bd538 (bug 1471535)
Backed out changeset 1a991ac2e1f8 (bug 1471535)
Backed out changeset a32288737e57 (bug 1471535)
Backed out changeset a094c1ac3afe (bug 1471535)
Backed out changeset fe9b5cdf78f9 (bug 1471535)
Backed out changeset 3a8a75389c42 (bug 1471535)
2018-11-09 12:14:50 +02:00
Michael Froman
dfdf3c014b
Bug 1471535 - pt4 - Add BuildSurfaceDescriptorBuffer to ImageContainer for remote decoding. r=jya,mattwoodrow
...
Depends on D8484
Differential Revision: https://phabricator.services.mozilla.com/D8486
2018-11-08 03:46:32 +00:00
Andrew Osmond
b7da0fef4d
Bug 1428558 - Part 6. Integrate SharedSurfacesAnimation with ImageContainer. r=nical
...
This patch embeds a SharedSurfacesAnimation object inside an
ImageContainer. This allows any consumers of the container to get the
single shared ImageKey for an animation, despite whatever surfaces may
be held inside the container at a given time.
Differential Revision: https://phabricator.services.mozilla.com/D7503
2018-11-02 09:09:52 -04:00
Jean-Yves Avenard
f2dce7438e
Bug 1245400 - P4. Remove no longer used class member. r=nical
...
Also speed up compositing videos as there's no longer need to check every single frames twice to determine if they were composited or not.
Differential Revision: https://phabricator.services.mozilla.com/D2178
2018-08-22 17:26:37 +02:00
Jean-Yves Avenard
dff428dda6
Bug 1245400 - P3. Report number of frames dropped by compositor back to VideoSink. r=nical
...
We report the number of frames dropped by the compositor because they were too late through:
ImageComposite -> ImageHost -> CompositableTransactionParent -> ImageBridgeParent -> IPDL -> ImageBridgeChild -> ImageContainerListener -> ImageContainer -> VideoSink
Differential Revision: https://phabricator.services.mozilla.com/D2177
2018-08-22 17:26:36 +02:00
Emilio Cobos Álvarez
4b8b5e1717
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
sotaro
59334e0a19
Bug 1465306 - Make D3D11YCbCrRecycleAllocator handle device reset r=nical
2018-05-31 09:35:24 +09:00
Andrew Osmond
7537c73d36
Bug 1433351 - Add nsBaseHashtable::EntryPtr::OrRemove method to abort nsBaseHashtable::LookupForAdd on miss. r=froydnj
...
In SourceSurfaceImage::GetTextureClient, we use LookupForAdd. This is
because we typically will create a new TextureClient if there isn't
already one created. This creation can fail because the size is too big,
or we don't have the memory available for it. Unfortunately LookupForAdd
is an infallible operation; it is expected we will always add something
to the hashtable if we don't find an entry. This patch adds an OrRemove
method to cover the corner case where we are unable to complete the
insertion.
2018-03-28 12:58:49 -04:00
Dan Glastonbury
62d59452a4
Bug 1428947 - Check plane width & stride constraints. r=mattwoodrow
...
MozReview-Commit-ID: HEcMG4JoEl3
2018-02-19 11:41:41 +10:00
Jean-Yves Avenard
462270e498
Bug 1404997 - P5. Fix constness and remove redundant virtual keyword. r=mattwoodrow
...
Additionally, various C++ code and style cleanup
MozReview-Commit-ID: 7BCtQzFGaOc
2017-11-30 19:03:02 +01:00
sotaro
40e3745471
Bug 1405562 - Enable D3D11YCbCrImage usage with WebRender r=mattwoodrow
2017-12-01 18:01:35 +09:00
Cosmin Sabou
cca7551488
Backed out changeset 994147e6fd70 (bug 1405562) for build bustages on obj-firefox/dist/include/mozilla/layers/KnowsCompositor.h 💯 75 r=backout on a CLOSED TREE
2017-12-01 07:35:36 +02:00
sotaro
79f9f28749
Bug 1405562 - Enable D3D11YCbCrImage usage with WebRender r=mattwoodrow
2017-11-30 20:39:20 -08:00
Daniel Holbert
bb0a8b6602
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
2017-10-27 16:10:06 -07:00
sotaro
2383f3da39
Bug 1408573 - Change buffer allocation to fallible r=nical
2017-10-28 07:30:13 +09:00
Jean-Yves Avenard
3007891b39
Bug 1215089 - P6: Remove dead code. r=mattwoodrow
...
The method isn't called and the comments referring to it are no longer applicable.
MozReview-Commit-ID: 2FFWhj7wzht
2017-10-04 03:26:45 +02:00
Sebastian Hengst
e40f87a0b0
Backed out changeset 2072826699d5 (bug 1215089)
2017-10-04 16:25:51 +02:00
Jean-Yves Avenard
dba31dca2a
Bug 1215089 - P5: Remove dead code. r=mattwoodrow
...
The method isn't called and the comments referring to it are no longer applicable.
MozReview-Commit-ID: 2FFWhj7wzht
2017-10-04 03:26:45 +02:00
sotaro
9a0c49aeb0
Bug 1402739 - Fix mutex handling around async ImageContainer r=nical
2017-09-26 09:58:37 +09:00
sotaro
3ca597d703
Bug 1387920 - Drop all ImageContainers' ImageClients during disabling WebRender r=nical
2017-09-22 08:21:09 +09:00
Nathan Froyd
96f5a4a228
Bug 1347963 - part 7 - make ImageContainer use RecursiveMutex; r=kats
...
Making ImageContainer slightly faster with RecursiveMutex is a good thing.
We need to fix up some cargo-culting of includes along the way, though.
2017-07-04 13:47:42 -04:00