Sebastian Hengst
b4777dbb36
merge mozilla-inbound to mozilla-central. r=merge a=merge
...
MozReview-Commit-ID: IRW0W7LuIM7
2017-10-03 11:43:52 +02:00
Bas Schouten
f4dd7c073f
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
b326814a20
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
2017-09-29 11:12:38 -05:00
Bas Schouten
cb15099515
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
68a1a51d59
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
4c657ebe03
Bug 1400382 - Replace explicit TextDrawTarget passing with cast-based system. r=mstange
...
MozReview-Commit-ID: EQtFvLQCT2U
2017-09-21 15:15:58 -04:00
Wes Kocher
656a5b5379
Merge m-c to inbound, a=merge
...
MozReview-Commit-ID: 7rJ9fpLBazL
2017-09-22 15:06:12 -07:00
Wes Kocher
9cf2d4ecc2
Merge inbound to central, a=merge
...
MozReview-Commit-ID: 2MDU9VGB9Pg
2017-09-22 14:56:05 -07:00
Bas Schouten
8690989102
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
1a472c7620
Bug 1401638 - Fixup implicit constructor bustage. r=me on a CLOSED TREE
2017-09-22 11:25:17 -04:00
Ryan Hunt
4b6bd70ec8
Bug 1401638 - Set and reset mPermitSubpixelAA in push and pop layer for DrawTargetCapture. r=bas
...
MozReview-Commit-ID: DxeNaiAYJvb
2017-09-20 12:23:01 -05:00
Nicolas Silva
a2794d9440
Bug 1402304 - Fix bindings to go with WR cset 4dbc5d8e. r=kats
...
MozReview-Commit-ID: CxlZhhTAxwk
2017-09-22 10:00:44 -04:00
Lee Salzman
7ac78e3c84
Bug 1397458 - part 3 - add ScaledFont::GetWRFontInstanceOptions for querying WebRender font instance options r=kats
...
MozReview-Commit-ID: BRDfmwkbOY2
2017-09-19 23:11:02 -04:00
Lee Salzman
f123e9db3d
Bug 1397458 - part 2 - refactor ScaledFontMac font variation collection for easier reuse r=kats
...
MozReview-Commit-ID: C2L8tZe4jEa
2017-09-19 23:08:16 -04:00
Lee Salzman
b29713fe9c
Bug 1397458 - part 1 - expose font variations directly in ScaledFont/DrawTargetRecording r=kats
...
MozReview-Commit-ID: 28egBaMImO8
2017-09-17 21:21:15 -04:00
Bas Schouten
dd87233ae7
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
33ee113688
Bug 1400378 - Add layers logging support for Point3D. r=mattwoodrow
...
MozReview-Commit-ID: 9W3gDi7wyQF
2017-09-15 16:08:12 -04:00
Sebastian Hengst
3e68a804d7
merge mozilla-central to autoland. r=merge a=merge
2017-09-15 00:01:52 +02:00
Markus Stange
c14f5ecbb9
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
b78386ef7b
Bug 1399178: Record SetPermitSubpixelAA. r=dvander
...
MozReview-Commit-ID: HfMK5SOSFtr
2017-09-13 19:15:16 +00:00
Bas Schouten
1d55037f91
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
2017-09-12 19:10:55 +00:00
Lee Salzman
8bb1c899fc
Bug 1393956 - ensure NativeFontResourceDWrite is thread-safe. r=bas
...
MozReview-Commit-ID: 4uME7zNmXrg
2017-09-05 15:30:13 -04:00
Jeff Gilbert
5607b476c7
Bug 1322746 - Support blit from IOSurfaces. - r=mattwoodrow
...
MozReview-Commit-ID: K4aHyOjQXfP
2017-09-02 21:52:19 -07:00
Milan Sreckovic
dafb51d25a
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
2017-08-31 16:00:44 -04:00
Lee Salzman
e54dd8d30e
Bug 1393055 - map ScaledFonts to WebRender FontInstanceKeys. r=jrmuizel
...
MozReview-Commit-ID: AadEI5CnTZ1
2017-08-30 13:45:11 -04:00
Nathan Froyd
e37ab200f0
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
97679709c9
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
db1915ba2f
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
35f9f68243
Bug 1371979 - Reduce memory allocation / deallocation in DrawTargetTiled::PushClip(Rect) / PopClip. r=bas
...
MozReview-Commit-ID: 8ejQOevZR8t
2017-06-11 01:05:16 -04:00
Carsten "Tomcat" Book
2fed701ed0
merge mozilla-inbound to mozilla-central a=merge
2017-08-15 11:42:11 +02:00
Ryan Hunt
1f413f3821
Bug 1390295 - Initialize DrawTargetCapture::mFormat before using it. r=mchang
...
MozReview-Commit-ID: 7x1MLj088uM
2017-08-14 15:52:11 -05:00
Jan Beich
a13cd0a3d6
Bug 1389733 - Add missing Skia compile guards. r=lsalzman
...
MozReview-Commit-ID: BXYxGjj0j73
2017-08-12 04:31:21 +00:00
Milan Sreckovic
fe9daf64d1
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
2017-08-14 08:29:28 -04:00
Milan Sreckovic
9ff144672f
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
2017-08-14 08:28:11 -04:00
Wes Kocher
d8763f1c49
Merge m-c to inbound, a=merge
...
MozReview-Commit-ID: BYZASFIrXxp
2017-08-14 17:58:17 -07:00
Jeff Muizelaar
67a1e35688
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
99fab44808
Bug 1387002 - Replace .size() by .empty() when applicable in gfx/ r=nical
...
MozReview-Commit-ID: BIrMZHj6BBZ
2017-08-03 12:02:35 +02:00
Markus Stange
7f015127c6
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
2017-08-02 17:26:02 -04:00
Mason Chang
d638a8c444
Bug 1386080 - Make DrawTarget thread safe refcountable. r=bas
2017-08-08 15:11:11 -07:00
Lee Salzman
e7a31d05bc
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
2cea39cb11
Add diagnostics for the crash in bug 1387467. r=milan
2017-08-05 01:32:25 -07:00
Milan Sreckovic
3cd50c721d
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
2017-08-03 15:29:35 -04:00
Ehsan Akhgari
09a3d926e1
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
f2e51f8020
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
70753d6f2a
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
dc5adbbf76
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
2017-07-28 15:43:28 +08:00
Kevin Hsieh
d149a3490d
Bug 1322537 - Increase tolerance when splitting Bezier curves to prevent hang. r=bas
...
MozReview-Commit-ID: 3qhj9He65Bh
2017-07-28 23:57:04 -07:00
Mason Chang
f0f198d291
Bug 1384929 Check for null surfaces in DrawTarget::IntoLumaSource. r=lsalzman
2017-07-28 13:49:06 -07:00
Mason Chang
178af9710d
Bug 1381973 - Lazily create the reference DT in DrawTargetCapture. r=dvander
2017-07-26 15:43:00 -07:00
Carsten "Tomcat" Book
76ba03540c
Merge mozilla-central to inbound
2017-07-27 11:27:45 +02:00