Commit Graph

109 Commits

Author SHA1 Message Date
Matt Woodrow
50f362aacf Bug 1490702 - Verify values read from the input, even when we decide we don't need to draw the current command. r=jrmuizel
extra_end gets copied to offset, which can be used in the following command (and needs to be sanitized).

Differential Revision: https://phabricator.services.mozilla.com/D14345
2018-12-14 01:30:40 +00: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
Nicolas Silva
5c61c792dd Bug 1494403 - Separate the Blob related apis. r=jrmuizel
This commit contains the Gecko-side changes from WebRender PR#3277:
 - Dedicated DirtyRect type.
 - Separate the blob image APIs from regular image ones.

Differential Revision: https://phabricator.services.mozilla.com/D12463
2018-11-23 23:33:49 +00:00
Nicolas Silva
f76241684d Bug 1507140 - Gecko changes for WebRender PR #3291. r=kats
Move wr::DeviceUint* to wr::DeviceInt*.

Differential Revision: https://phabricator.services.mozilla.com/D12150
2018-11-16 17:13:26 +00:00
Matt Woodrow
9c61e9269d Bug 1506748 - Record profiler markers for scene building and blob rasterization. r=mstange
MozReview-Commit-ID: IA2ooFX5jtA

Differential Revision: https://phabricator.services.mozilla.com/D11723
2018-11-14 23:21:23 +00:00
Bogdan Tara
d6683d0b11 Backed out changeset 6afbbb6e200f (bug 1506748) for Android 5 build bustage CLOSED TREE 2018-11-14 01:24:42 +02:00
Matt Woodrow
5d75cba9b1 Bug 1506748 - Record profiler markers for scene building and blob rasterization. r=mstange
MozReview-Commit-ID: IA2ooFX5jtA

Differential Revision: https://phabricator.services.mozilla.com/D11723
2018-11-13 22:44:13 +00:00
Bogdan Tara
0b8f937651 Backed out changeset ed34f1838218 (bug 1506748) for Android build bustages CLOSED TREE 2018-11-14 00:11:37 +02:00
Matt Woodrow
5a386d5e35 Bug 1506748 - Record profiler markers for scene building and blob rasterization. r=mstange
MozReview-Commit-ID: IA2ooFX5jtA

Differential Revision: https://phabricator.services.mozilla.com/D11723
2018-11-13 21:34:26 +00:00
Kartikaya Gupta
b9bf91760a Bug 1466613 - Add a gfxCriticalNote to provide more details on replay failure. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D8257
2018-11-13 10:38:24 +00:00
Lee Salzman
3a72071ab7 Bug 1494291 - set number of variations when adding blob fonts. r=me 2018-09-26 16:33:01 -04:00
Matt Woodrow
e6f5bbf328 Bug 1490396. r=jrmuizel 2018-09-19 20:12:07 +12:00
Jeff Muizelaar
4ad80b8101 Bug 1490891. Support toggling paint flashing in blob images r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D5730
2018-09-13 20:34:38 +00:00
Cosmin Sabou
cae8817833 Backed out changeset 2f15d5f434d8 (bug 1490891) for reftests and crashtest failures. CLOSED TREE 2018-09-13 22:29:45 +03:00
Jeff Muizelaar
e765a7322e Bug 1490891. Support toggling paint flashing in blob images r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D5730
2018-09-13 17:08:43 +00:00
Jeff Muizelaar
3512052f04 Bug 1486198. Be more accepting of empty blob images r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D5614
2018-09-11 23:14:42 +00:00
Jeff Muizelaar
cae4f0a810 Bug 1489721. Use Reader to read the fonts. r=mattwoodrow
It gets rid of the unaligned accesses and is easier to reason about.
2018-09-10 15:06:33 -04:00
Jeff Muizelaar
677f9da892 Bug 1489127. Properly namespace FontVariation to avoid generated bindings. r=lsalzman
We will generate a FontVariation type from the the bindings. This has the same name
as the type from 'gfx'. They're structurally the same but having them both around
confuses the compiler.
2018-09-07 10:00:04 -04:00
Lee Salzman
1561be7556 Bug 1489170 - fix C linkage in Moz2DImageRender. r=me 2018-09-06 11:09:42 -04:00
Lee Salzman
4fa6a9b2d2 Bug 1480615 - reuse scaled fonts across blob image recordings. r=jrmuizel 2018-09-05 21:55:53 -04:00
Jeff Muizelaar
d900ad6029 Bug 1473943. Make blob bounds checks safe. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D4038
2018-08-23 19:53:21 +00:00
Jeff Muizelaar
b85f186c2c Bug 1480608. Skip over items that aren't in DrawTarget/DirtyRect. r=mstange
MozReview-Commit-ID: Kc9E1SUVUh3
2018-08-02 18:09:17 -04:00
Jeff Muizelaar
04967f4814 Bug 1480620. Replace WebRender's use of DrawTargetTiled.
This replaces WebRender's use of DrawTargetTiled which was just trying to
apply offset.

