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

3914 Коммитов

Автор SHA1 Сообщение Дата
Timothy Nikkel 3e452098c6 Bug 1676989. Update mCompositedFrameInvalid more often now that we only check for the current frame being decoded and not all frames. r=aosmond
In https://hg.mozilla.org/integration/autoland/rev/471ad96ddc3e we changed this from calling |Surface().IsFullyDecoded()| to calling Seek because IsFullyDecoded always returns false for large enough animations because we don't keep around all of their frames.

In the old model, where mIsCurrentlyDecoded tracks if the image is fully decoded, we don't want to set mCompositedFrameInvalid to true if simply if the image isn't fully decoded because the current frame could be available.

In the new model, where mIsCurrentlyDecoded tracks if the current frame is available, we definitely do want to mark mCompositedFrameInvalid if the current frame is not available.

Depends on D96944

Differential Revision: https://phabricator.services.mozilla.com/D96945
2020-11-13 03:25:33 +00:00
Timothy Nikkel 6ab48a8579 Bug 1676988. Use GetFrame instead of Seek in AnimationState::UpdateStateInternal. r=aosmond
In https://hg.mozilla.org/integration/autoland/rev/471ad96ddc3e we changed this from calling |Surface().IsFullyDecoded()| to calling Seek because IsFullyDecoded always returns false for large enough animations because we don't keep around all of their frames.

However RequestRefresh/AdvanceFrame call GetFrame. Seek is intended to be used for display purposes, GetFrame is intended to be used for advancing the frame purposes. And Seek and GetFrame can actually returns different results if it is the first frame that we are asking for.

Differential Revision: https://phabricator.services.mozilla.com/D96944
2020-11-13 03:25:33 +00:00
Matt Woodrow 96c437eeaf Bug 1674856 - Fiz fuzz annotations for Windows10 swr reftests. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D95571
2020-11-03 23:51:40 +00:00
Razvan Maries c032d89358 Backed out 3 changesets (bug 1674856) for Windows10 swr reftests perma failures. CLOSED TREE
Backed out changeset 8e52162cdf48 (bug 1674856)
Backed out changeset eb84f9c620ac (bug 1674856)
Backed out changeset 477a1070a971 (bug 1674856)
2020-11-03 21:43:26 +02:00
Matt Woodrow 66c1e2b63c Bug 1674856 - Fix fuzz annotations for Windows10 swr reftests. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D95571
2020-11-03 18:16:36 +00:00
Chun-Min Chang eeae815abc Bug 1670827 - P5: Telemetry tracking decoder errors r=jbauman
Add a telemetry probe tracking the errors in dav1d or aom decoder. We
only care the errors from `aom_codec_decode` and `dav1d_get_picture` so
other error code won't be counted.

Differential Revision: https://phabricator.services.mozilla.com/D94489
2020-11-03 01:57:10 +00:00
Chun-Min Chang 9808dd4115 Bug 1670827 - P4: Telemetry tracking bit-depth r=jbauman
Add a telemetry probe tracking the bit-per-pixel of the AVIF images

Differential Revision: https://phabricator.services.mozilla.com/D93867
2020-11-03 01:55:55 +00:00
Chun-Min Chang 00742cf457 Bug 1670827 - P3: Telemetry tracking YUV color space r=jbauman
Add a telemetry probe tracking the YUV color space of the AVIF images

Differential Revision: https://phabricator.services.mozilla.com/D93708
2020-11-03 01:54:21 +00:00
Chun-Min Chang 5f04ddce8a Bug 1670827 - P2: Telemetry tracking which decoder is r=jbauman
Add a telemetry probe tracking times of the decoders (dav1d vs libaom)
used to decode AVIF

Differential Revision: https://phabricator.services.mozilla.com/D93707
2020-11-03 01:53:30 +00:00
Chun-Min Chang a2ff64d95f Bug 1670827 - P1: Telemetry tracking decode results r=jbauman
Add a telemetry probe tracking all kinds of decode results of the AVIF
decoder

Differential Revision: https://phabricator.services.mozilla.com/D93291
2020-11-03 01:52:16 +00:00
Lee Salzman d1f364349a Bug 1621454 - adjust fuzz for SWGL span shaders. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D95325
2020-10-31 13:30:57 +00:00
Butkovits Atila c4646c9aa3 Backed out 4 changesets (bug 1621454) for causing bustage src/swgl_ext.h. a=backout
Backed out changeset d0d03d5a81a8 (bug 1621454)
Backed out changeset 6675f76d6f11 (bug 1621454)
Backed out changeset 29943d5348df (bug 1621454)
Backed out changeset 80c0aaa81c2e (bug 1621454)
2020-10-31 12:28:47 +02:00
Lee Salzman 00b039a687 Bug 1621454 - adjust fuzz for SWGL span shaders. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D95325
2020-10-31 02:28:08 +00:00
Randell Jesup 184f4e7a19 Bug 1653458: re-enable test_bug1325080.html for fission+xorigin r=kashav
Differential Revision: https://phabricator.services.mozilla.com/D95343
2020-10-30 17:05:15 +00:00
Bas Schouten eb6553ec05 Bug 1672597 - Part 2: Use TaskController's thread pool for image decoding. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D94410
2020-10-27 15:29:26 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dimi Lee 4cbccb42f6 Bug 1646570 - Remove using GetInProcessScriptableTop in ImageCacheKey::GetIsolationKey r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D93355
2020-10-22 12:57:11 +00:00
Emilio Cobos Álvarez 49c488db1c Bug 1646222 - Don't invalidate vector images as a result of size/display mode changes. r=tnikkel
sizemode/displaymode media queries only affect a given browsing context
tree so there's no need to propagate the change to images in that case.

