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

2430 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Kew 88ac266967 Bug 1427641 - patch 3 - Add variation data to the cairo_ft_*_font objects, so they can properly track instances of the same font resource used with different variation parameters. r=lsalzman 2017-12-07 13:22:49 +00:00
Andrew Osmond 89c5ff6db9 Bug 1429413 - Ensure Factory::CreateDataSourceSurface allocation failures are gracefully handled. r=bas 2018-01-11 08:26:42 -05:00
Matt Woodrow 1a07a450f8 Bug 1344971 - Part 3: Don't compute a region for nsDisplayBorder when we only want a rect. r=mstange 2017-03-07 14:07:33 +13:00
Milan Sreckovic 099cfc4242 Bug 1423570: Use BaseRect access methods instead of member variables in gfx/ r=bas.schouten
MozReview-Commit-ID: ZGySgc9oP3

--HG--
extra : rebase_source : 23aadc10e9885002290155684b2c495780d979ce
2017-12-19 15:48:39 -05:00
David Anderson a830f56d14 Fix race condition when mapping a D2D surface while its DrawTarget mutates. (bug 1418348, r=bas)
--HG--
extra : rebase_source : cf16e7f1cea664327b00f01bd42380de672cd9b4
2017-12-12 14:52:54 -06:00
Sylvestre Ledru 4591d82b23 Bug 1394734 - Replace CONFIG['CLANG*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: HbF5oT5HW6f

--HG--
extra : rebase_source : eca479b6ae4bff7f600d1cdb39e11ac2057e4e79
2017-12-07 22:09:38 +01:00
Sylvestre Ledru 9bfe27d903 Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 7duJk2gSd4m

--HG--
extra : rebase_source : 7312fe276e561e8c034a5f6749774ae812727f9c
2017-12-07 22:09:15 +01:00
Cosmin Sabou c191e25cf5 Merge mozilla-inbound to mozilla-central r=merge a=merge 2017-12-08 11:56:44 +02:00
shindli 76ee711dab Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-12-08 00:24:48 +02:00
Bas Schouten 6050c91090 Bug 1422475: Create FilterNodes on the paint thread when using Direct2D. r=dvander
MozReview-Commit-ID: tt9pRshj6i
2017-12-07 03:21:49 +01:00
Milan Sreckovic e9ad31bdf1 Bug 1423919: Additional methods for BaseRect for convinient modifications/testing of the member variable values. Force inline some commonly used methods. r=milan.schouten
MozReview-Commit-ID: 8zALRpsKLXx

--HG--
extra : rebase_source : ac6e88124c924c65cb79b3a97da0a90fedaa1689
2017-12-07 14:14:04 -05:00
Tiberius Oros be4fc858c5 Merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-12-06 12:35:04 +02:00
Gurzau Raul f5f1c3f294 Merge inbound to mozilla-central r=merge a=merge 2017-12-06 11:53:55 +02:00
Lee Salzman 6dc1932292 Bug 1394570 - request synthetic bold for Mac fonts with WR. r=gankro
MozReview-Commit-ID: JAmWZM9SOe0
2017-12-05 22:18:53 -05:00
peter chang f735c3d7f1 Bug 1418791 - Ensure mSnapshot access is protected by mutex, r=dvander
MozReview-Commit-ID: 3NPzv6VftxZ

--HG--
extra : rebase_source : 2af00974d4de8d0cc15a326520111c32c4437b54
2017-12-05 15:35:16 +08:00
Bas Schouten e83999bf32 Bug 1416862: Reverse DrawTargetSkia snapshot ownership model r=dvander
MozReview-Commit-ID: 3hpeYteEPlA
2017-12-06 04:59:19 +01:00
Bas Schouten 8d886455b3 Bug 1423281: Store the userdata for freeing our memory on the longer living snapshot. r=dvander
MozReview-Commit-ID: 91tVpJC7gAe
2017-12-06 04:59:18 +01:00
Ciure Andrei 48e5c9892f Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-12-02 12:19:55 +02:00
Andrew Osmond a3a7832363 Bug 1419912 - Part 1. Add/use surface invalidation counter to track changes in SourceSurfaceSharedData. r=me 2017-12-01 06:59:21 -05:00
Jeff Muizelaar dce6b5fece Bug 1422321. Eliminate double promotion in Round(). r=kats
This uses std::floor(T) instead of floor(double) so that we end up calling
floorf(float) for floats instead floor(double). It also changes the literals to
be floats. 0.5f is exactly representable in float and so will transparently
promote to double as needed.

--HG--
extra : rebase_source : ea193026b3c7d1f97f5abbc3f9220eca5ac5523c
2017-11-30 13:23:56 -05:00
Lee Salzman 03a6e9d255 Bug 1421275 - Pass FontInstanceFlags to WebRender. r=jrmuizel
This patch was originally developed on bug 1418564.

MozReview-Commit-ID: 53oydIqjhvF

--HG--
extra : rebase_source : 8980cc947b3b8c46a75d032e7e557f39bae08b97
2017-11-28 10:25:27 -05:00
Timothy Nikkel 9468c9b03a Bug 1421191. In ConvolutionFilter::ComputeResizeFilter calculate the src pixel every loop iteration. r=lsalzman
If we try to be clever and increment by invScale then floating point inaccuracies can accumulate leaving srcPixel far off from where it should be.
2017-11-29 02:22:53 -06:00
Bas Schouten 62909856db Bug 1416862: Ensure mSnapshot access is always protected by mSnapshotlock. r=mattwoodrow
MozReview-Commit-ID: 8qkFde46WPQ
2017-11-27 03:12:09 +01:00
Jonathan Kew af9d8ad285 Bug 1403302 - patch 2 - Fix mixed-up glyph bounding box coordinates in ScaledFontDWrite::GetGlyphDesignMetrics. r=bas 2017-11-23 19:39:39 +00:00
Jonathan Kew 2643bb52e3 Bug 1403302 - patch 1 - Add missing return statement to ScaledFontBase::GetGlyphDesignMetrics, so that its cairo-based code path actually works. r=bas 2017-11-23 19:39:11 +00:00
Ryan Hunt 8ec4f38aa3 Implement record and replay painting for multi tiled layers (bug 1422392, r=nical)
This commit modifies MultiTiledContentClient to record drawing commands and
replay them to the tiled draw target on the paint thread when OMTP is enabled.

MozReview-Commit-ID: 22zL3c4NZvu

--HG--
extra : rebase_source : f8256b678da683da76edc02769dd4d0ebe234e09
2017-11-21 19:12:14 -05:00
Ryan Hunt daa2954800 SetPermitSubpixelAA for capture draw targets based on mFormat (bug 1422392, r=nical)
Other draw targets do this in their initialization code, so capture should also.
MozReview-Commit-ID: CBsui9IJwXI

--HG--
extra : rebase_source : c3a818618cee0bab7ac3c99a42daf698c063e0c0
2017-11-29 16:58:43 -05:00
David Anderson 4d9d8d5d59 Bug 1416864 - Synchronize how snapshots detach in DrawTargetD2D1. r=bas 2017-11-21 10:52:38 -05:00
Bas Schouten 15d9bc6da0 Bug 1417549: Execute IntoLuminanceSource during replay rather than synchronously. r=dvander
MozReview-Commit-ID: DWGQoTpUnyT
2017-11-21 16:41:08 +01:00
David Anderson 9575a22267 Remove trivial calls to DataSourceSurface::Stride. (bug 1405390 part 3, r=bas)
--HG--
extra : rebase_source : 7700599ef497a2abadc7970af5ea26b48061966e
2017-11-09 00:43:30 -08:00
David Anderson 32e1584385 Remove easily-removed cases of DataSourceSurface::GetData(). (bug 1405390 part 1, r=bas)
--HG--
extra : rebase_source : cc0d8001240efb530daa9845bc126e5026682340
2017-11-09 00:43:29 -08:00
Bas Schouten 911420ff1c Bug 1413857: Make FilterNode refcounting threadsafe. r=rhunt
MozReview-Commit-ID: Kgnq97NJeTv
2017-11-08 20:49:40 +01:00
Bas Schouten fc5e6c2cf2 Bug 1414448: Protect the SourceSurfaceSkia destructor from racing with DrawTargetWillChange. r=dvander
MozReview-Commit-ID: 6UYDLUEoJZy
2017-11-08 20:49:40 +01:00
Lee Salzman 62496c6987 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 826eee8b2a Bug 1403198 - support WR font descriptors on Mac. r=jrmuizel
MozReview-Commit-ID: BqN51yY88oJ
2017-11-06 20:21:06 -05:00
Lee Salzman 3e6f5e1180 Bug 1403198 - support WR font descriptors with DWrite. r=jrmuizel
MozReview-Commit-ID: 8u3kYoKYOuC
2017-11-06 20:20:43 -05:00
Lee Salzman b70e5bcc71 Bug 1403198 - support WR font descriptors with Fontconfig. r=jrmuizel
MozReview-Commit-ID: L52PYBwEqNw
2017-11-06 20:20:11 -05:00
Lee Salzman f11218633f Bug 1403198 - send font descriptors to WR instead of raw fonts where possible. r=jrmuizel
MozReview-Commit-ID: DYcaO3fE1fc
2017-11-06 20:19:46 -05:00
Markus Stange 1f62b09715 Bug 1414157 - Supply the font smoothing background color in the webrender FontInstanceOptions. r=lsalzman
MozReview-Commit-ID: CaI4FH7GoI8

--HG--
extra : rebase_source : 08a84a0b860e2afa8c0316c459984dd49d3e9561
2017-11-02 22:21:54 -04:00
Markus Stange 78303f13ce Bug 1414154 - Remove GlyphRenderingOptions. r=lsalzman
MozReview-Commit-ID: JtwnTj1hhPV

--HG--
extra : rebase_source : 2a3e896eec8b6839097baf6e2cccc10eb162827b
2017-11-02 21:42:56 -04:00
Markus Stange 4be8be99f3 Bug 1414154 - Store the font smoothing background color on the ScaledFontMac. r=lsalzman
MozReview-Commit-ID: 9U6CXn1JlYT

--HG--
extra : rebase_source : eea215e1ef3345e06ea92fc150f83a4467eba31d
2017-11-02 21:02:30 -04:00
Markus Stange 9d74ba14bd Bug 1413178 - Initialize the new field that was added in webrender commit 479d43ab4f245c42b33e12f9b6f050045ec84ab3. r=lsalzman
MozReview-Commit-ID: 3oFtSjbnBsI

--HG--
extra : rebase_source : b3d792787a9226265d02eaff027e0919aca1d17d
2017-11-03 00:37:20 -04:00
NARCIS BELEUZU 0a208387ad Merge mozilla-central to autoland. r=merge a=merge on CLOSED TREE 2017-11-03 12:20:45 +02:00
Ethan Lin 4f02235ca5 Bug 1413680 - DrawTargetRecording should return the real size instead of the dummy drawtarget's size. r=jrmuizel
MozReview-Commit-ID: E63f8ZIGYm2

--HG--
extra : rebase_source : d966d435308ca66a4d0c64f5e90db218ed1fe31f
2017-11-02 13:50:38 +08:00
Botond Ballo a155122b36 Bug 1382534 - Add a UnionMaybeRects() method to gfx/2d/Rect.h. r=mstange
MozReview-Commit-ID: 3G4Hlj54Thy

--HG--
extra : rebase_source : 6c2b22f28ee648bc93f4cb3471727f992f8cb34e
2017-08-23 17:45:15 -04:00
Jeff Muizelaar df5772565c Bug 1412848. Use the proper types and functions. r=lsalzman
The previous code was a bad copypasta
2017-11-02 17:47:33 -04:00
Lee Salzman 1eba4acd8d Bug 1412942 - pad Mac font data when checksumming. r=jfkthame
MozReview-Commit-ID: 3941eAWNXoR
2017-10-31 23:13:25 -04:00
David Anderson 997c7019bc Don't cache DrawTargetCaptures in nsCanvasFrame. (bug 1395478 part 10, r=mattwoodrow)
--HG--
extra : rebase_source : fc0746099e910f1e46842f292f60b2f00ee25f38
2017-10-31 12:02:32 -07:00
David Anderson 3bc0066b70 When similar draw targets are requested from capturing DTs, always return a new capturing DT instead of an actual surface. (bug 1395478 part 9, r=mchang)
--HG--
extra : rebase_source : 9957e68435e69d65e3f4fa82bc870e37b21392dd
2017-10-31 12:02:32 -07:00
David Anderson 9956a762ef Don't call MarkChanged for commands that don't affect pixels. (bug 1395478 part 8, r=rhunt)
--HG--
extra : rebase_source : fe6c36991e36f6ba23682604fa84bc87634fccd2
2017-10-31 12:02:31 -07:00
David Anderson 74657c11e8 Implement DrawTargetCapture::DrawSurfaceWithShadow. (bug 1395478 part 7, r=mchang)
--HG--
extra : rebase_source : d7884ca8caa4e23369cdf098120dc6b8998598a4
2017-10-31 12:02:31 -07:00
David Anderson cf84c3f01d Add SourceSurfaceCapture to avoid main-thread rasterization with temporary DrawTargetCaptures. (bug 1395478 part 6, r=rhunt)
--HG--
extra : rebase_source : 3a3841e5a54f9780720a543ee792f501b5150b02
2017-10-31 12:02:31 -07:00
David Anderson 4a00595a2a Allow cloning draw commands. (bug 1395478 part 5, r=rhunt)
--HG--
extra : rebase_source : 5a5e1d6e0f572a82403842c425fba347b4acf549
2017-10-31 12:02:31 -07:00
David Anderson f97ea2781d Create a CaptureCommandList abstraction for DrawTargetCapture. (bug 1395478 part 4, r=mchang)
--HG--
extra : rebase_source : 527e364c50365a5b793dfe743cb502dffb3c6eef
2017-10-31 12:02:30 -07:00
David Anderson 8ef5cedd49 Add a Blur DrawCommand. (bug 1395478 part 2, r=rhunt)
--HG--
extra : rebase_source : 02307fbf209058f661e1379b51b2dcaa40da94b6
2017-10-31 12:02:30 -07:00
David Anderson bee44bc0cb Add a factory method for creating data-backed DrawTargetCaptures. (bug 1395478 part 1, r=rhunt)
--HG--
extra : rebase_source : 5bcce03e60ba64b8b54e24db2e25a6e42a4fe8de
2017-10-31 12:02:29 -07:00
Margareta Eliza Balazs a63fdbeabb Merge inbound to mozilla-central r=merge a=merge 2017-10-31 12:46:19 +02:00
Lee Salzman 341a10bb1b Bug 1412545 - AddRef user data before passing to cairo_font_face_set_user_data. r=jrmuizel
MozReview-Commit-ID: FcPTjCWh9wu
2017-10-30 22:31:11 -04: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
Daniel Holbert de4b2b1c8b Bug 1412427 part 7: Manually fix up a few non-standard quirks in mode lines & MPL text, in gfx source files. r=jrmuizel
MozReview-Commit-ID: JgK3UhG20kn

--HG--
extra : rebase_source : 2677c73948463f84eeafc4895697dbdcd5fccae4
2017-10-27 15:55:40 -07:00
Daniel Holbert fc539779ba Bug 1412427 part 5: Deindent over-indented MPL boilerplate comments down to 1 space, for consistency & alignment. (whitespace-only) r=jrmuizel
This patch was automatically generated. I found the files to be fixed in this
patch with the following command:
grep -r "  \* This Source Code" gfx

...and then I modified each of these files with the following script
(where $1 is the filename to be modified):
###
line1=" \* This Source Code Form is subject to the terms of the Mozilla Public"
line2=" \* License, v\. 2\.0\. If a copy of the MPL was not distributed with this"
line3=" \* file, You can obtain one at http://mozilla\.org/MPL/2\.0/\. \*/"

# Strip off 1 space at beginning:
sed -i s%"^ $line1"%"$line1"% $1
sed -i s%"^ $line2"%"$line2"% $1
sed -i s%"^ $line3"%"$line3"% $1
###

MozReview-Commit-ID: EwCjyajgY4W

--HG--
extra : rebase_source : c61ca17ba556290d1f27af0a0c84e2ccc5371a36
2017-10-27 15:55:37 -07:00
Daniel Holbert ecf5ee687e Bug 1412427 part 4: Indent under-indented MPL boilerplate comments by 1 space, for consistency & alignment. (whitespace-only) r=jrmuizel
This patch was automatically generated. I found the files to be fixed in this
patch with the following command:
grep -r "^\* This Source Code" gfx

...and then I modified each of these files with the following script
(where $1 is the filename to be modified):
###
line1="\* This Source Code Form is subject to the terms of the Mozilla Public"
line2="\* License, v\. 2\.0\. If a copy of the MPL was not distributed with this"
line3="\* file, You can obtain one at http://mozilla\.org/MPL/2\.0/\. \*/"

# Insert 1 space at beginning:
sed -i s%"^$line1"%" $line1"% $1
sed -i s%"^$line2"%" $line2"% $1
sed -i s%"^$line3"%" $line3"% $1
###

MozReview-Commit-ID: HXBMrfnhlVr

--HG--
extra : rebase_source : de4c78563711f8366e2978c5199a5041875fbe38
2017-10-27 15:55:37 -07:00
Lee Salzman 3b3fcb68c1 Bug 1408481 - send gfxMacFont font smoothing setting to WebRender. r=mstange
MozReview-Commit-ID: 9BwLVrfjnsP
2017-10-29 20:21:10 -04:00
Kearwood "Kip" Gilbert ccc6462307 Bug 1410493 - Update Oculus SDK from 1.5 to 1.9, update IPD during VR presentation r=daoshengmu
- Oculus SDK was updated from 1.5 to 1.9
- As the Oculus API now returns quaternion orientations for each
  eye-to-head transform, I needed to send more information to the
  content process.
- Rather than adding the quaternion, we now calculate the view matrices
  on the VR thread in the GPU process rather than calculating it in the
  content thread from parameters.
- OpenVR's full view matrix is now used, for compatibility with more devices.
- IPD adjustments are now updated every frame for both Oculus and OpenVR.


MozReview-Commit-ID: LOtfs4QIqc8

--HG--
extra : rebase_source : 0a69824012ede4bea0e0e709a2d027d0c35730bb
2017-10-23 14:23:03 -07:00
Jeff Muizelaar ed62b1d4a1 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 f1e1608327 Bug 1380014. Add the ability to record UnscaledFonts by index. r=lsalzman 2017-10-27 18:21:26 -04:00
Sylvestre Ledru d60d69e2cb Bug 1411001 - Remove the +x permissions on cpp & h files r=froydnj
MozReview-Commit-ID: DjDkL20wRg0

--HG--
extra : rebase_source : a343d83d1f4e97e4ba56d0f57fec93079df0b5ea
2017-10-23 20:59:55 +02:00
Lee Salzman 600dccf87f Bug 1404742 - track ScaledFont and UnscaledFont lifetimes with ThreadSafeWeakPointer. r=bas
MozReview-Commit-ID: GRSEYh1fG4U
2017-10-18 14:22:09 -04:00
Alex Gaynor b00c32c807 Bug 1319423 - Part 2 - Switch away from std::ifstream to PRFileDesc in PrintTranslator; r=jrmuizel
MozReview-Commit-ID: 6ucwbGkqOQ0

--HG--
extra : rebase_source : ab0540e2b7d61108c8c550d8bf8b8a594364f90a
2017-10-03 13:23:57 -04:00
Alex Gaynor 41d8032290 Bug 1319423 - Part 1 - Introduce DrawEventRecorderPRFileDesc to allow switching away from std::ofstream in printing; r=jrmuizel
MozReview-Commit-ID: 1gn8J2fhejS

--HG--
extra : rebase_source : 02b6224c2788964c375092e58174efbacfdbdba5
2017-10-03 12:29:15 -04:00
Kevin Chen 1ad9fc5044 Bug 1394405 - Relax the assertion in CalculateDistanceToEllipticArc to deal with the floating point precision problem; r=nical
MozReview-Commit-ID: c0kgjG2zUg

--HG--
extra : rebase_source : 431a9afe9de492e05c7b9646282bfafa60389581
2017-10-11 11:10:41 +08:00
Lee Salzman 892650be6c Bug 1405790 - supply FontInstancePlatformOptions to WebRender. r=jrmuizel
Patch originally developed in bug 1406138, but landed in bug 1405790 since it
needs to land together with the upstream WR changes in PR 1816.

MozReview-Commit-ID: IHVoKhVncd5

--HG--
extra : rebase_source : 912e3d903d71c1b664817457e67aa6d81be3f4dd
2017-10-05 15:26:01 -04:00
Sebastian Hengst b834f0d177 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 7Ez95T2ivfR
2017-10-07 10:37:39 +02:00
Bas Schouten e35fb728aa Bug 1405589: Have DrawTargetCapture properly forward SupportsRegionClipping. r=dvander
MozReview-Commit-ID: 9Fu3omRFtLk
2017-10-06 16:27:41 +00:00
Tom Ritter 349f097743 Bug 1403698 Address delete-non-virtual-dtor warnings r=froydnj
MozReview-Commit-ID: 44XiqegImiT

--HG--
extra : rebase_source : 52ddc3caa3243aaef9e2397b4a28e318da101a8c
2017-10-06 11:27:35 -05: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
Sebastian Hengst 9a0edde0b2 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IRW0W7LuIM7
2017-10-03 11:43:52 +02:00
Bas Schouten 9218253d7e Bug 1404656: Protect access to mDrawTarget and mImage after a SourceSurfaceSkia has been initialized. r=dvander
MozReview-Commit-ID: 6HGM22V8FbJ
2017-10-02 20:23:09 -07:00
Tom Ritter 74126f852f Bug 1394005 Fix overloaded-virtual warnings in FilterNodeD2D1 r=froydnj
This warning is telling us that we have declared a function in a derived class
with the same name as a virtual function in a base class. The base class functions
can never be called.

In FilterNodeD2D1 we intend to do this (the base class methods are all MOZ_CRASH).
We silence the warning by importing those functions as private so they cannot be
called.

MozReview-Commit-ID: 6ENLKFMMBRy

--HG--
extra : rebase_source : 4230c85f4dca942fad6da347cef341aed5535734
2017-09-29 11:12:38 -05:00
Bas Schouten 4600284673 Bug 1395394: Make refcounting of GradientStops threadsafe for the sake of OMTP. r=mattwoodrow
MozReview-Commit-ID: 3MZ3JTio3EC
2017-10-02 00:53:00 +02:00
Bas Schouten 3ad5ed6346 Bug 1404627: Atomically refcount Path objects for use with OMTP. r=mattwoodrow
MozReview-Commit-ID: 2TeLChDL4OY
2017-10-02 00:53:00 +02:00
Alexis Beingessner 9022c22b82 Bug 1400382 - Replace explicit TextDrawTarget passing with cast-based system. r=mstange
MozReview-Commit-ID: EQtFvLQCT2U

--HG--
extra : rebase_source : 1fff1b545c18d42403cf9c30172528e553a6af48
2017-09-21 15:15:58 -04:00
Wes Kocher 6e84ca9226 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 7rJ9fpLBazL
2017-09-22 15:06:12 -07:00
Wes Kocher 1443004d66 Merge inbound to central, a=merge
MozReview-Commit-ID: 2MDU9VGB9Pg
2017-09-22 14:56:05 -07:00
Bas Schouten 576b1d0c7d Bug 1392453: Allow a small amount of list-in-list drawing commands. r=mchang
MozReview-Commit-ID: H4w5gPVOhwg
2017-09-22 19:37:02 +02:00
Ryan Hunt 21b23600b7 Bug 1401638 - Fixup implicit constructor bustage. r=me on a CLOSED TREE 2017-09-22 11:25:17 -04:00
Ryan Hunt 9269f6c8a4 Bug 1401638 - Set and reset mPermitSubpixelAA in push and pop layer for DrawTargetCapture. r=bas
MozReview-Commit-ID: DxeNaiAYJvb

--HG--
extra : rebase_source : ea799e4f4d48b52702423d726304b1a5a96fbb65
2017-09-20 12:23:01 -05:00
Nicolas Silva f8fb5b4033 Bug 1402304 - Fix bindings to go with WR cset 4dbc5d8e. r=kats
MozReview-Commit-ID: CxlZhhTAxwk

--HG--
extra : rebase_source : 43138a7dc6fd8687bfe294ba41bd9c5da18a24d5
2017-09-22 10:00:44 -04:00
Lee Salzman 903d4af62b Bug 1397458 - part 3 - add ScaledFont::GetWRFontInstanceOptions for querying WebRender font instance options r=kats
MozReview-Commit-ID: BRDfmwkbOY2

--HG--
extra : rebase_source : 9a11342a28354cac43490df4d1b3ffb0e327dc67
2017-09-19 23:11:02 -04:00
Lee Salzman 5161c570ac Bug 1397458 - part 2 - refactor ScaledFontMac font variation collection for easier reuse r=kats
MozReview-Commit-ID: C2L8tZe4jEa

--HG--
extra : rebase_source : 3b86bd91828cef581a25af65a0d056c5a352f2a2
2017-09-19 23:08:16 -04:00
Lee Salzman 4467a6148b Bug 1397458 - part 1 - expose font variations directly in ScaledFont/DrawTargetRecording r=kats
MozReview-Commit-ID: 28egBaMImO8

--HG--
extra : rebase_source : cc2e870507e7ac7ccbd666d4ed6ca61c8cd373fa
2017-09-17 21:21:15 -04:00
Bas Schouten 973de6713e Bug 1400573: Back out initial fix for bug 1392453. r=mchang
MozReview-Commit-ID: 3c3vJbL4kXS
2017-09-20 14:57:25 +02:00
Kartikaya Gupta 40d581989b Bug 1400378 - Add layers logging support for Point3D. r=mattwoodrow
MozReview-Commit-ID: 9W3gDi7wyQF

--HG--
extra : rebase_source : 76b225bb06381bea8211aa905c9006cc3745fdc8
2017-09-15 16:08:12 -04:00
Sebastian Hengst 220e7cecae merge mozilla-central to autoland. r=merge a=merge 2017-09-15 00:01:52 +02:00
Markus Stange c0139d2740 Bug 1387594 - Respect the font smoothing background color in pushed layers again. This backs out bug 1386643. r=jrmuizel
MozReview-Commit-ID: KNsd7tKuRk1
2017-09-14 23:09:48 +02:00
Bas Schouten d0bbe46a35 Bug 1399178: Record SetPermitSubpixelAA. r=dvander
MozReview-Commit-ID: HfMK5SOSFtr
2017-09-13 19:15:16 +00:00
Bas Schouten 2d48dc6667 Bug 1392453: Allow limiting the blend surface area and the portion of the layer being resolved. r=mchang
This introduces the infrastructure to specify the bounds of drawing commands being executed. These bounds can then be used to limit operations done for blending in order to reduce required fillrate. Currently we only specify the bounds for DrawSurface but it would be easy to extend this for other drawing commands if so desired.

MozReview-Commit-ID: BUFJzphfdKc

--HG--
extra : rebase_source : cbd17803d8aeb1a74b6c7c98fd5c00e06870805b
2017-09-12 19:10:55 +00:00
Lee Salzman dff88e38e4 Bug 1393956 - ensure NativeFontResourceDWrite is thread-safe. r=bas
MozReview-Commit-ID: 4uME7zNmXrg
2017-09-05 15:30:13 -04:00
Jeff Gilbert 62f11c8d02 Bug 1322746 - Support blit from IOSurfaces. - r=mattwoodrow
MozReview-Commit-ID: K4aHyOjQXfP
2017-09-02 21:52:19 -07:00
Milan Sreckovic 15f0b9e537 Bug 1388892: TableArea doesn't really need to own the rectangle, except for the union call. Especially since we're exposing the addresses of the members. r=xidorn
MozReview-Commit-ID: BAjQ20ngkIM

--HG--
extra : rebase_source : 8ed144bf053dc5c7c26201ec023aac3a00a2c7e5
2017-08-31 16:00:44 -04:00
Lee Salzman 251cd46deb Bug 1393055 - map ScaledFonts to WebRender FontInstanceKeys. r=jrmuizel
MozReview-Commit-ID: AadEI5CnTZ1
2017-08-30 13:45:11 -04:00
Nathan Froyd 963e700142 Bug 1393019 - remove mozilla::gfx::Swap; r=jrmuizel
We have mozilla::Swap, which is more likely to be specialized, and it's
more efficient by virtue of using moves.
2017-08-23 10:40:05 -04:00
Jeff Muizelaar 480f5db364 Bug 1383055. RecordedEvent: Add DoWithEvent. r=lsalzman
Add DoWithEvent which switches over an event type, reads the event into
a stack variable and calls a callable with that event as a parameter.

This avoids doing a heap allocation for every event that we play back.
2017-08-18 13:03:09 -04:00
Jeff Muizelaar 04eb151254 Bug 1383055. Factor out a FOR_EACH_EVENT macro. r=lsalzman
This will let us avoid duplicating the event list for the upcoming
DoWithEvent function.
2017-08-18 13:03:09 -04:00
Markus Stange c1f56dfcf0 Bug 1371979 - Reduce memory allocation / deallocation in DrawTargetTiled::PushClip(Rect) / PopClip. r=bas
MozReview-Commit-ID: 8ejQOevZR8t

--HG--
extra : rebase_source : a316729071a8747bbf9a669b13fc9c9f62f9359d
2017-06-11 01:05:16 -04:00
Carsten "Tomcat" Book 6b36e00b7c merge mozilla-inbound to mozilla-central a=merge 2017-08-15 11:42:11 +02:00
Ryan Hunt 1b09c0adcc Bug 1390295 - Initialize DrawTargetCapture::mFormat before using it. r=mchang
MozReview-Commit-ID: 7x1MLj088uM

--HG--
extra : amend_source : cd29e74623cb69997d6cb1525b7fe03ebadd90e3
2017-08-14 15:52:11 -05:00
Jan Beich d525be7d2f Bug 1389733 - Add missing Skia compile guards. r=lsalzman
MozReview-Commit-ID: BXYxGjj0j73

--HG--
extra : rebase_source : dc54b6f513468879a2aeb8f298f1b920572c6402
2017-08-12 04:31:21 +00:00
Milan Sreckovic e3cd0a3157 Bug 1387514: Upgrade BaseRect (derived classes) width and height direct member variable use to instead use Width()/SetWidth() and Height()/SetHeight() in .cpp files in gfx/*. r=milan
MozReview-Commit-ID: 1jESowJKdyp

--HG--
extra : rebase_source : 3839cdea46729a9af05c777215cffcb9f42a2018
2017-08-14 08:29:28 -04:00
Milan Sreckovic f330369b4e Bug 1387514: Upgrade BaseRect (derived classes) width and height direct member variable use to instead use Width()/SetWidth() and Height()/SetHeight() in .h files in gfx/*. r=botond
MozReview-Commit-ID: 4knfAC1HTI1

--HG--
extra : rebase_source : 6ac939b478d22d429e8643e6ba96e372d8220bfb
2017-08-14 08:28:11 -04:00
Wes Kocher 7a772df5bf Merge m-c to inbound, a=merge
MozReview-Commit-ID: BYZASFIrXxp
2017-08-14 17:58:17 -07:00
Jeff Muizelaar 6dfe18f553 Bug 1390150. Fix the initial transform set by DrawTargetTiled. r=Bas
DrawTargetTiled sets the wrong transform during Init. This patch changes
it to match what happens in the SetTransform method.
2017-08-14 13:45:54 -04:00
Sylvestre Ledru 8382a92592 Bug 1387002 - Replace .size() by .empty() when applicable in gfx/ r=nical
MozReview-Commit-ID: BIrMZHj6BBZ

--HG--
extra : rebase_source : df064bc9628d3a78c153f2455fa4861a95abca8e
2017-08-03 12:02:35 +02:00
Markus Stange b7d6066c45 Bug 1386643 - Don't respect font smoothing background colors in pushed layers. r=jrmuizel
This is an imperfect workaround. Ideally we'd want layout to determine the
correct color here: If the pushed layer will end up on something mostly opaque
in the outer layer, the font smoothing background color should be transparent
(or even a color that approximates that opaque content), and if the pushed
layer will end up on transparency in the outer layer, the appropriate font
smoothing background color for the outer layer should be used when drawing text
in the pushed layer.

This workaround causes us to lose subpixel AA in background tabs that have the
overflow mask applied to them. For those, using the font smoothing background
color in the pushed layer was the right choice.

MozReview-Commit-ID: FPufh04EVp3

--HG--
extra : rebase_source : 7a6cb73255bdb7f1b8aba7df60ebe61171275da4
2017-08-02 17:26:02 -04:00
Mason Chang fa082bb902 Bug 1386080 - Make DrawTarget thread safe refcountable. r=bas 2017-08-08 15:11:11 -07:00
Lee Salzman 62bf3ccf48 Bug 1385029 - make ScaledFont::SetCairoScaledFont virtual so it can be accessed from outside Moz2D. r=jrmuizel
MozReview-Commit-ID: 1RrXqJeJJ2Y
2017-08-07 16:20:32 -04:00
David Anderson 783e6ecfd6 Add diagnostics for the crash in bug 1387467. r=milan 2017-08-05 01:32:25 -07:00
Milan Sreckovic 56c2b6e6f7 Bug 1386277: Add set methods for width and height that change nothing else, as well as the Swap method r=bas
MozReview-Commit-ID: 6TZ977mvH5C

--HG--
extra : rebase_source : 3f124c682ac914f3fde27c396c2fb21b324ed521
2017-08-03 15:29:35 -04:00
Ehsan Akhgari fd868a0072 Bug 1387158 - Silence the -Wcomma compiler warnings in Types.h macros iterating over Corners and Sides; r=dholbert 2017-08-03 23:04:47 -04:00
Sebastian Hengst a445a59613 Backed out changeset 009af86a3026 (bug 1239292) for build bustage at StyleSheetInlines.h(77). r=backout on a CLOSED TREE 2017-08-03 11:29:24 +02:00
Nicolas Silva 6e6cc6226b Bug 1239292 - Remove the gfx job scheduler. r=jrmuizel
We gave up on the iea of parallel tile rendering in favor of different approaches, so the job scheduler isn't used at all. The several seconds spend testing the job scheduler in each push is a waste of infra. In addition, rust is a better avenue to tackle this type of system.
2017-08-03 10:54:56 +02:00
cku d5f880f381 Bug 1385159 - Use array on the stack to prevent buffer allocation in DrawTargetSkia::DrawGlyphs. r=mattwoodrow
Originally, I want to use AutoArray to replace std::vector in
DrawTargetSkia::DrawGlyphs. But then I realize that we can not use nsTArray.h in
moz2D. So I decide to use a c array instead.

MozReview-Commit-ID: 2YzN3DUXzTi

--HG--
extra : rebase_source : 88762cadb11cb329de2881434cbead42f5438e8f
2017-07-28 15:43:28 +08:00
Kevin Hsieh 0397c306ab Bug 1322537 - Increase tolerance when splitting Bezier curves to prevent hang. r=bas
MozReview-Commit-ID: 3qhj9He65Bh

--HG--
extra : rebase_source : 63f37c20bec61aa21dbf6ff539a9b967a0703810
2017-07-28 23:57:04 -07:00
Mason Chang eaeaf02865 Bug 1384929 Check for null surfaces in DrawTarget::IntoLumaSource. r=lsalzman 2017-07-28 13:49:06 -07:00
Mason Chang cc5d07571f Bug 1381973 - Lazily create the reference DT in DrawTargetCapture. r=dvander 2017-07-26 15:43:00 -07:00
Carsten "Tomcat" Book 3b7b01d32d Merge mozilla-central to inbound 2017-07-27 11:27:45 +02:00
Lee Salzman f3254dc7ef Bug 1383767 - guarantee FreeType thread-safety by holding Cairo per-face lock and locking down rasterization. r=jrmuizel
MozReview-Commit-ID: DuPRIUBgw4W
2017-07-26 23:24:44 -04:00
Carsten "Tomcat" Book efd795174c Backed out changeset 22947e9aa292 (bug 1383767) for bustage 2017-07-27 08:20:41 +02:00
Lee Salzman 58dcb7ef01 Bug 1383767 - guarantee FreeType thread-safety by holding Cairo per-face lock and locking down rasterization. r=jrmuizel
MozReview-Commit-ID: DuPRIUBgw4W
2017-07-26 23:24:44 -04:00
Kearwood Gilbert 21d51ec691 Bug 1310665 - macOS OpenVR Support r=daoshengmu,mattwoodrow
MozReview-Commit-ID: 9CDJpFOcFUB

--HG--
extra : rebase_source : ab1f13bd733a6f295570f58940191b333868a088
extra : source : d527620e9351a04bc70689af6a7369dd09ffeef0
2017-07-04 13:50:40 -07:00
Lee Salzman 68f83ebade Bug 1383817 - clamp gamma/contrast for ScaledFontDWrite when creating SkTypeface. r=mchang
MozReview-Commit-ID: LSSffVooDCI
2017-07-24 14:12:26 -04:00
Lee Salzman b0af7fe549 Bug 1376026 - follow-up - fix ScaledFontDWrite construct parameter order. r=me 2017-07-23 21:07:50 -04:00
Sylvestre Ledru 7c0ae251cd Bug 1381253 - Remove redundant control flow declarations rs=ehsan
MozReview-Commit-ID: FFxP4aMCbOL

--HG--
extra : amend_source : 3aec108430b11048f47ffe19d5da7ac5034770a9
2017-07-15 19:03:04 +02:00
Mason Chang d085480b74 Bug 1381180 - Refactor out StrokeOptions from DrawCommands. r=dvander 2017-07-20 13:14:51 -07:00
Mason Chang 0087743f20 Bug 1381172 - Implement DrawTargetCapture::StrokeGlyphs. r=dvander 2017-07-14 17:48:00 -07:00
David Anderson d91f1ac58c Protect D2D singletons with a mutex. (bug 1380922 part 2, r=mchang)
--HG--
extra : rebase_source : f261e84d8d6a9ef7d153b04d447f9edb36a77dde
2017-07-18 12:15:44 -07:00
David Anderson e53986168f Store and return D2D singletons in RefPtrs. (bug 1380922 part 1, r=mchang)
--HG--
extra : rebase_source : baf7cce201a38897f1f9dcbd7c36855ff070217b
2017-07-18 12:15:39 -07:00
Jeff Muizelaar efcfc87c0e Bug 1381483 - Remove 'using namespace std' from RecordedEventImpl.h r=lsalzman
We don't want to have 'using' statements in headers.
2017-07-17 14:54:50 -04:00
Mason Chang d972f95729 Bug 1380493 Set surface format of DrawTargetCapture to whatever the ref DT is. r=dvander 2017-07-14 10:55:03 -07:00
Lee Salzman f3982ad525 Bug 1380431 - fix DrawTargetCairo::Snapshot error note to check for surface before accessing status. r=mchang
MozReview-Commit-ID: DNTHv4NKjzq
2017-07-12 23:38:36 -04:00
Lee Salzman 2d696d5c34 Bug 1376026 - fix plumbing of DWrite parameters for Skia fonts to not depend on gfxPlatform. r=jrmuizel
MozReview-Commit-ID: 5K9201eCSv
2017-06-30 14:09:05 -04:00
Kartikaya Gupta 78bfd54626 Bug 1378355 - Extract gfxPlatform wrappers for MaxAllocSize and MaxTextureSize. r=bas
This allows us to reuse the minimum bound guards on the pref values in other
places that want to use the prefs.

MozReview-Commit-ID: 7XKuM5u1GB8

--HG--
extra : rebase_source : 9cf85c7cbe2e8511ad2db59e7bf7ba6e8db79883
2017-07-10 10:15:24 -04:00
Sebastian Hengst 522fc18c93 Backed out changeset 24421d72ba08 (bug 1376026) 2017-07-07 21:42:09 +02:00
Lee Salzman ab6885d706 Bug 1376026 - fix plumbing of DWrite parameters for Skia fonts to not depend on gfxPlatform. r=jrmuizel
MozReview-Commit-ID: 5K9201eCSv
2017-06-30 14:09:05 -04:00
Lee Salzman ed3169ba6b Bug 1375842 - increase SIMD padding for convolution filter to 31 bytes. r=jrmuizel
MozReview-Commit-ID: IAwY4xbA0P2
2017-07-07 13:32:05 -04:00
Jeff Muizelaar 2080cabf66 Bug 1378953 - Always use unordered_set in DrawEventRecorder. r=lsalzman
We always have unordered_set now, and it's closer to what we want.
2017-07-06 16:57:04 -04:00
Mason Chang 8a70db6bdb Bug 1378538. Copy Dash data when recording StrokeLines in DrawTargetCapture. r=jrmuizel 2017-07-06 08:04:10 -07:00
Jeff Muizelaar 1b3f0224fd Bug 1377362. Make InlineTranslator::TranslateRecording() take data instead of a stream. r=lsalzman
This gives us a big improvement to deserialization speed.
2017-07-06 07:15:45 -04:00
Jeff Muizelaar e60693a015 Bug 1377362. Make LoadEventFromStream generic. r=lsalzman
This is needed to allow deserialization directly from memory
2017-07-06 07:15:43 -04:00
Jeff Muizelaar bb066b19f2 Bug 1377362. Make the constructors to the recording events generic. r=lsalzman 2017-07-06 07:15:40 -04:00
Kartikaya Gupta 0df03f07af Bug 1377169 - Copy some useful functions from gfxRect into other places. r=jrmuizel
These functions need to survive the gfxRect purge as they are used in a
few places.

MozReview-Commit-ID: 1jGNlmAvV49

--HG--
extra : rebase_source : 0becc3b969063b5797502a3414dfd6573e82eee0
2017-07-05 11:21:58 -04:00
Kartikaya Gupta 8609d33dec Bug 1377090 - Further generify the Matrix class and define MatrixDouble. r=bas
To allow MatrixDouble to be a drop-in replacement for gfxMatrix, it
needs to accept the "double" versions of Point, Rect, and Size. This
patch does that by adding some extra typedefs inside BaseMatrix to
abstract over that.

It also moves some function implementations into the .h file as they
don't need specialization. I left some function implementations in
the Matrix.cpp file:
- Rotation, because it is specialized for Float and Double, since it uses
  sinf/cosf vs sin/cos in the two implementations.
- The Matrix4x4 multiplication operator overload, because if I put it
  inside the BaseMatrix class declaration Matrix4x4 isn't defined yet
  and the compiler doesn't like it.

MozReview-Commit-ID: K56dZjJhXWS

--HG--
extra : rebase_source : d009151942811a725ee6bf854238073e59665d5c
2017-07-05 11:18:49 -04: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
Kartikaya Gupta 1c54bb2347 Bug 1377090 - Make the Matrix class templated so we can instantiate it with a double type. r=bas
This extracts a BaseMatrix template of which Matrix is now a particular
specialization. The BaseMatrix allows us to reuse the same code for
floats and doubles, much like the other "base" classes (BasePoint,
BaseRect, etc.).

MozReview-Commit-ID: HO7bA83S9E0

--HG--
extra : rebase_source : dcd84d9a978cdea00bb54eb11eefcca9c6635901
2017-07-05 11:18:48 -04:00
Mason Chang d59c1c2657 Bug 1372577. Fallback to CPU alpha to luminance on the parent process. r=jrmuizel 2017-06-29 10:09:14 -07:00
Carsten "Tomcat" Book 5f00ae3a8b merge mozilla-inbound to mozilla-central a=merge 2017-06-29 15:47:04 +02:00
Kartikaya Gupta 56edc85a6e Bug 1376782 - Replace gfxPoint with a typedef to PointDouble. r=jrmuizel
This also moves the WithinEpsilonOf function from gfxPoint into
PointTyped, and changes call sites that are using
gfxPoint::Transform(Matrix4x4) to use Matrix4x4::TransformPoint(Point)
instead, which should be equivalent.

MozReview-Commit-ID: 3Z0bsU41rQt

--HG--
extra : rebase_source : 390e8de546d641d324e7125a06d0b8b51a48b946
2017-06-28 11:42:23 -04:00
Kartikaya Gupta 493543fcba Bug 1376522 - Remove unused code. r=botond
MozReview-Commit-ID: 7rfulZOILBT

--HG--
extra : rebase_source : 41edfea1b3a05d9b6431c3f4fad9eb4a40262ae8
2017-06-27 14:58:51 -04:00
Mason Chang d69917e056 Bug 1375452 Fallback to DrawTarget::IntoLuminance if we can't create the effect. r=jrmuizel 2017-06-22 10:15:37 -07:00
Jeff Muizelaar b9527d4f81 Bug 1374900. Replace CopyRecording with direct use of the memory buffer. r=lsalzman 2017-06-22 23:55:47 -04:00
Jeff Muizelaar 8e3a8d7ea1 Bug 1374900. Rewrite DrawEventRecorderMemory to use the MemStream infrastructure. r=lsalzman 2017-06-22 23:55:47 -04:00
Jeff Muizelaar cf684af118 Bug 1374900. Replace MemWriter with a MemStream implementation. r=lsalzman
This is much faster than using a stringstream for a couple of reasons:
1. ostream needs to do a virtual call on each write which means that
   it can't be inlined.
2. stringstream needs to check for resize every write(). We combine
   those checks into a single one.
2017-06-22 23:55:47 -04:00
Jeff Muizelaar 75d68e196f Bug 1374900. Add MemWriter r=lsalzman
Add a dummy RecordToStream() implementation that supports something other than
istream. This makes a couple of places more generic to support this.
2017-06-22 23:55:47 -04:00
Jeff Muizelaar 4f96690374 Bug 1374900. Make our low level serialization functions generic over the type of stream. r=lsalzman 2017-06-22 23:55:47 -04:00
Jeff Muizelaar 23c4a6e056 Bug 1374900. Remove useless RecordToStream calls. r=lsalzman
The base class implementation does nothing.
2017-06-22 23:55:47 -04:00
Jeff Muizelaar e61bc0e9d7 Bug 1375179. Don't create a DrawTrargetDual from DrawTargetDual::CreateSimilarSurface() r=mstange
We mostly don't want a DrawTargetDual when calling CreateSimilarSurface
because we're going to doing something with that surface that doesn't
preserve the subpixel rendering.
2017-06-22 16:50:05 -04:00
Lee Salzman 062ca88ee0 Bug 1371689 - reuse Skia's SkConvolutionFilter1D instead of forked code from Chromium. r=jrmuizel
MozReview-Commit-ID: 5MFXOXqQvTw
2017-06-22 13:57:17 -04:00
Mason Chang 7003e739ec Bug 1374473 - Support push/pop layer in DrawTargetCapture. r=dvander 2017-06-21 14:19:42 -07:00
Mason Chang 11ee6ba44a Bug 1376859 - Update DrawTargetCapture's current transform during recording SetTransform. r=dvander 2017-06-28 15:22:59 -07:00
David Anderson 65b03ef2d4 Add IsRectilinear to Matrix4x4. (bug 1365879 part 2, r=mattwoodrow)
This allows testing if a matrix is rectilinear without first converting
to a Matrix3x3.
2017-06-20 01:17:15 -07:00
Robert Longson f055bf18d2 Bug 1369904 - Bounding box should not include control points. r=lsalzman 2017-06-14 06:34:01 +01:00
Jeff Muizelaar 64116b92d4 Bug 1362245. Stop running commands during recording for BlobImage. r=lsalzman
This keeps around mFinalDT but mostly doesn't use it (except for when creating
a PathBuilder). All playback is ripped out and we'll no longer hold references
to things to mFinalDT::GraidentStops or SourceSurfaces etc.
2017-06-12 17:53:21 -04:00
Jeff Muizelaar 63724b1070 Bug 1369552. Split out DrawTargetWrapAndRecord and DrawTargetRecording. r=Bas
DrawTargetRecording will stop playing back durin recording.

--HG--
rename : gfx/2d/DrawTargetRecording.cpp => gfx/2d/DrawTargetWrapAndRecord.cpp
rename : gfx/2d/DrawTargetRecording.h => gfx/2d/DrawTargetWrapAndRecord.h
extra : rebase_source : fd41326974905946318489cc801929328331ae73
2017-06-12 16:52:29 -04:00
Jeff Muizelaar 20146cc29a Bug 1372232 - GetPathForGlyphs: Implement default case. r=lsalzman
This helps out with recording surfaces.
2017-06-12 16:15:08 -04:00
Jeff Muizelaar 07374b97fe Bug 1372225 - Add recording for IntoLumaSource. r=mchang
This lets us avoid using the default implementation and allows us to
do the actual work on during playback.
2017-06-12 16:15:08 -04:00
Lee Salzman 5b025f2c31 Bug 1369949 - compute precise clipping region for DrawTargetSkia::BorrowCGContext. r=mchang
MozReview-Commit-ID: 9X3puHOd4dv
2017-06-09 21:40:13 -04:00
Jeff Muizelaar 0442ca87fb Bug 1367538. Clear user data after we're done with the recorder. r=lsalzman
This helps keep us from accumulating all of the recorders.

The basic idea is to track weak references to the SourceSurfaces and Fonts that
we add UserData to in DrawEventRecorderPrivate and then clear these UserData's
when we're done recording.

This adds a RemoveAndDestroy helper to UserData to make this possible.
2017-06-09 14:31:35 -04:00
Jeff Muizelaar cf6d4425f4 Bug 1359527. Fixup DrawTarget::IntoLuminance mismerge. r=mchang
This adds back the NEON code and fixes up a couple of other pieces
2017-06-09 10:57:44 -04:00
Mason Chang 1520cb158b Bug 1359527. Part 1 - Add DrawTarget::IntoLuminance r=jrmuizel 2017-06-02 11:13:36 -07:00
Kartikaya Gupta 9455874723 Bug 1370526 - Fix new[]/delete mismatch. r=jrmuizel
MozReview-Commit-ID: H7J8BK7regw

--HG--
extra : rebase_source : d7bc3004a0ed48d0204424c829f7bbde28afc826
2017-06-06 09:43:43 -04:00
Botond Ballo 9e5ace4056 Bug 1369929 - Do not increase the indent twice in the TreeAutoIndent copy constructor. r=kats
MozReview-Commit-ID: BVudzxWZnQS

--HG--
extra : rebase_source : ff590dc7e5aa31f6d93baf91f8e8df2f27c95628
2017-06-05 12:42:28 -04:00
sotaro 807999b9d6 Bug 1345054 part 1 - Allocate pipleline for each video r=nical 2017-06-02 16:11:34 +09:00
Mason Chang 17ccdaf65c Bug 1369096 - Check HRESULT when QueryInterfacing an ID2D1Image for an ID2D1Bitmap. r=bas 2017-05-30 15:59:19 -07:00
Lee Salzman 28e4ba1a1b Bug 1364627 - fix leaking of Cairo scaled font when creating ScaledFontFontconfig from a recording. r=jrmuizel
MozReview-Commit-ID: FspSjKzhrR2
2017-05-31 14:46:04 -04:00
Mason Chang d73beaa757 Bug 1367127 - Use an ImageBrush during DrawTargetD2D1::PushLayer instead of a BitmapBrush. r=bas 2017-05-30 09:31:02 -07:00
Phil Ringnalda 16b90e808a Backed out changeset e12fa325e112 (bug 1359527) for Win8 masking reftest failures
MozReview-Commit-ID: 5ecOfTu606d
2017-05-28 15:45:42 -07:00
Mason Chang 981bccddf0 Bug 1359527. Add DrawTarget::IntoLuminance. r=jrmuizel,Bas
This lets us use the luminance effect with Direct2D to avoid
having to read back. It will also let us avoid reading back
with DrawTargetRecording.
2017-05-28 15:35:14 -04:00
Kevin Chen 6a20c88a59 Bug 1366027 - Calculate shrink clipped rect with double precision; r=lsalzman
MozReview-Commit-ID: 1y2oUkDfnu6

--HG--
extra : rebase_source : 97949c6d03925cd72974a21e630ba850ad2e5c2c
2017-05-23 11:53:04 +08:00
Botond Ballo c697659438 Bug 1352863 - Add a DistanceTo() method to BaseRect. r=kats
MozReview-Commit-ID: BHGXvNFlfb4

--HG--
extra : rebase_source : d26190c57e396671f68f679aa33aa1df0bfe5bea
2017-05-19 20:10:30 -04:00
Kartikaya Gupta 5d656fab0f Merge m-c to graphics
MozReview-Commit-ID: HvsAeMjJAIA
2017-05-19 09:30:48 -04:00
JerryShih e90c3c1ca4 Bug 1362049 - Update the texture target and texture format in MacIOSurface. v5. r=mattwoodrow
Add LOCAL_GL prefix for all GL constant value.
Turn to use GL_RED and GL_RB if we use core profile.
Turn to use GL_RGB_422_APPLE instead of GL_YCBCR_422_APPLE for core profile.

MozReview-Commit-ID: FCwbrUEFUxI
2017-05-18 22:59:07 +08:00
JerryShih 3774d02876 Bug 1362049 - Add R8G8 type in SurfaceFormat. r=bas.schouten
This R8G8 format will be used in NV12 image format.

MozReview-Commit-ID: KNJFwOasVts
2017-05-18 22:59:06 +08:00
Kartikaya Gupta aca076b94b Merge m-c to graphics
MozReview-Commit-ID: DFNbcj14mg9

--HG--
rename : memory/mozjemalloc/jemalloc.c => memory/mozjemalloc/mozjemalloc.cpp
rename : memory/mozjemalloc/jemalloc_types.h => memory/mozjemalloc/mozjemalloc_types.h
2017-05-18 08:34:15 -04:00
Morris Tseng f84dd075bc Bug 1336986 - Return false in ContainsOnlyColoredGlyphs if no glyphs are drawing. r=jrmuizel
If font is downloading, we don't draw any glyphs in drawtarget which
means mDrawCommandsStorage doesn't contain any FILLGLYPHS command.
Return false in this situation so that we can handle it correctly in the
caller.

MozReview-Commit-ID: CtxvCeYh0ii
2017-05-18 10:55:28 +08:00
Jeff Muizelaar b075675c65 Bug 1365358. Add an implementation of CopyGlyphsToBuilder for Recording. r=Bas 2017-05-17 10:47:32 -04:00
Lee Salzman b138a8ec44 Bug 1365935 - add Moz2D Factory methods for making an FT_Library. r=jrmuizel
MozReview-Commit-ID: 7gQuVrl38aT
2017-05-18 13:16:06 -04:00
Jan Beich 1d6a7d6e22 Bug 1364851 - Explicitly include SkRegion.h for --disable-skia-gpu. r=lsalzman
MozReview-Commit-ID: EEGNcLi538V

--HG--
extra : rebase_source : 7d0c6c1486f206249fa5997fbdf0a7ba735f5c46
2017-05-15 10:14:38 +00:00
Lee Salzman 6648f1fbf8 Bug 1364628 - give each webrender blob image renderer thread its own thread-local FT_Library to work around unsafe FT_Face rasterization/metrics calls. r=jrmuizel
MozReview-Commit-ID: 5sJznRRV3bq
2017-05-17 21:56:58 -04:00
Lee Salzman b585bd3438 Bug 1364628 - implement thread-safe variants of FT_New_Face/FT_Done_Face. r=jrmuizel
MozReview-Commit-ID: 6xbOm2nYhXo
2017-05-17 21:56:24 -04:00
Kevin Chen d6f7dc2900 Bug 1363677 - Skip Flush() and EndDraw() if the ID2D1DeviceContext is stale; r=dvander
MozReview-Commit-ID: 6KnryMZE8Qj

--HG--
extra : rebase_source : 7e8794825934b82c887159b04128cf830f77d897
2017-05-10 16:22:08 +08:00
Mason Chang a1f1297cc9 Bug 1340627. Properly push/pop skia saved layers during borrow/return cg context. r=lsalzman 2017-05-10 16:21:13 -04:00
Lee Salzman e33e057886 Bug 1340627 - part 3 - fix Moz2d for Skia m59. r=mchang
MozReview-Commit-ID: 1fugjwSpOMZ
2017-05-09 22:31:07 -04:00
Carsten "Tomcat" Book 93cc82c178 Backed out changeset abffc78e1cf6 (bug 1340627) 2017-05-11 12:51:58 +02:00
Carsten "Tomcat" Book 1d0daaa1bc Backed out changeset 1fcd9ee5ccb5 (bug 1340627) 2017-05-11 12:51:44 +02:00
Mason Chang d306587594 Bug 1340627. Properly push/pop skia saved layers during borrow/return cg context. r=lsalzman 2017-05-10 16:21:13 -04:00
Lee Salzman 836ee7f95b Bug 1340627 - part 3 - fix Moz2d for Skia m59. r=mchang
MozReview-Commit-ID: 1fugjwSpOMZ
2017-05-09 22:31:07 -04:00
Jonathan Kew a2d1a04aa1 Bug 1363492 - Ensure ScaledFontMac constructor always initializes the mFont field properly. r=lsalzman 2017-05-10 21:15:20 +01:00
Wes Kocher 24a327994e Backed out 9 changesets (bug 1340627) for graphical glitches a=backout
Backed out changeset 0b1371055c7f (bug 1340627)
Backed out changeset f152be1fadb7 (bug 1340627)
Backed out changeset c691e2ab6a0c (bug 1340627)
Backed out changeset 3cb4bceb8d79 (bug 1340627)
Backed out changeset 026aadd76d06 (bug 1340627)
Backed out changeset fdbd5d281287 (bug 1340627)
Backed out changeset 75fb0d9858a9 (bug 1340627)
Backed out changeset 0d4ec7d38a00 (bug 1340627)
Backed out changeset af6f19870b2a (bug 1340627)

MozReview-Commit-ID: 9dHr7xMZezY

--HG--
rename : gfx/skia/skia/src/core/SkBlitRow.h => gfx/skia/skia/include/core/SkBlitRow.h
rename : gfx/skia/skia/src/effects/SkGaussianEdgeShader.h => gfx/skia/skia/include/effects/SkGaussianEdgeShader.h
rename : gfx/skia/skia/src/xml/SkXMLParser.h => gfx/skia/skia/include/xml/SkXMLParser.h
rename : gfx/skia/skia/include/private/SkMessageBus.h => gfx/skia/skia/src/core/SkMessageBus.h
rename : gfx/skia/skia/src/gpu/ops/GrAAConvexPathRenderer.h => gfx/skia/skia/src/gpu/batches/GrAAConvexPathRenderer.h
rename : gfx/skia/skia/src/gpu/ops/GrAAConvexTessellator.h => gfx/skia/skia/src/gpu/batches/GrAAConvexTessellator.h
rename : gfx/skia/skia/src/gpu/ops/GrAAHairLinePathRenderer.h => gfx/skia/skia/src/gpu/batches/GrAAHairLinePathRenderer.h
rename : gfx/skia/skia/src/gpu/ops/GrAALinearizingConvexPathRenderer.h => gfx/skia/skia/src/gpu/batches/GrAALinearizingConvexPathRenderer.h
rename : gfx/skia/skia/src/gpu/ops/GrPathStencilSettings.h => gfx/skia/skia/src/gpu/batches/GrPathStencilSettings.h
rename : gfx/skia/skia/src/gpu/ops/GrStencilAndCoverPathRenderer.h => gfx/skia/skia/src/gpu/batches/GrStencilAndCoverPathRenderer.h
rename : gfx/skia/skia/include/private/GrGLSL_impl.h => gfx/skia/skia/src/gpu/glsl/GrGLSL_impl.h
2017-05-10 10:01:18 -07:00
Lee Salzman ec8d1a9a71 Bug 1340627 - part 3 - fix Moz2d for Skia m59. r=mchang
MozReview-Commit-ID: 1fugjwSpOMZ
2017-05-09 22:31:07 -04:00
Kartikaya Gupta 5d5cdc518c Merge m-c to graphics
MozReview-Commit-ID: 2cIoGVmLEuA
2017-05-08 10:50:52 -04:00
Jeff Muizelaar 60c7aca953 Bug 1362505. Correctly set the transforms on all DrawTargets. r=lsalzman
I suppose this got worse when we started using multiple DrawTargets.
But let's just do the right thing and not special case transforms.
2017-05-05 23:51:35 -04:00
Jeff Muizelaar 2d0ade0f7c Bug 1362221. InlineTranslator should track DrawTargets. r=lsalzman
Previously we always used the initial DrawTarget regardless of what was being drawn.
2017-05-05 10:34:03 -04:00
Jeff Muizelaar ec4e044d9e Bug 1360001. Add back some recording helpers. r=bobowen
These are only going to be used temporarily while we bring up blob images for
webrender.
2017-05-01 21:58:21 -04:00
cku 2d993f6812 Bug 1360343 - ensure maskSurface is not null before dereference, since it can be null because of OOM or gfx device reset. r=dvander
MozReview-Commit-ID: HX2qsWLZpMg

--HG--
extra : rebase_source : 046befc11151461a682842c31e2ce39247a5e1d8
2017-04-28 11:48:21 +08:00
Kartikaya Gupta e37b4e9289 Merge m-c to graphics
MozReview-Commit-ID: 6UBB4TW6an5
2017-04-27 09:31:17 -04:00
Lee Salzman 6c14185528 Bug 1357952 - fix UnscaledFontFreeType::GetFontFileData to read file contents when filename is used instead of an FT_Face. r=jrmuizel 2017-04-21 11:51:27 -04:00
Jonathan Watt bbf54e88ce Bug 1359155, part 1 - Implement a StrideForFormatAndWidth Moz2D helper. r=mstange
MozReview-Commit-ID: 95Bv3tr5W6C
2017-03-30 13:50:23 +01:00
Mason Chang 25d7f57213 Bug 1351733. Reuse D2D Source Surfaces with Draw Target Dual. r=bas 2017-04-17 08:41:42 -07:00
Lee Salzman 03ed17e42f Bug 1357009 - add missing UnscaledFontGDI::GetFontInstanceData. r=jrmuizel
MozReview-Commit-ID: 21EoCWhkDDu
2017-04-17 10:59:31 -04:00
Sebastian Hengst 8bd051237a merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: JpAhOPjgvkF
2017-04-15 19:59:24 +02:00
Miko Mynttinen d5c1995700 Bug 1345849 - Part 2: Remove unused Triangle::width and height r=jrmuizel
MozReview-Commit-ID: QfOaZcv2uu

--HG--
extra : rebase_source : 12d1f458156e62aab56834d83e1951db3554f43a
2017-03-27 16:22:35 -04:00
Miko Mynttinen 5a0186840b Bug 1351426 - Part 5: Cleanup style and comments r=kip
MozReview-Commit-ID: HOPY8v4UWKo

--HG--
extra : rebase_source : 3af5c5ed3cabc39a6ecd122f961aba16309518b1
2017-04-04 03:59:31 +02:00
Miko Mynttinen 9ee1c2deba Bug 1351426 - Part 4: Refactor gfx::Polygon to avoid unnecessary work and memory allocations r=kip
MozReview-Commit-ID: ASusoTqZxuY

--HG--
extra : rebase_source : 1967c11e76853297a2ce405e598b3db2b2b0c112
2017-04-04 04:51:29 +02:00
Miko Mynttinen 496fccc821 Bug 1351426 - Part 2: Only use 4D points in gfx::Polygon r=kip
MozReview-Commit-ID: 1osQrpwH0WZ

--HG--
extra : rebase_source : e5fef3d096a7780a4a502ca2a7c20ce9d3482d13
2017-04-04 03:15:48 +02:00
Carsten "Tomcat" Book fdc689ba16 merge mozilla-inbound to mozilla-central a=merge 2017-05-05 15:17:26 +02:00
Lee Salzman 744c16f40b Bug 1362117 - keep NativeFontResourceFontconfig alive while its associated cairo_font_face_t is alive. r=jrmuizel
MozReview-Commit-ID: HxeOQPTP6WL
2017-05-04 14:05:01 -04:00
Bob Owen ab1587da50 Bug 1355011: Remove DrawEventRecorderMemory as it can too easily cause OOMs. r=lsalzman 2017-04-11 08:20:41 +01:00
Bob Owen 3f14ad38c2 Bug 1347646 Part 1: Backout 4849ef8c9a34 for causing OOM issues when printing PDFs. r=jwatt, r=lsalzman, r=tobytailor 2017-04-08 22:47:51 +01:00
Lee Salzman a168dcdbf3 Bug 1348980 - implement UnscaledFont API for Moz2D and thebes. r=jfkthame 2017-04-06 17:41:02 -04:00
Eric Rahm 89708e6a2a Bug 1353143 - Part 5: Replace direct usage of PR_LogPrint. r=froydnj
This replaces the usage of |PR_LogPrint| with either |printf_stderr| or
|MOZ_LOG| where appropriate. |printf_stderr| is used where a logger is not
actually available or if log levels are not being used as expected.
2017-04-04 14:36:21 -07:00
Cameron McCormack 8fa01566a1 Bug 1356103 - Part 5: Allow access to WeakPtr<UnscaledFont> when the Servo font metrics mutex is locked. r=lsalzman
We need to grab UnscaledFont objects through WeakPtrs during metrics
calculations, but this only happens on Servo style worker threads
while the Servo font metrics mutex is locked (and while the main
thread is paused).  So we use WeakPtrTraits to override the
thread safety assertion to allow OMT access through the WeakPtr
if the mutex is locked.

Since we can end up creating UnscaledFont objects from the style
worker threads too, we additionally need to allow the main thread
to access them through WeakPtrs.

It would be nice to avoid the dependency on layout/style/ here, but
I can't see a way to do that without putting the burden of the
annotation that the more permissive thread safety checks are allowed
on the WeakPtr<> declarations themselves.

MozReview-Commit-ID: AbHNZEhE7L8

--HG--
extra : rebase_source : 48fba82778c1015a764a3cd921475966b67bf70a
2017-04-30 14:47:22 +08:00
Iris Hsiao 0a6db9e69f Backed out 12 changesets (bug 1356103) for build bustage at PostTraversalTask.h
Backed out changeset 9fb487252c28 (bug 1356103)
Backed out changeset 301237c65945 (bug 1356103)
Backed out changeset 7bc3a4861a39 (bug 1356103)
Backed out changeset 2f383d89184b (bug 1356103)
Backed out changeset a03112e1c9d5 (bug 1356103)
Backed out changeset c60b4c9cbd83 (bug 1356103)
Backed out changeset 34280baeaabe (bug 1356103)
Backed out changeset 31a0881cfb47 (bug 1356103)
Backed out changeset 529d037f9c33 (bug 1356103)
Backed out changeset 1c7831db6b07 (bug 1356103)
Backed out changeset 559f06e32df3 (bug 1356103)
Backed out changeset 784865d234cd (bug 1356103)
2017-05-04 17:56:25 +08:00
Cameron McCormack 94dcde5557 Bug 1356103 - Part 5: Allow access to WeakPtr<UnscaledFont> when the Servo font metrics mutex is locked. r=lsalzman
We need to grab UnscaledFont objects through WeakPtrs during metrics
calculations, but this only happens on Servo style worker threads
while the Servo font metrics mutex is locked (and while the main
thread is paused).  So we use WeakPtrTraits to override the
thread safety assertion to allow OMT access through the WeakPtr
if the mutex is locked.

Since we can end up creating UnscaledFont objects from the style
worker threads too, we additionally need to allow the main thread
to access them through WeakPtrs.

It would be nice to avoid the dependency on layout/style/ here, but
I can't see a way to do that without putting the burden of the
annotation that the more permissive thread safety checks are allowed
on the WeakPtr<> declarations themselves.

MozReview-Commit-ID: AbHNZEhE7L8

--HG--
extra : rebase_source : 95e669d64a0881ef1c9747c2e7de7f361865af11
2017-04-30 14:47:22 +08:00
Lee Salzman bfa3b7a714 Bug 1355931 - move ScaledFont::VariationSetting into separate header for sharing with thebes. r=jrmuizel
MozReview-Commit-ID: 4UThWTMCuz9
2017-04-14 14:11:02 -04:00
Lee Salzman 28471864af Bug 1355931 - move font serialization from ScaledFont to UnscaledFont. r=jrmuizel
MozReview-Commit-ID: 3d1XMoe2BKj
2017-04-14 14:11:00 -04:00
Botond Ballo 9ebdb4f7f0 Bug 1352564 - Add a method to invert a Matrix4x4 if it's invertible. r=botond
Use it in HitTestingTreeNode::Untransform.

MozReview-Commit-ID: 1JkLh99FD0h

--HG--
extra : rebase_source : ca9836c1999a2af3cac5287a9efa875c415634f7
2017-04-02 17:20:23 -04:00
Lee Salzman 11961c7776 Bug 1343813 - make NativeFontResourceGDI send the LOGFONT as scaled font instance data. r=bobowen
MozReview-Commit-ID: F4UCQSXScHz
2017-03-29 18:22:06 -04:00
Lee Salzman baebc83432 Bug 1347632 - make RecordedSourceSurfaceCreation fallible. r=tobytailor
MozReview-Commit-ID: G4x3zTluGb4
2017-03-22 14:57:25 -04:00
Lee Salzman f942812710 Bug 1347147 - fix DrawTargetD2D1::GetImageForSurface to support uploads in device-space. r=mchang
MozReview-Commit-ID: 2galhKidxca
2017-03-14 22:17:47 -04:00
Lee Salzman 7fed4b26a7 Bug 1345815 - fix BasicLayers OOM with recording playback by avoiding copies. r=tobytailor
MozReview-Commit-ID: 1r5sOZv0Gp6
2017-03-09 16:08:40 -05:00
Daniel Holbert 95a650ec1b Bug 1343975: Get rid of all dos/windows linebreaks in Mozilla C++ code. r=ehsan
This is an automated patch, generated by the following command:
find . -name "*.h" -exec fromdos {} \; && \
  find . -name "*.cpp" -exec fromdos {} \; && \
  hg revert -C gfx/angle \
               gfx/sfntly \
               media/webrtc \
               media/libstagefright \
               media/openmax_il \
               other-licenses

MozReview-Commit-ID: Gunlz3vE3h6
2017-03-02 13:08:29 -08:00
Lee Salzman cebf845be0 Bug 1342571 - fix MaxStrokeExtents to account for partial pixel coverage properly. r=mstange
MozReview-Commit-ID: DS25AJKoVYo
2017-02-28 15:48:04 -05:00
Lee Salzman 4dfd1b6ac1 Bug 1342571 - shrink dashed DrawTargetSkia::StrokeRect where possible. r=mstange
MozReview-Commit-ID: 7vu9j8jCwQn
2017-02-28 15:47:46 -05:00
Bob Owen 8d80080897 Bug 1342395: Unwrap aPattern in DrawTargetRecording::FillGlyphs when calling wrapped DrawTarget. r=jrmuizel 2017-02-28 18:02:23 +00:00
Miko Mynttinen d383988026 Bug 1338997 - Ensure that the transformation matrices are invertible r=mattwoodrow
MozReview-Commit-ID: A5nHNcnkrNN

--HG--
extra : rebase_source : 805da3badc2af207724aa67d60638cfa22a3330d
2017-02-23 20:42:10 +01:00
cku 7b9f69f17a Bug 1342302 - Part 1. Implement RectCornerRadii::IsEmpty. r=mstange
MozReview-Commit-ID: JHaRg4rBHu8

--HG--
extra : rebase_source : 502ffd16de19ad6a65058b82640f78ed2ea6c9b2
2017-02-24 14:30:19 +08:00
Lee Salzman 53952fefb9 Bug 1303094 - avoid OOM crashes in SourceSurfaceSkia::DrawTargetWillChange. r=mchang
MozReview-Commit-ID: 236vebw7ftU
2017-02-23 14:40:59 -05:00
Wes Kocher aa292f210f Merge autoland to central, a=merge
MozReview-Commit-ID: 1jc25nYhPbA
2017-02-21 17:05:17 -08:00