Differential Revision: https://phabricator.services.mozilla.com/D2906
2018-08-08 02:55:23 +00:00
Narcis Beleuzu
c5e6a15ca1 Backed out changeset 00ff83d23238 (bug 1480608) for build bustages on Moz2DImageRenderer.cpp. CLOSED TREE 2018-08-08 01:48:46 +03:00
Jeff Muizelaar
02c85da254 Bug 1480608. Skip over items that aren't in DrawTarget/DirtyRect. r=mstange
MozReview-Commit-ID: Kc9E1SUVUh3
2018-08-02 18:09:17 -04:00
Jonathan Kew
08d222b536 Bug 1457254 - Don't pass true for aIsDataFont when creating an UnscaledFontMac from AddNativeFontHandle, this is for installed fonts. r=lsalzman 2018-05-03 22:00:53 +01:00
Andrew Osmond
d992b5a5ab Bug 1425484 - Part 3. Integrate shared surfaces with the blob image recordings. r=jrmuizel 2018-04-26 19:00:16 -04:00
Lee Salzman
43ac33ab71 Bug 1448703 - follow-up - disambiguate unknown font from cleared all. r=me 2018-04-26 11:58:49 -04:00
Andreea Pavel
d74361f2d1 Backed out changeset 81601f1ab879 (bug 1448703) for build bustages at builds/worker/workspace/build/src/gfx/webrender_bindings/Moz2DImageRenderer.cpp:108 on a CLOSED TREE 2018-04-26 18:52:48 +03:00
Lee Salzman
8e2511ac82 Bug 1448703 - follow-up - disambiguate unknown font from cleared all. r=me 2018-04-26 11:38:09 -04:00
Lee Salzman
6dd2c91ece Bug 1448703 - clear blob image resources from clear_namespace hook. r=jrmuizel 2018-04-24 22:24:55 -04:00
Andreea Pavel
97aacf432f Backed out changeset 42781c597745 (bug 1448703) cpu process leakcchecks 2018-04-24 06:47:19 +03:00
Lee Salzman
4865791bd8 Bug 1448703 - clear blob image resources from clear_namespace hook. r=jrmuizel
MozReview-Commit-ID: 8DinL2bE64O
2018-04-23 21:46:55 -04:00
Jeff Muizelaar
0997c02976 Bug 1453090. Don't PopClip on a different DT. r=jrmuizel
Make sure we PushClip on the same DT as we PopClip
2018-04-11 10:27:12 -04:00
Lee Salzman
07ab83fd66 Bug 1448703 - log WR blob image font deletions for debugging. r=jrmuizel
MozReview-Commit-ID: FwpfhKjIpfm
2018-04-08 21:31:16 -04:00
Jeff Muizelaar
a523f03c91 Bug 1451761. Only paint the dirty rect. r=mstange 2018-04-05 15:00:47 -04:00
Jeff Muizelaar
548fe32a30 Bug 1388842. Add support for updating blob images. r=mstange
Currently, we use a simple merging algorithm, because the more
complicated ones didn't work.

This code won't actually be used until we do blob image invalidation
in a follow up.

MozReview-Commit-ID: Q2Em3QC195
2018-03-20 10:30:26 -04:00
Jeff Muizelaar
a6a7a1d2ef Bug 1391255. Crash earlier if recording playback fails. r=kats
This should help us narrow down what's going wrong a bit.

MozReview-Commit-ID: 2Ah0nMCwv55
2018-02-23 13:14:39 -05:00
Masatoshi Kimura
3d970b96a6 Bug 1442266 - Stop including unnecessary <iostream>. r=froydnj
MozReview-Commit-ID: B0JDqyBanFE
2018-03-01 23:07:56 +09:00
Lee Salzman
40eabf6e15 Bug 1431211 - clean up WR blob image renderer resources on API destruction. r=gankro
MozReview-Commit-ID: E7XuM7vpEXd
2018-01-18 06:28:09 -05:00
Lee Salzman
02c80756ff Bug 1416542 - lock access to the blob image font data table. r=nical
MozReview-Commit-ID: 30dwLt74L38
2017-11-20 11:34:36 -05:00
Lee Salzman
d165564ea5 Bug 1416607 - follow-up - typo fix in error message. r=me 2017-11-14 23:27:16 -05:00
Lee Salzman
59931958ef Bug 1416607 - error when Moz2DImageRenderer fails to create a NativeFontResource or UnscaledFont. r=jrmuizel
MozReview-Commit-ID: Jool723LUFX
2017-11-14 23:15:31 -05:00
Lee Salzman
55a29548f4 Bug 1412545 - avoid race condition when setting Cairo ft font user data. r=jrmuizel
MozReview-Commit-ID: 4aqfj2xlCc2
2017-11-07 14:10:31 -05:00
Lee Salzman
eb40171b44 Bug 1403198 - support WR native font handles in blob image. r=jrmuizel
MozReview-Commit-ID: 1n0z2xNZDxp
2017-11-06 20:21:25 -05:00
Jeff Muizelaar
55ea7b97bb Bug 1412565. Release the vec before deleting the item. r=lsalzman
I think I caught and fixed this earlier but somehow lost the change.
Oh well.
2017-10-30 22:38:38 -04:00
Jeff Muizelaar
b6b00b3042 Bug 1380014. Fix up the webrender bindings. r=kats
The earlier patches in this bug were written before we had
sophisticated binding generation so the types didn't match very well.
This fixes all of that.

MozReview-Commit-ID: DpcblpB8vxW
2017-10-28 18:32:24 -04:00
Jeff Muizelaar
3282e78b8e Bug 1380014. Keep the unscaled font alive. r=lsalzman
This is the actual change the eliminates the font cache
churn as well as eliminating the jank that comes when
loading font for the first time.
2017-10-27 23:23:35 -04:00
Jeff Muizelaar
4e1b99686a Bug 1380014. Share fonts with WebRender. r=lsalzman
This changes the serialization format a little bit.
We now have an index at the end of the blob. This
is currently used to store a list of the used font keys.
In the future we'll add rects and can use it for invalidation.
2017-10-27 18:21:27 -04:00
Jeff Muizelaar
a59093a80c Bug 1387550 - Support tiled drawing of blob images in Gecko.
Tiling will be used when we need an image that's larger than
the max texture size.
2017-08-26 17:31:25 -04:00