Differential Revision: https://phabricator.services.mozilla.com/D94422
2020-10-22 09:29:43 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Emilio Cobos Álvarez 15c2b41a78 Bug 1668875 - Invalidate images for media query changes more granularly. r=heycam
The SVG code invalidating too much causes hangs with pages that have
lots of SVGs.

Differential Revision: https://phabricator.services.mozilla.com/D94186
2020-10-20 21:24:30 +00:00
Cameron McCormack 623306a175 Bug 1656114 - Part 5: Report use counters in documents that come out of the bfcache. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D93046
2020-10-11 22:15:06 +00:00
Cameron McCormack 18ffe7c642 Bug 1656114 - Part 4: Accumulate page use counters in the parent process. r=emilio,nika
This changes the way we deal with page use counters so that we can
handle out of process iframes.

Currently, when a parent document is being destroyed, we poke into all
of the sub-documents to merge their use counters into the parent's page
use counters, which we then report via Telemetry.  With Fission enabled,
the sub-documents may be out of process.  We can't simply turn these
into async IPC calls, since the parent document will be destroyed
shortly, as might the content processes holding the sub-documents.

So instead, each document during its initialization identifies which
ancestor document it will contribute its page use counters to, and
stores its WindowContext id to identify that ancestor.  A message is
sent to the parent process to notify it that page use counter data will
be sent at some later point.  That later point is when the document
loses its window.  It doesn't matter if the ancestor document has
already been destroyed at this point, since all we need is its
WindowContext id to uniquely identify it.  Once the parent process has
received all of the use counters it expects to accumulate to a given
WindowContext Id, it reports them via Telemetry.

Reporting of document use counters remains unchanged and is done by each
document in their content process.

While we're here, we also:

* Limit use counters to be reported for a pre-defined set of document
  URL schemes, rather than be based on the document principal.

* Add proper MOZ_LOG logging for use counters instead of printfs.

Differential Revision: https://phabricator.services.mozilla.com/D87188
2020-10-11 22:03:43 +00:00
Jon Bauman b38af6ac13 Bug 1669033 - dav1d all_layers setting should be set to 0. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D92813
2020-10-08 00:56:38 +00:00
longsonr 9ef274dfd2 Bug 1530990 - Remove dead code r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D92700
2020-10-07 08:40:25 +00:00
Alexis Beingessner ab37cbed76 Bug 1601980 - use MOZ_ATOMIC_BITFIELDS in imagelib to avoid races on flags. r=aosmond,decoder
Differential Revision: https://phabricator.services.mozilla.com/D91633
2020-10-01 13:22:49 +00:00
Valentin Gosu 2ba638de33 Bug 1589337 - Use nsIClassInfoImpl in nsIconURI r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D90255
2020-09-29 11:40:43 +00:00
Simon Giesecke de7bab0f06 Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82325
2020-09-23 15:17:15 +00:00
Emilio Cobos Álvarez 96b0ee6817 Bug 1665343 - Remove blob specialness in image cache. r=tnikkel
We use it to merge blobs, but that doesn't match the spec. Per:

  https://html.spec.whatwg.org/#the-list-of-available-images

We should key off the URI, and thus a revoked image should be able to be
reused if the request is cached. This works to allow printing revoked
blob images, which other browsers allow.

I don't see any way to make that work easily while preserving the blob
image optimization. That being said, it seems other browsers also
re-decode when creating different URLs for the same blob (see the
test-case attached to the bug), so it seems we should be able to live
without it.

Differential Revision: https://phabricator.services.mozilla.com/D90544
2020-09-22 22:02:42 +00:00
Kris Taeleman 51dbdf3ada Bug 1656987 - Change WeakPtr to ThreadSafeWeakPtr. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D90748
2020-09-21 18:14:47 +00:00
Nathan Froyd cfb8fb313f Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg
This patch was generated by running:

```
perl -p -i \
     -e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF8toUTF16\((.*)\);/\1CopyUTF8toUTF16(\3, \2);/;' \
     -e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF16toUTF8\((.*)\);/\1CopyUTF16toUTF8(\3, \2);/;' \
     $FILE
```

against every .cpp and .h in mozilla-central, and then fixing up the
inevitable errors that happen as a result of matching C++ expressions with
regexes.  The errors fell into three categories:

1. Calling the convert functions with `std::string::c_str()`; these were
   changed to simply pass the string instead, relying on implicit conversion
   to `mozilla::Span`.
2. Calling the convert functions with raw pointers, which is not permitted
   with the copy functions; these were changed to invoke `MakeStringSpan` first.
3. Other miscellaneous errors resulting from over-eager regexes and/or the
   replacement not being type-aware.  These changes were reverted.

Differential Revision: https://phabricator.services.mozilla.com/D88903
2020-09-02 09:54:37 +00:00
Jon Bauman 749400c4c8 Bug 1661368 - Slow testcase impacts AVIF fuzzing performance. r=tsmith
Add finer-grained logging to evaluate where decoding is taking too long.

Differential Revision: https://phabricator.services.mozilla.com/D88503
2020-08-28 00:06:07 +00:00
Jon Bauman 9dd9082896 Bug 1655846 - Hit MOZ_CRASH(assertion failed: `(left == right)` left: `1024`, right: `0`). r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D87003
2020-08-14 23:17:37 +00:00
Thomas Daede 2d4c47568a Bug 1553289 - Add YUVColorSpace::Identity decoding to AVIF. r=jbauman
Differential Revision: https://phabricator.services.mozilla.com/D85960
2020-08-10 21:39:06 +00:00
Simon Giesecke 1e02318b49 Bug 1653335 - Replace MakeSpan uses by constructor calls. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D83817
2020-08-07 07:49:47 +00:00
Thomas Daede fa78c8a983 Bug 1657346 - AVIF: Handle chromaticity derived matrix coeffs. r=jbauman
Differential Revision: https://phabricator.services.mozilla.com/D86008
2020-08-06 23:38:30 +00:00
Sonia Singla 7e4a582215 Bug 1528649 - Remove the context parameter from nsInputStreamPump::AsyncRead. r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D85154
2020-08-05 11:21:51 +00:00
Coroiu Cristina 73f9f4b51e Backed out changeset 3449736e0af5 (bug 1655846) for GTest failures on Android 2020-08-05 11:49:52 +03:00
Simon Giesecke 1e6ec7ec86 Bug 1656117 - Reduce include dependencies on nsRefreshDriver.h. r=mstange
The abstract observer base classes are moved to a separate header file
nsRefreshObservers.h and the includes are adjusted accordingly.

Some method implementations are moved to the corresponding implementation files
to avoid the need to include the nsRefreshDriver.h file in the header.

Differential Revision: https://phabricator.services.mozilla.com/D85764
2020-08-04 21:17:50 +00:00
Matt Woodrow ba66eda840 Bug 1656813 - Mark failing test. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D85717
2020-08-05 02:19:31 +00:00
Matt Woodrow b31970d899 Bug 1656813 - Annotate fuzzy reftest differences. r=lsalzman
These are all subtle differences that aren't visible, many are actually less fuzzy than with normal WR.

Differential Revision: https://phabricator.services.mozilla.com/D85715
2020-08-05 02:19:08 +00:00
Cosmin Sabou 38cd82e194 Backed out 8 changesets (bug 1656813) for reftest failures on bipbop_300_215kbps.mp4.lastframe.html.
Backed out changeset 92e0209dc7f1 (bug 1656813)
Backed out changeset 1b3842f2ca27 (bug 1656813)
Backed out changeset efed1b35fe47 (bug 1656813)
Backed out changeset d1c313ebe358 (bug 1656813)
Backed out changeset 4d6a3bf61345 (bug 1656813)
Backed out changeset 060254b3ad73 (bug 1656813)
Backed out changeset 37e5e5e6593a (bug 1656813)
Backed out changeset 12c0e9554a5f (bug 1656813)
2020-08-05 04:52:20 +03:00
Matt Woodrow abeb17f2ef Bug 1656813 - Mark failing test. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D85717
2020-08-05 00:54:48 +00:00
Matt Woodrow 1885d56be1 Bug 1656813 - Annotate fuzzy reftest differences. r=lsalzman
These are all subtle differences that aren't visible, many are actually less fuzzy than with normal WR.

Differential Revision: https://phabricator.services.mozilla.com/D85715
2020-08-05 00:54:23 +00:00
Thomas Daede 0d996643b9 Bug 1657075 - AVIF: use matrix coefficients to set YUVColorSpace. r=jbauman
Differential Revision: https://phabricator.services.mozilla.com/D85839
2020-08-04 23:00:38 +00:00
Jon Bauman 48626ed575 Bug 1655846 - Hit MOZ_CRASH(assertion failed: `(left == right)` left: `1024`, right: `0`). r=tsmith
Differential Revision: https://phabricator.services.mozilla.com/D85796
2020-08-04 22:40:52 +00:00
Jon Bauman eb0d0b2471 Bug 1656927 - Assertion failure: aContentType.Equals("image/avif"), at /builds/worker/checkouts/gecko/image/imgLoader.cpp:2785. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D85803
2020-08-04 17:30:14 +00:00
Simon Giesecke 96f3e7e019 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