Commit Graph

3564 Commits

Author SHA1 Message Date
Christoph Kerschbaumer
f5cd986818 Bug 1583044: Make nsMozIconURI serializeable. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D49442

--HG--
extra : moz-landing-system : lando
2019-10-21 14:16:49 +00:00
Razvan Maries
f1b8926d68 Backed out changeset fb8fb91d2a96 (bug 1583044) for causing perma fails on test_DownloadUtils.js and reftests. CLOSED TREE 2019-10-18 15:25:07 +03:00
Christoph Kerschbaumer
89195abaf2 Bug 1583044: Make nsMozIconURI serializeable. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D49442

--HG--
extra : moz-landing-system : lando
2019-10-18 10:49:55 +00:00
Geoff Brown
c906073cd5 Bug 1585119 - Re-enable many mochitests on android; r=geckoview-reviewers,snorp
Most of these tests have been disabled for a long time; they run well
in the current test environment.
With the additional tests running, task times increase; I have added one
more test chunk for android mochitest-plain.
These tests were identified from a random sampling of mochitest manifests;
I intend to enable more mochitests in future patches.

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

--HG--
extra : moz-landing-system : lando
2019-10-15 15:07:09 +00:00
Andrew Osmond
4cb5bd51f8 Bug 1583647 - Make the GIF decoder use the accelerated RGB unpacking. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D47063

--HG--
extra : moz-landing-system : lando
2019-09-25 23:31:40 +00:00
Andrew Osmond
ea01661965 Bug 1551088 - Part 8. Add reftest annotations for slight premultiplication differences. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D46451

--HG--
extra : moz-landing-system : lando
2019-10-02 13:37:32 +00:00
Andrew Osmond
9265db5ad2 Bug 1551088 - Part 7. Add gtests for SwizzleFilter. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D46450

--HG--
extra : moz-landing-system : lando
2019-10-02 13:37:30 +00:00
Andrew Osmond
e9dc497c47 Bug 1551088 - Part 6. Make image decoders use accelerated methods for swizzling and premultiplication. r=tnikkel
The PNG decoder lacks fast implementations for swizzling/unpacking
inside the library, and both PNG and WebP may need to perform
premultiplication due to the alpha channel. This patch adds a new filter
allowing us to take advantage of our accelerated implementations to
perform these transformations on their behalf.

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

--HG--
extra : moz-landing-system : lando
2019-10-02 13:37:29 +00:00
Andrew Osmond
7b2fde0d05 Bug 1551088 - Part 5. Expose SurfaceFilter input row directly to avoid copy if possible. r=tnikkel
Some filters can do the copy of the given data into the working buffer
as part of the filter operation. For those that cannot, we will just
copy the data first, and then advance the row.

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

--HG--
extra : moz-landing-system : lando
2019-10-02 13:37:28 +00:00
Geoff Brown
d964f2d601 Bug 1584290 - Enable many reftests on Android; r=geckoview-reviewers,snorp
Most of these tests have been disabled for a long time; they run well
in the current test environment.

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

--HG--
extra : moz-landing-system : lando
2019-09-30 16:34:16 +00:00
Andreea Pavel
9fd779e03f Merge mozilla-central to autoland on a CLOSED TREE 2019-09-26 01:00:14 +03:00
Timothy Nikkel
61d1597ffc Bug 1580317. Fix calculation of buffer size. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D47123

--HG--
extra : moz-landing-system : lando
2019-09-25 19:24:07 +00:00
Cosmin Sabou
6da90eb0b7 Backed out 9 changesets (bug 1551088) for causing Bug 1583848. a=backout
Backed out changeset d0ab25c226a7 (bug 1551088)
Backed out changeset 9ef391e20fa6 (bug 1551088)
Backed out changeset 3e6f25b21f8c (bug 1551088)
Backed out changeset 5d72c8de4daf (bug 1551088)
Backed out changeset f77c43bcc75b (bug 1551088)
Backed out changeset 9e954d6765de (bug 1551088)
Backed out changeset d90a571e581f (bug 1551088)
Backed out changeset 25a5f5563e9d (bug 1551088)
Backed out changeset bed9c93eeb2d (bug 1551088)
2019-09-25 18:42:48 +03:00
Andrew Osmond
b63ff49173 Bug 1551088 - Part 8. Add reftest annotations for slight premultiplication differences. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D46451

