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