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