--HG--
extra : moz-landing-system : lando
2019-09-24 20:42:50 +00:00
Andrew Osmond
23f460f989 Bug 1551088 - Part 7. Add gtests for SwizzleFilter. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D46450

--HG--
extra : moz-landing-system : lando
2019-09-24 20:42:48 +00:00
Andrew Osmond
4bf69333a2 Bug 1551088 - Part 6. Make image decoders use accelerated methods for swizzling and premultiplication. r=tnikkel
The PNG decoder lacks fast implementations for swizzling/unpacking
inside the library, and both PNG and WebP may need to perform
premultiplication due to the alpha channel. This patch adds a new filter
allowing us to take advantage of our accelerated implementations to
perform these transformations on their behalf.

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

--HG--
extra : moz-landing-system : lando
2019-09-24 20:42:47 +00:00
Andrew Osmond
1c40442ec4 Bug 1551088 - Part 5. Expose SurfaceFilter input row directly to avoid copy if possible. r=tnikkel
Some filters can do the copy of the given data into the working buffer
as part of the filter operation. For those that cannot, we will just
copy the data first, and then advance the row.

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

--HG--
extra : moz-landing-system : lando
2019-09-24 20:42:45 +00:00
Oana Pop Rus
4f9a3f24ba Backed out 8 changesets (bug 1551088) for causing reftest failures in SwizzleAVX2.cpp and SwizzleSSSE3.cpp on a CLOSED TREE
Backed out changeset b3760d42e3bf (bug 1551088)
Backed out changeset 222e856b5bc3 (bug 1551088)
Backed out changeset b259c9fb5ad6 (bug 1551088)
Backed out changeset 5fe283ceaa0b (bug 1551088)
Backed out changeset d4dadb6ef0bd (bug 1551088)
Backed out changeset 925e26e17abe (bug 1551088)
Backed out changeset a011360f5018 (bug 1551088)
Backed out changeset 229c3d631d2e (bug 1551088)
2019-09-24 18:12:39 +03:00
Andrew Osmond
3ded595349 Bug 1551088 - Part 8. Add reftest annotations for slight premultiplication differences. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D46451

--HG--
extra : moz-landing-system : lando
2019-09-24 13:31:41 +00:00
Andrew Osmond
7894763022 Bug 1551088 - Part 7. Add gtests for SwizzleFilter. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D46450

--HG--
extra : moz-landing-system : lando
2019-09-24 13:31:34 +00:00
Andrew Osmond
dda166a96c Bug 1551088 - Part 6. Make image decoders use accelerated methods for swizzling and premultiplication. r=tnikkel
The PNG decoder lacks fast implementations for swizzling/unpacking
inside the library, and both PNG and WebP may need to perform
premultiplication due to the alpha channel. This patch adds a new filter
allowing us to take advantage of our accelerated implementations to
perform these transformations on their behalf.

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

--HG--
extra : moz-landing-system : lando
2019-09-24 13:31:32 +00:00
Andrew Osmond
88698f9a07 Bug 1551088 - Part 5. Expose SurfaceFilter input row directly to avoid copy if possible. r=tnikkel
Some filters can do the copy of the given data into the working buffer
as part of the filter operation. For those that cannot, we will just
copy the data first, and then advance the row.

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

--HG--
extra : moz-landing-system : lando
2019-09-24 13:31:30 +00:00
Geoff Brown
dcb380399e Bug 1582785 - Enable some xpcshell tests on Android; r=geckoview-reviewers,agi
Most of these tests have been disabled for a long time; they run well
in the current test environment.

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

