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
Jean-Yves Avenard
b5f4d81b93
Bug 1497294 - P2. Move type related constant methods to Types.h r=nical
...
The methods BytesPerPixel, SurfaceFormatForColorDepth, BitDepthForColorDepth, ColorDepthForBitDepth and RescalingFactorForColorDepth all directly depends on the types defined in Types.h, they also return constant values.
As such it makes more sense to have them defined at the same level where the types themselves are declared.
Depends on D8065
Differential Revision: https://phabricator.services.mozilla.com/D8073
--HG--
extra : moz-landing-system : lando
2018-10-09 12:56:25 +00:00
Jean-Yves Avenard
786dffc1c6
Bug 1497294 - P1. Remove duplicated method. r=nical
...
Additionally, add info for the following type:
R8G8B8
B8G8R8
R8G8
HSV
Lab
DEPTH
Differential Revision: https://phabricator.services.mozilla.com/D8065
--HG--
extra : moz-landing-system : lando
2018-10-09 13:07:58 +00:00
Jean-Yves Avenard
d14584ec03
Bug 1495025 - P4. Add COLOR_16 type r=nical
...
Depends on D7296
Differential Revision: https://phabricator.services.mozilla.com/D7316
2018-10-08 15:52:01 +02:00
Narcis Beleuzu
18849ef0ae
Backed out 6 changesets (bug 1495025) for webgl2 failures on test_2_conformance2__textures__misc__npot-video-sizing.html
...
Backed out changeset 24d67618f6b9 (bug 1495025)
Backed out changeset 68efa7588ba8 (bug 1495025)
Backed out changeset 9f59a50dcc6d (bug 1495025)
Backed out changeset 7fd1f6103294 (bug 1495025)
Backed out changeset f1afe7e2a9e3 (bug 1495025)
Backed out changeset c62823871aca (bug 1495025)
2018-10-07 02:03:46 +03:00
Jean-Yves Avenard
3903fac067
Bug 1495025 - P4. Add COLOR_16 type r=nical
...
Depends on D7296
Differential Revision: https://phabricator.services.mozilla.com/D7316
2018-10-06 21:31:22 +02:00
Brindusan Cristian
070df1d4c1
Backed out 6 changesets (bug 1495025) for mochitest-webgl2 failures in test_2_conformance2__textures__misc__npot-video-sizing.html. CLOSED TREE
...
Backed out changeset 263d4f722174 (bug 1495025)
Backed out changeset 528dbc463c22 (bug 1495025)
Backed out changeset 25895d283d47 (bug 1495025)
Backed out changeset c3b43ee1092e (bug 1495025)
Backed out changeset c548d816019d (bug 1495025)
Backed out changeset 208624601a18 (bug 1495025)
2018-10-04 15:16:07 +03:00
Jean-Yves Avenard
89935cc430
Bug 1495025 - P4. Add COLOR_16 type r=nical
...
Depends on D7296
Differential Revision: https://phabricator.services.mozilla.com/D7316
--HG--
extra : moz-landing-system : lando
2018-10-04 09:47:57 +00:00
Jean-Yves Avenard
b10364a15f
Bug 1493198 - P2. Use enum for describing color depth. r=mattwoodrow
...
Depends on D6662
Differential Revision: https://phabricator.services.mozilla.com/D6663
--HG--
extra : moz-landing-system : lando
2018-09-25 20:44:55 +00:00
Jean-Yves Avenard
cfc24b769e
Bug 1469711 - P1. Add 10/12 bits YUV support to D3D11 compositor. r=mattwoodrow
...
This change is for D3D11 with Advanced Layers enabled.
Differential Revision: https://phabricator.services.mozilla.com/D6492
--HG--
extra : moz-landing-system : lando
2018-09-25 11:18:34 +00:00
Andi-Bogdan Postelnicu
b2d4c86823
Bug 1453795 - GFX - Initialize member fields in classes/ structures. r=nical
...
--HG--
extra : rebase_source : 56f2cc017632bf27115490ae05254019108c6179
extra : amend_source : 98ea6c3c02a9f7650d2cf65deaf5085cf9a2efa4
2018-06-16 17:42:33 +03:00
Sebastian Hengst
0819f35e51
Backed out 4 changesets (bug 525063) on request from Andi. a=backout
...
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon
a3a77c0312
Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan
2018-04-10 21:11:02 +02:00
Andrew Osmond
cd7cf0fad3
Bug 1427639 - Part 2. Fix misleading image memory reporting on Android. r=tnikkel
...
The shared memory handle reporting has been generalized to be an
external handle reporting. This is used for both shared memory, and for
volatile memory (on Android.) This will allow us to have a better sense
of just how many handles are being used by images on Android.
Additionally we were not properly reporting forced heap allocated
memory, if we were putting animated frames on the heap. This is because
we used SourceSurfaceAlignedRawData without implementing
AddSizeOfExcludingThis.
2018-02-22 14:26:29 -05: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
Jean-Yves Avenard
3cd54027fe
Bug 1215089 - P7: Add support for 10/12 bits YUV surface with basic compositor. r=mattwoodrow
...
MozReview-Commit-ID: Ej4MbvHnSk9
--HG--
extra : rebase_source : c88e8641ce343917b4f433b515aefe653b23eaa6
2017-09-29 16:37:56 +02:00
Sebastian Hengst
2da2f1cc48
Backed out changeset 248c73a2c3b1 (bug 1215089)
2017-10-04 16:25:46 +02:00
Jean-Yves Avenard
9a3a9f486e
Bug 1215089 - P6: Add support for 10/12 bits YUV surface with basic compositor. r=mattwoodrow
...
MozReview-Commit-ID: Ej4MbvHnSk9
--HG--
extra : rebase_source : 69b342e18829816ca3cdd91a3f01252ae2a1ac94
2017-09-29 16:37:56 +02:00
Kartikaya Gupta
23aa782d4f
Bug 1377090 - Move NudgeToInteger(double) into Tools.h for reuse. r=bas
...
MozReview-Commit-ID: HJ5rmUfKOaG
--HG--
extra : rebase_source : c806c87bf8ad2e872737c01c91e30437b60d4e7b
2017-07-05 11:18:48 -04:00
Milan Sreckovic
5459132cb1
Bug 1296731: Add parameter to GetAlignedStride and check for overflow. r=bas
...
MozReview-Commit-ID: 5Ptm0bxwKdG
--HG--
extra : rebase_source : 535f2fa2447a1401b76acc0b82ce210b3c4d6dfc
2016-08-25 13:57:39 -04:00
Nicolas Silva
55982c743c
Bug 1167235 - Part 1 - Render canvas2D into TextureClient directly. r=Bas
2016-07-01 10:58:06 +02:00
Sebastian Hengst
51e7f34222
Backed out changeset 14dfa550c783 (bug 1167235)
2016-06-28 20:28:23 +02:00
Nicolas Silva
9367516d33
Bug 1167235 - Part 1 - Render canvas2D into TextureClient directly. r=Bas
2016-06-28 14:06:51 +02:00
Kaku Kuo
55ef3c417c
Bug 1141979 - part5 - Add R8G8B8, B8G8R8, HSV, Lab and Depth into gfx::SurfaceFormat; r=jrmuizel
...
MozReview-Commit-ID: 7ZG5ooejBq9
--HG--
extra : transplant_source : z%24%9C%C2%EB%0A%C7t%9D%DFu%CE%0DKR%D5%11%B2T%24
2016-03-18 18:25:38 +08:00
Chris Peterson
d95cf073f8
Bug 1266292 - Remove unnecessary compiler checks for MSVS 2010 in gfx/2d/. r=bas
2016-04-18 22:48:31 -07:00
Nicholas Nethercote
a34d272e2b
Bug 1209812 (part 3) - Rename SurfaceFormat::R5G6B5 as R5G6B5_UINT16. r=Bas.
...
--HG--
extra : rebase_source : 1efcfb2522e823e55b5c7b77531a9d2c42c49c8b
2015-10-22 23:01:31 -07:00
Birunthan Mohanathas
a8939590de
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Mike Hommey
c39e359c7d
Bug 1138293 - Use malloc/free/realloc/calloc instead of moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
...
The distinction between moz_malloc/moz_free and malloc/free is not
interesting. We are inconsistent in our use of one or the other, and
I wouldn't be surprised if we are mixing them anyways.
2015-03-31 12:32:49 +09:00
Markus Stange
9d0fbfa02c
Bug 1074842 - Let SourceSurfaceCGBitmapContext take ownership of the data when DrawTargetCG is destroyed. r=jrmuizel
2014-10-24 18:32:22 +02:00
Jim Chen
d43388fc2f
Bug 1067018 - Make sure calloc/malloc/free usages match in Tools.h; r=jwatt
2014-09-25 13:08:23 -04:00
Michael Wu
4079a1f9ad
Bug 1063733 - Optimize DataSourceSurface allocation, r=bas,seth
2014-09-10 17:54:16 -04:00
Ehsan Akhgari
591ece972e
Bug 1045091 - Fix some bad implicit constructors in gfx; r=Bas
2014-07-29 08:07:24 -04:00
Matt Woodrow
1df743478e
Bug 1028802 - Don't dereference null pointer in AlignedArray::Rellaoc. r=jwatt
2014-07-14 14:06:16 +12:00
Jonathan Watt
4282c1f4c9
Bug 1015785 - Fix Moz2D's AlignedArray::Realloc() to not over allocate. r=Bas
2014-06-13 22:03:52 +01:00
Jonathan Watt
f0ebd02780
Bug 1015780 - Make Moz2D's GetAlignedStride() faster. r=Bas
2014-05-28 14:30:56 +01:00
Markus Stange
fa2b5d8efd
Bug 1009020 - Use a fixed epsilon when nudging the transform to integers in ChooseScaleAndSetTransform. r=roc
2014-05-12 21:37:21 +02:00
Benoit Jacob
f447d87c57
Bug 958375 - 8/9 - Make remaining Moz2D enums typed - r=Bas
...
Specifically:
r=Bas for manual changes
f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:17 -05:00
Benoit Jacob
a1e7c32630
Bug 958375 - 4/9 - Make SurfaceFormat a typed enum - r=Bas
...
Specifically:
r=Bas for manual changes
f=Bas for automatic changes
See attachments on the bug for the specific breakdown.
2014-01-10 14:06:16 -05:00
Nicolas Silva
47fc67a4c6
Bug 892505 - Implement gfx::Factory::CreateDataSourceSurface. r=bas
2013-07-17 16:07:44 +02:00
Bas Schouten
0c97f0440c
Bug 829954 - Part 1: Make AlignedArray fallible. r=jrmuizel
2013-06-04 03:13:53 +02:00
Bas Schouten
69f705ff64
Bug 509052: Add new, faster blurring code. r=derf
2012-11-07 09:29:54 +01:00
Ed Morley
0d699ad09b
Backout e89f1fce980d (bug 509052) for an assortment of timeouts and crashes
2012-11-07 10:47:27 +00:00
Bas Schouten
cbb586e21a
Bug 509052: Add new, faster blurring code. r=derf
2012-11-07 09:29:54 +01:00
Markus Stange
fda164eb61
Bug 770524 - Fix FuzzyEqual to not return false for equal floats which are smaller than -2048.0f. r=roc
2012-10-25 12:54:15 +02:00
Robert O'Callahan
d70cc1420e
Bug 772726. Part 8: Add Rect::NudgeToIntegers and share improved nudging code among all nudging APIs. r=bas
2012-09-12 17:24:09 +12:00
Bas Schouten
f879fdc01a
Bug 756767 - Part 1: Simplify SourceSurfaceD2D and add DataSourceSurface support. r=jrmuizel
2012-05-21 17:27:30 +02:00
Ed Morley
465e967ce9
Backout a693c64dc64e (bug 715768), c520957cc03f & 713ed280a80d (bug 756767), 20cb25a8b8ba (bug 756454), f3b5ad2320cb (bug 756424) for crashes
2012-05-21 18:56:46 +01:00
Bas Schouten
f1b03b036e
Bug 756767 - Part 1: Simplify SourceSurfaceD2D and add DataSourceSurface support. r=jrmuizel
2012-05-21 17:27:30 +02:00
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Honza Bambas
72e094469b
Bug 753790 - define hypotf as _hypotf in gfx/2d/Tools.h when building with MSCV9 or older+include emmintrin.h in ImageScalingSSE2.cpp, r=bas
2012-05-15 16:44:25 +02:00