--HG--
extra : moz-landing-system : lando
2019-09-23 22:43:55 +00:00
Cosmin Sabou
69acba5002 Backed out 8 changesets (bug 1551088) for causing build bustages. CLOSED TREE
Backed out changeset 02d9dc4d39a5 (bug 1551088)
Backed out changeset d7684ca35c0d (bug 1551088)
Backed out changeset b061b1bf8281 (bug 1551088)
Backed out changeset 4760b8b22ffd (bug 1551088)
Backed out changeset 4685fc022257 (bug 1551088)
Backed out changeset 91300f9f99bb (bug 1551088)
Backed out changeset 6da767c8d55c (bug 1551088)
Backed out changeset ec69be661551 (bug 1551088)
2019-09-21 14:52:41 +03:00
Andrew Osmond
8c8d2ae1df Bug 1551088 - Part 8. Add reftest annotations for slight premultiplication differences. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D46451

--HG--
extra : moz-landing-system : lando
2019-09-20 18:54:04 +00:00
Andrew Osmond
cf7d9c7ae1 Bug 1551088 - Part 7. Add gtests for SwizzleFilter. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D46450

--HG--
extra : moz-landing-system : lando
2019-09-20 18:53:56 +00:00
Andrew Osmond
7f20ed4927 Bug 1551088 - Part 6. Make image decoders use accelerated methods for swizzling and premultiplication. r=tnikkel
The PNG decoder lacks fast implementations for swizzling/unpacking
inside the library, and both PNG and WebP may need to perform
premultiplication due to the alpha channel. This patch adds a new filter
allowing us to take advantage of our accelerated implementations to
perform these transformations on their behalf.

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

--HG--
extra : moz-landing-system : lando
2019-09-21 07:13:45 +00:00
Andrew Osmond
bd60a922c2 Bug 1551088 - Part 5. Expose SurfaceFilter input row directly to avoid copy if possible. r=tnikkel
Some filters can do the copy of the given data into the working buffer
as part of the filter operation. For those that cannot, we will just
copy the data first, and then advance the row.

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

--HG--
extra : moz-landing-system : lando
2019-09-20 19:36:00 +00:00
Timothy Nikkel
c860a49663 Bug 1580820. Update the inner window id as well as the context (document) pointer on an imgRequest if we validate it for that document/inner window id. r=aosmond
If we just update the document pointer and not the inner window id then the request is unusable by any document since both the inner window id and the document pointer must match for it to be re-usable.

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

--HG--
extra : moz-landing-system : lando
2019-09-17 13:16:19 +00:00
Hiroyuki Ikezoe
daa68529bc Bug 1581137 - Allow one frameUpdate observation for the animated image which is out of the display port for now. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D45945

--HG--
extra : moz-landing-system : lando
2019-09-15 22:03:07 +00:00
Hiroyuki Ikezoe
1785543e7b Bug 1580703 - Use wider spacers to ensure that the given scroll position is outside of the display port. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D45814

--HG--
extra : moz-landing-system : lando
2019-09-13 10:18:08 +00:00
Timothy Nikkel
be0d8b9e93 Bug 1284651. Allow the image surface cache to grow beyond 1GB on 64bit builds with sufficient memory. r=aosmond
Before this patch: surface cache size = min(1GB, system_memory/4)
After this patch: surface cache size = min(32bit ? 1GB : 2GB , system_memory/4)

sizeof(uintptr_t) is the best I can figure out to detect 32bit builds.

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

--HG--
extra : moz-landing-system : lando
2019-09-10 00:55:13 +00:00
championshuttler
7141b73975 Bug 1552317 - Fix codespell errors for image/. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D45553

--HG--
extra : moz-landing-system : lando
2019-09-12 09:00:52 +00:00
Hiroyuki Ikezoe
2e1a793c8c Bug 1541705 - Test for offscreen image in out-of-process iframe. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D44424

--HG--
extra : moz-landing-system : lando
2019-09-12 08:09:34 +00:00
Timothy Nikkel
0effe6b521 Bug 1580087. Fix 32bit * 32bit integer multiplies so they don't overflow in imagelib. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D45303

--HG--
extra : moz-landing-system : lando
2019-09-11 20:57:17 +00:00
Brindusan Cristian
e7929f4db7 Backed out changeset 7793fa575497 (bug 1580087) for build bustages at nsIconChannel.cpp. CLOSED TREE 2019-09-11 22:43:19 +03:00
Timothy Nikkel
8bd7132fe7 Bug 1580087. Fix 32bit * 32bit integer multiplies so they don't overflow in imagelib. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D45303

--HG--
extra : moz-landing-system : lando
2019-09-11 13:05:30 +00:00
Bogdan Tara
4f6f7b7336 Backed out changeset 3519c255f86e (bug 1284651) for gtest failures CLOSED TREE 2019-09-10 03:49:53 +03:00
Timothy Nikkel
687189b407 Bug 1284651. Allow the image surface cache to grow beyond 1GB on 64bit builds with sufficient memory. r=aosmond
Before this patch: surface cache size = min(1GB, system_memory/4)
After this patch: surface cache size = min(32bit ? 1GB : 2GB , system_memory/4)

sizeof(uintptr_t) is the best I can figure out to detect 32bit builds.

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

--HG--
extra : moz-landing-system : lando
2019-09-09 23:44:58 +00:00
Timothy Nikkel
e0a79ba9f2 Bug 1578164. Use async notifications when requesting decode of an image in most places. r=aosmond
Most of things will likely be no real change because they ask for the exact frame they want immediately before.

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

--HG--
extra : moz-landing-system : lando
2019-09-03 15:36:23 +00:00
Eric Rahm
f6aea79235 Bug 1577867 - Remove using namespace std from image/ r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D44250

--HG--
extra : moz-landing-system : lando
2019-08-30 19:58:25 +00:00
Timothy Nikkel
dc486dab60 Bug 1567418. Try to diagnose crash in png decoder. r=aosmond
Call WriteRow from a different line number if we have an interlacing buffer. I think the compiler shouldn't be able to optimize these into the same code, and so we should be able to distinguish them.

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

--HG--
extra : moz-landing-system : lando
2019-08-30 11:27:58 +00:00
Timothy Nikkel
f1e7c2285d Bug 1577155. Make image/test/mochitest/test_bug415761.html copy both the test and reference icon so the OS doesn't include an extra badge indicating it is a sym link. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D44082

--HG--
extra : moz-landing-system : lando
2019-08-30 13:28:24 +00:00
kanurag94
17e4078da3 Bug 1556840 - Enable more ESLint rules for image/. r=Standard8,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D43351

--HG--
extra : moz-landing-system : lando
2019-08-29 12:59:57 +00:00
Edgar Chen
20182dbcb2 Bug 1576154 - Check mSVGDocumentWrapper when trying to report use counters; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D43256

--HG--
extra : moz-landing-system : lando
2019-08-25 22:45:33 +00:00
Mike Hommey
66d7fe943e Bug 1575420 - Replace MOZ_WIDGET_TOOLKIT value of "gtk3" with "gtk". r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D42765

--HG--
extra : moz-landing-system : lando
2019-08-21 12:25:42 +00:00
Edgar Chen
a3adabe5a7 Bug 1568950 - Part 5: Remove nsIDOMWindowUtils::forceUseCounterFlush; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D42818

--HG--
extra : moz-landing-system : lando
2019-08-21 12:52:19 +00:00
Edgar Chen
21c9ba65da Bug 1568950 - Part 2: Record use counters for SVG image when the image is going to be discarded; r=smaug
Part-1 patch (moving ReportUseCounters call to Document::Destroy) doesn't help SVG image case because the SVGDocumentWrapper::DestroyViewer() still happens too late.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 12:58:12 +00:00
Thomas Nguyen
bbd6f51a56 Bug 1528697 - Add cenum referrerpolicy in ReferrerInfo.idl r=ckerschb,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D41955

--HG--
extra : moz-landing-system : lando
2019-08-21 13:28:23 +00:00
Thomas Nguyen
32ab8293ff Bug 1528697 - Expose ReferrerPolicy.webidl and use referrerpolicy enum r=smaug
ReferrerPolicy gets tossed back and forth as a uint32_t and
ReferrerPolicy enum in header file. Expose ReferrerPolicyValues from
webidl file and use consistently in native code.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 13:24:45 +00:00