Commit Graph

16346 Commits

Author SHA1 Message Date
Jeff Muizelaar
bada9d796a Bug 1228641. Add a initializer_list constructor to nsTArray. r=froydnj
This also adds a couple of users of the new pattern.
2016-01-17 22:11:25 -05:00
Benoit Girard
ab1692341a Bug 1240190 - Add D3D9 texture upload profiler labels. r=jrmuizel 2016-01-15 13:50:51 -08:00
Ryan VanderMeulen
43ca41103f Merge fx-team to m-c. a=merge 2016-01-17 15:05:20 -05:00
Kris Maglione
f965c5ec6f Bug 1239822: Part 2a - [webext] Explicitly destroy windowless browsers on unload. r=billm 2016-01-15 13:30:15 -08:00
Kartikaya Gupta
4db2651811 Bug 1238239 - Update gecko scrollbar styling for Fennec. r=snorp f=antlam 2016-01-13 15:47:38 -05:00
Nicholas Nethercote
396aba2e6c Bug 1239537 - Remove Compositor::GetWidgetSize(), which is unused. r=mattwoodrow.
Also remove BasicCompositor::mWidgetSize because its only use can be replaced
by a temporary variable.
2016-01-13 15:27:34 -08:00
Lee Salzman
4892d3f4ec Bug 1239040 - Fix DrawTargetCairo/DrawTargetSkia LockBits and BorrowedXlibDrawable to work inside PushLayer. r=jrmuizel 2016-01-13 13:11:07 -05:00
Lee Salzman
062e37c279 Bug 1239040 - Cleanup of DrawTargetSkia CopySurface to avoid accessing bottom layer directly. r=jrmuizel 2016-01-13 13:11:07 -05:00
Lee Salzman
7792e17f48 Bug 1239040 - Implement PushLayer for DrawTargetSkia. r=Bas 2016-01-12 23:30:33 -05:00
Lee Salzman
2080e69ca4 Bug 1239040 - Cleanup of DrawTargetSkia Mask and MaskSurface. r=jrmuizel 2016-01-12 13:26:31 -05:00
Lee Salzman
87fe5e57bc Bug 1239040 - Cleanup of DrawTargetSkia GetBitmapForSurface to use installPixels. r=jrmuizel 2016-01-12 13:05:13 -05:00
Lee Salzman
c40834a382 Bug 1239040 - Allow usage of SkCanvas::getTopDevice in Skia. r=jrmuizel 2016-01-12 13:05:09 -05:00
Lee Salzman
168bebba93 Bug 1238795 - Fix SkGpuDevice::drawBitmapRect to always update clips. r=jrmuizel 2016-01-14 15:17:55 -05:00
John Daggett
17d30dfd3a Bug 1239603 - don't reject format 12 cmap with odd encoding. r=jfkthame
This fixes an issue affecting the use of Big Caslon under OSX which uses an improperly labeled format12 cmap with platform=0/encoding=1. Technically, a Unicode 1.1 encoding implies a font that's not entirely compatible with more recent versions of Unicode (e.g. Hangul range is different). But since this seems to be simply a font error and not a real problem for format12 cmaps, ignore this inconsistency.
2016-01-15 09:44:13 +09:00
Chris Peterson
b4db28bc14 Bug 1236323 - Part 2: Suppress -Wimplicit-fallthrough warnings in gfx/ from Skia header files. r=nical 2016-01-08 00:43:58 -08:00
Wes Kocher
457287dc55 Merge m-c to inbound, a=merge CLOSED TREE 2016-01-15 15:13:21 -08:00
Kartikaya Gupta
91b08c67ed Bug 1226826 - Record if painted displayport updates were due to repaints from the relevant layer tree or not. r=botond 2016-01-15 16:19:59 -05:00
Kartikaya Gupta
2b6aedaa55 Bug 1226826 - Record paint times in the checkerboard event. r=botond 2016-01-15 16:19:59 -05:00
Kartikaya Gupta
f14f0b29d8 Bug 1226826 - Record velocity at point of displayport request in checkerboard event. r=botond 2016-01-15 16:19:58 -05:00
Kartikaya Gupta
1900d2d95d Bug 1226826 - Add a CheckerboardEvent class to record stuff when checkerboarding happens. r=botond 2016-01-15 16:19:58 -05:00
Nicholas Nethercote
60484915e6 Bug 1239530 (part 2) - Use LayoutDevice coordinates in {Start,End}RemoteDrawingInRegion() and related functions. r=kats. 2015-12-02 22:29:54 -08:00
Sebastian Hengst
e9bd0374d5 Backed out changeset a6a59129ac7c (bug 1239288) for GTest failures. r=bustage 2016-01-14 22:31:09 +01:00
Milan Sreckovic
c3353c101e Bug 1237770: Disable D3D9 on XP with E10S. r=jrmuizel 2016-01-13 12:10:51 -05:00
Jonathan Kew
27d62409c8 Bug 1228540 - pt 2 - Remove our HBGetGlyphHOrigin callback, as the default behavior is sufficient. r=jdaggett 2016-01-15 08:45:31 +00:00
Jonathan Kew
47e84a91ce Bug 1228540 - Update harfbuzz to release 1.1.3. r=jdaggett 2016-01-15 08:44:41 +00:00
John Daggett
cc377af7c4 Bug 1212731 p2 - add system font cascade to fontlist for -apple-system generic. r=m_kato 2016-01-15 16:33:51 +09:00
John Daggett
b47a74f9ca Bug 1212731 p1 - move GetSampleLangForGroup into base class. r=m_kato 2016-01-15 16:33:51 +09:00
Jan de Mooij
d98775dbd4 Bug 1237201 part 2 - Handle Vector OOM in gfx/. r=jrmuizel,kats 2016-01-14 15:19:16 +01:00
Nicolas Silva
74f09fc4b5 Bug 1239288 - Add a shutdown test to the gfx job scheduler. r=jrmuizel 2016-01-14 13:34:46 +01:00
Boris Chiou
4ad6263d9a Bug 1214536 - Part 7: Rename AnimationTiming as TimingParams. r=birtles, r=smaug
1. struct AnimationTiming -> struct TimingParams
2. AnimationEffectReadOnly::TimingAsObject() -> AnimationEffectReadOnly::Timing()
3. KeyframeEffectReadOnly::Timing() -> KeyframeEffectReadOnly::SpecifiedTiming()
2016-01-13 18:41:00 +01:00
Boris Chiou
13c38676f5 Bug 1214536 - Part 4: Use OwingUnrestrictedDoubleOrString for duration. r=birtles
We store the original value of duration in AnimationTiming, and add
computed duration in ComputedTiming, so both the Timing model and
AnimationEffectTimingReadOnly can get what they want.

By the way, replace mIterationDuration with mDuration.
2016-01-13 18:36:00 +01:00
Boris Chiou
e02d48f8a3 Bug 1214536 - Part 3: Store the original value of fill. r=birtles
FillMode could be 'auto', and we should treat it as 'none' in the timing model.
However, AnimationEffectTimingReadOnly should get its original value.

By the way, replace mFillMode with mFill.
2016-01-13 18:36:00 +01:00
Boris Chiou
4c469c5291 Bug 1214536 - Part 2: Replace mIterationCount in layers::Animation. r=birtles
Replace mIterationCount with mIterations.
2015-12-27 18:51:00 +01:00
Boris Chiou
850ababf4d Bug 1214536 - Part 1: Use unrestricted double for iterations. r=birtles
We want to store the original value from KeyframeEffectOptions whose
iterations is unrestricted double. Therefore, we can get the original value
of iterations by AnimationEffectTimingReadOnly.

By the way, replace mIterationCount with mIterations.
2016-01-10 18:41:00 +01:00
Sotaro Ikeda
6bca25738e Bug 1237914 - Remove layers.screen-recording.enabled r=mwu 2016-01-13 20:45:57 -08:00
Nigel Babu
ca51f1ac3d Backed out 4 changesets (bug 1226826) for widespread bustage
Backed out changeset 95d373bec568 (bug 1226826)
Backed out changeset bb9970d440a4 (bug 1226826)
Backed out changeset 6c1fa0dc6bd7 (bug 1226826)
Backed out changeset 400ebf504171 (bug 1226826)
2016-01-14 08:33:11 +05:30
Nicholas Nethercote
c3523a2cbf Bug 1239225 - Remove unused args from TextureImage's constructor and related functions. r=mattwoodrow. 2016-01-12 23:10:56 -08:00
Wes Kocher
25dc74521e Backed out changeset 15145a32cd19 (bug 1231042) for b2g reftest bustage 2016-01-13 12:57:45 -08:00
Lee Salzman
6477f4d56a Bug 1230096 - fix GrAAConvexTessellator assertion. r=jrmuizel 2016-01-13 15:34:06 -05:00
Kartikaya Gupta
cb4e9783fc Bug 1226826 - Record if painted displayport updates were due to repaints from the relevant layer tree or not. r=botond 2016-01-13 15:46:08 -05:00
Kartikaya Gupta
c312cf4e59 Bug 1226826 - Record paint times in the checkerboard event. r=botond 2016-01-13 15:46:08 -05:00
Kartikaya Gupta
878863d494 Bug 1226826 - Record velocity at point of displayport request in checkerboard event. r=botond 2016-01-13 15:46:08 -05:00
Kartikaya Gupta
5bd3bf72dc Bug 1226826 - Add a CheckerboardEvent class to record stuff when checkerboarding happens. r=botond 2016-01-13 15:46:07 -05:00
Kartikaya Gupta
ccef825aea Bug 1239385 - Use correct coordinate system when computing the amount to scroll during a pinch r=botond 2016-01-13 14:44:47 -06:00
Nathan Froyd
26380db09c Bug 1222166 - use gcc/clang warning flags for clang-cl in moz.build files; r=glandium
This patch turns off a number of gcc/clang-specific warnings for
clang-cl as well, as clang-cl understands all the warning flags that
clang understands.  We currently don't turn on all the gcc/clang
warnings for clang-cl in configure, but that can be done separately, and
this patch addresses some pain points (particularly for cairo).
2015-11-05 16:05:26 -05:00
Lee Salzman
f0db1bb095 Bug 1233966 - build fixes for FreeBSD. r=jrmuizel 2016-01-13 13:22:21 -05:00
JerryShih
129f69bac0 Bug 1231042 - clean current composition task and related flag when screen off. r=hshih 2016-01-12 23:15:00 +01:00
Jonathan Kew
f3933436cd Bug 724538 - When ICU is available in the build, replace most of nsCharProps2 fields with ICU property accessors. r=emk 2016-01-13 15:45:22 +00:00
Edwin Flores
cdfab9bbdc Bug 1199923 - Work around Intel Linux driver lying about max texture size - r=jgilbert 2016-01-13 11:28:05 +00:00
Carsten "Tomcat" Book
b1b2328545 Merge mozilla-central to mozilla-inbound 2016-01-13 11:58:27 +01:00
Carsten "Tomcat" Book
0506fad16e merge mozilla-inbound to mozilla-central a=merge 2016-01-13 11:57:15 +01:00
Markus Stange
5c6a3be865 Bug 1239137 - Return early from BasicCompositor::DrawQuad if transformBounds is empty. r=mattwoodrow 2016-01-13 00:13:20 +01:00
Nicolas Silva
41a4c2a407 Bug 1238015 - Make sure PTexture actors are destroyed after all messages referring to them are sent. r=sotaro 2016-01-13 10:28:13 +01:00
Nicolas Silva
e2f86d0e39 Bug 1238743 - remove a bogus assertion in TextureClient.cpp. r=kats 2016-01-12 16:00:24 +01:00
Carsten "Tomcat" Book
b96a0845a0 Merge mozilla-central to fx-team 2016-01-12 11:57:10 +01:00
Bas Schouten
11d67b4d97 Bug 1238328: Purge stored command lists by calling EndDraw/BeginDraw on a regular basis when they're used. r=jrmuizel 2016-01-11 16:38:10 +01:00
Matt Woodrow
b4819d9fd9 Bug 1234047 - Always reuse an existing TextureClient in IMFYCbCrImage if one exist. r=Bas 2016-01-12 18:08:21 +13:00
Jamie Nicol
b8b1c0492c Bug 1223144 - Scale texture coordinates in CompositorOGL for non POT textures. r=mwoodrow 2016-01-11 11:14:07 +00:00
Phil Ringnalda
d4b36bb0ce Back out f137a421233f (bug 1234441) for build bustage
CLOSED TREE
2016-01-11 19:32:02 -08:00
Jeff Gilbert
e1352f457b Bug 1234441 - Allow malformed ESSL version string. - r=jrmuizel 2016-01-07 16:59:56 -08:00
Nicholas Nethercote
3fb50046bc Bug 1231888 - Remove AutoCairoPixmanBugWorkaround. r=jrmuizel. 2016-01-11 16:11:57 -08:00
Randall Barker
21c1a92664 Bug 1229752 - When C++ APZ scroll offset diverges from the Gecko scroll offset, it is not being applied properly to the event position r=botond,tnikkel 2016-01-11 16:06:14 -08:00
Nicholas Nethercote
7ffd79fb97 Bug 1238438 (part 3) - Inline both PathFromRegionInternal() functions. r=nical.
They both have a single call site, so aren't worth being in separate functions.
2016-01-10 16:48:55 -08:00
Nicholas Nethercote
822fecd835 Bug 1238438 (part 2) - Inline both ClipToRegionInternal() functions. r=nical.
They both have a single call site, so aren't worth being in separate functions.
2016-01-10 16:48:52 -08:00
Nicholas Nethercote
e137b92a12 Bug 1238438 (part 1) - Remove dead function gfxUtils::PathFromRegion(). r=nical. 2016-01-10 16:22:52 -08:00
Jonathan Kew
78f0829154 Bug 890156 - patch 6 - Update window placement code to work with desktop pixels, for per-monitor DPI support on Windows. r=emk 2015-12-03 13:19:50 +00:00
Jonathan Kew
9217770d7b Bug 890156 - patch 3 - Remove gfxWindowsPlatform::GetDPIScale and replace it with methods in WinUtils, ready for per-monitor DPI support. r=emk 2015-12-02 15:09:29 +00:00
Jonathan Kew
c2c031081e Bug 890156 - patch 0.3 - Create a version of nsIWidget::Create that takes Desktop pixels, because that's what we actually need to pass in some cases. r=mstange 2016-01-13 07:32:55 +00:00
Nicholas Nethercote
356e4ac265 Bug 1238846 (part 2) - Remove gfxContext::mOriginalDT, which is unused. r=mattwoodrow. 2016-01-12 13:42:02 -08:00
Jeff Gilbert
0be6ed649e Bug 1234441 - Allow malformed ESSL version string. - r=jrmuizel 2016-01-12 16:45:06 -08:00
Nicholas Nethercote
23fcd076e3 Bug 1231888 (follow-up) - Simplify CurrentSurface(). r=jrmuizel.
The previous patch in this bug removed two calls to CurrentSurface(), leaving
only one, and that one doesn't need the dx and dy arguments.
2016-01-11 16:42:09 -08:00
Bas Schouten
b55cba1139 Bug 1237375: Add some more extensive debugging information. r=milan 2016-01-08 00:59:06 +01:00
Bas Schouten
97ff2d8e74 Bug 1238028: When D2D 1.0 is not allowed disable D2D completely when not using 1.1. r=jrmuizel 2016-01-11 00:41:39 +01:00
Nicolas Silva
f7abdd62fc Bug 1235796 - Allow allocating YCbCr textures with Cb/Cr planes bigger than the Y plane. r=jrmuizel 2016-01-08 15:10:27 +01:00
Nicholas Nethercote
7240464401 Bug 1236802 (part 2) - Remove a dead CurrentSurface() call. r=mattwoodrow. 2016-01-10 14:05:27 -08:00
Nicholas Nethercote
26bade2c4c Bug 1236802 (part 1) - Moz2Dify some blur code a little. r=mattwoodrow.
gfxAlphaBoxBlur::GetInsetBlur() can be trivially passed a DrawTarget instead of
a gfxContext.

The patch also removes the DrawTarget parameter from GetBlur() because it can
be obtained from the gfxContext parameter.
2016-01-10 14:05:26 -08:00
Matt Woodrow
fa0b94e974 Bug 1231564 - Don't trigger new composites just to repaint debug overlays. r=BenWa 2016-01-11 15:12:05 +13:00
Matt Woodrow
69588c498a Bug 1231564 - Don't take the compositor side layer-tree snapshot until after compositing. r=dvander 2016-01-11 15:11:14 +13:00
Nicholas Nethercote
6b299ad225 Bug 1209812 (part 6) - Convert all gfxImageFormat values to SurfaceFormat equivalents. r=jrmuizel.
This patch:

- Makes the following substitutions (plus necessary namespace qualifiers:

    gfxImageFormat::ARGB32      --> SurfaceFormat::A8R8G8B8_UINT32
    gfxImageFormat::RGB24       --> SurfaceFormat::X8R8G8B8_UINT32
    gfxImageFormat::A8          --> SurfaceFormat::A8
    gfxImageFormat::RGB16_565   --> SurfaceFormat::R5G6B5_UINT16
    gfxImageFormat::Unknown     --> SurfaceFormat::UNKNOWN

- Changes gfxImageFormat to be a typedef to gfx::SurfaceFormat. This will be
  removed soon.

- Removes gfxCairoFormatToImageFormat() and gfxImageFormatToCairoFormat() and
  replace calls to them with CairoFormatToGfxFormat() and
  GfxFormatToCairoFormat().

- Removes ParamTraits<gfxImageFormat>.

- Add namespace qualifiers to SurfaceFormat instances where necessary.
2016-01-07 20:57:38 -08:00
Markus Stange
a5ff2e34ea Bug 1199468 - Create prefs for the smooth scroll timing function shape. r=kats 2016-01-07 21:09:18 +01:00
Alfredo Yang
1bd4376924 Bug 1224889 - OpenMax IL video decoding for PDM. r=sotaro, r=nical 2016-01-08 06:24:00 -05:00
Botond Ballo
408b340fcc Bug 1236750 - Use strongly-typed matrices to represent layer transforms in APZ code. r=kats 2016-01-04 20:07:54 -05:00
Botond Ballo
115a44ca86 Bug 1236750 - Add typed getters for layer transform matrices. r=kats 2016-01-06 18:56:58 -05:00
Botond Ballo
b717649dfa Bug 1236750 - Add some specialized typedefs of Matrix4x4 to represent layer transform matrices. r=kats
Also add a related PixelCastJustification and a utility function.
2016-01-06 18:56:25 -05:00
Botond Ballo
fc10e39e51 Bug 1236750 - Rename ViewTransform to AsyncTransform. r=kats
It's only used to represent async transforms, and making this clear
allows us to replace (in a subsequent change) its conversion operator
to Matrix4x4 with a conversion operator to a specific typed matrix.
2015-12-30 18:24:26 -05:00
Ethan Lin
e29c730e15 Bug 1235299 - Fix WebGL assertions for copyTexImage2D. r=jgilbert 2016-01-07 18:50:00 +01:00
Chris Peterson
a50607ff6b Back out 400861eb8c62 (Bug 1236323 - Part 2) for unearthing Skia -Wunreachable-code warnings-as-errors 2016-01-08 00:32:01 -08:00
Chris Peterson
800e207bc7 Bug 1236323 - Part 2: Suppress -Wimplicit-fallthrough warnings in gfx/ from Skia header files. r=nical
gfx/skia/skia/include/gpu/GrTestUtils.h:94:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
gfx/skia/skia/include/gpu/GrTypesPriv.h:181:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-11-24 09:39:04 -08:00
Chris Peterson
8ac920811f Bug 1236323 - Part 1: Annotate intentional switch fallthroughs to suppress -Wimplicit-fallthrough warnings in gfx/. r=nical
gfx/thebes/gfxFcPlatformFontList.cpp:706:9: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
gfx/thebes/gfxFontconfigFonts.cpp:2183:9: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
gfx/2d/DrawTargetCG.cpp:812:5: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
gfx/2d/DrawTargetCairo.cpp:636:5: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
2015-11-24 09:39:04 -08:00
Nicholas Nethercote
84b71404df Bug 1237151 (part 3) - Remove ignored qualifiers in all remaining code. r=froydnj. 2016-01-05 17:08:45 -08:00
Tooru Fujisawa
077a5fb32b Bug 382721 - Part 0: Add missing includes and namespaces. r=jrmuizel 2015-09-10 19:24:34 +09:00
Morris Tseng
12fc2c6f9d Bug 917505 - Add WEBGL_compressed_texture_es3 support. r=jgilbert r=smaug 2016-01-08 10:12:22 +08:00
Kartikaya Gupta
872332b3f9 Bug 1235994 - For wheel events which may have momentum following them, handle scroll snapping in APZ. r=mstange 2016-01-07 10:39:46 -05:00
Kartikaya Gupta
bbeb5a72e5 Bug 1235994 - Extract a helper function to request a snap to the predicted destination. r=botond 2016-01-07 10:39:13 -05:00
Nicolas Silva
22bd281a42 Bug 1221056 - Make the destroy messages for PTexture and PCompositable part of the current transaction when applicable. r=sotaro 2016-01-07 11:17:40 +01:00
Nicholas Nethercote
53cc3e107f Bug 1237448 - Moz2Dify two functions in gfxSurfaceDrawable. r=roc. 2016-01-06 18:26:33 -08:00
John Daggett
730505b53a Bug 1157064 - implementation of font-display. r=heycam,khuey 2016-01-07 14:03:05 +09:00
John Daggett
6089fa9103 Bug 1157064 - font-display descriptor parsing. r=dbaron 2016-01-07 14:02:58 +09:00
Kartikaya Gupta
36bf103636 Bug 1219352 - Pack the FrameMetrics booleans. r=botond 2016-01-06 20:50:01 -05:00
Kartikaya Gupta
9382f48fdf Bug 1219352 - Rearrange fields in FrameMetrics. r=botond
This patch:
- Maintains a consistent ordering between the lists of fields in the
  FrameMetrics constructor, operator==, IPC read/write functions, and the
  actual order of fields in FrameMetrics. As part of this, missing default
  initializers are added to the FrameMetrics constructor, and fields omitted
  from the operator== are explicitly noted.
- Moves all the boolean values to the end of the set of field (for better
  packing).
- Moves the scroll id and parent scroll id to the front of the list, so that
  the operator== can fail faster in the common case.
2016-01-06 20:50:01 -05:00
Kartikaya Gupta
217d85f975 Bug 1219352 - Update a couple of bool-setters to take a bool argument. r=botond 2016-01-06 20:50:01 -05:00
kearwood
b79965bb59 Bug 1230352 - Update to Oculus SDK 0.8.0,r=vlad 2015-09-22 09:38:28 -04:00
Nicholas Nethercote
70cc5ef746 Bug 1231881 - Remove NativeSurfaceType::CAIRO_SURFACE. r=bas.
We have both NativeSurfaceType::CAIRO_CONTEXT and
NativeSurfaceType::CAIRO_SURFACE. They both refer to DrawTargets with Cairo
backends. The only reason for having both is so you can call GetNativeSurface()
and get either the |cairo_t*| or the underlying |cairo_surface_t*|.

I argue that this convenience confuses things more than it helps. This patch
removes CAIRO_SURFACE, and adds explicit cairo_get_target() calls where
necessary.
2016-01-05 14:24:08 -08:00
Jean-Yves Avenard
5c97dc2f96 Bug 1236167: P1. Do not attempt to destroy a non allocated surface. r=nical 2016-01-07 09:30:32 +11:00
Mason Chang
1191c6a5de Bug 842894 - Support DirectWrite using the Skia backend. r=bas 2016-01-06 11:35:04 -08:00
Bill McCloskey
502696760b Bug 1236266 - Use release assert in IPC serialization for regions (r=jmuizelaar) 2016-01-06 10:22:54 -08:00
Bill McCloskey
46c93eb36a Bug 1236266 - Don't generate invalid empty regions in pixman (r=jmuizelaar) 2016-01-06 10:22:54 -08:00
Ryan VanderMeulen
338175e6c4 Merge m-c to inbound. a=merge 2016-01-06 09:50:26 -05:00
Ryan VanderMeulen
0774f4bb2d Merge inbound to m-c. a=merge 2016-01-06 09:43:47 -05:00
Johan Lorenzo
67aa22b878 Backout Bug 1221056 - make the destroy messages for PTexture and PCompositable part of the current transaction when applicable. r=sotaro
For breaking Firefox OS boot startup (see bug 1237197)
2016-01-06 14:59:35 +01:00
Nicholas Nethercote
0b7c26e0c9 Bug 1234343 (part 2) - Add a missing GfxMemoryImageReporter::DidAlloc() call. r=Bas. 2016-01-05 18:26:29 -08:00
Nicholas Nethercote
6bbb6f7293 Bug 1234343 (part 1) - Make GfxMemoryImageReporter::sAmount signed. r=Bas.
This is so that if it goes negative (due to missing DidAlloc() calls) it shows
up in about:memory as a negative number, rather than a huge positive number.
2016-01-05 18:26:17 -08:00
Nigel Babu
3ddeb5fc07 Backed out changeset ad7bcc14bc9c (bug 1236266) for causing perma leaks 2016-01-06 14:02:58 +05:30
Nigel Babu
e5f7f5babc Backed out changeset 38405f32bcbc (bug 1236266) 2016-01-06 14:02:50 +05:30
Nigel Babu
ceb93f7599 Backed out changeset 39aca33612f1 (bug 1236266) 2016-01-06 14:02:47 +05:30
Bill McCloskey
13f274e568 Bug 1236266 - Fix up review comment (r=jmuizelaar) 2016-01-05 22:10:40 -08:00
Bill McCloskey
af744a71c9 Bug 1236266 - Don't generate invalid empty regions in pixman (r=jmuizelaar) 2016-01-05 21:59:46 -08:00
Bill McCloskey
0d1af2d1df Bug 1236266 - Use release assert in IPC serialization for regions (r=jmuizelaar) 2016-01-05 21:59:46 -08:00
Bas Schouten
4e5cb504a2 Bug 1220629 - Part 6: Implement PushLayer/PopLayer API in several wrapper DT types. r=jrmuizel 2016-01-06 00:23:33 +01:00
Bas Schouten
48b064c349 Bug 1220629 - Part 5: Implement PushLayer/PopLayer API for Direct2D 1.1. r=jrmuizel 2016-01-06 00:23:29 +01:00
Bas Schouten
78555e1171 Bug 1220629 - Part 4: Allow gfxContext to use the native pushlayer implementations based on a pref. r=jrmuizel 2016-01-06 00:04:42 +01:00
Bas Schouten
e1f372f355 Bug 1220629 - Part 3: Implement PushLayer/PopLayer API in cairo. r=jrmuizel 2016-01-06 00:04:38 +01:00
Bas Schouten
413175f223 Bug 1220629 - Part 2: Prepare DrawTargetD2D1 for the possibilities of layers existing inside it. r=jrmuizel 2016-01-05 09:03:08 +01:00
Bas Schouten
c2450768f8 Bug 1220629 - Part 1: Add PushLayer/PopLayer API to DrawTarget baseclass. r=jrmuizel 2016-01-05 09:00:59 +01:00
Nicolas Silva
92691d9b3e Bug 1236167 - Don't attempt to take a compositor snapshot if parameters are incorrect. r=jrmuizel 2016-01-06 13:56:00 +01:00
Sotaro Ikeda
66491f2195 Bug 1234472 - Add gonk sideband stream handling to gfx ipc r=nical 2016-01-05 20:50:39 -08:00
Nicolas Silva
ed1feb1663 Bug 1221056 - make the destroy messages for PTexture and PCompositable part of the current transaction when applicable. r=sotaro 2016-01-05 14:03:26 +01:00
Bob Owen
4e9d01b50e Bug 1156742 Part 24: Add new Recorded event to record font data. r=bas
We create and destroy ScaledFonts for every piece of text we write.
That causes a huge amount of duplicated data within the recording.
This splits out the recording of the font data itself from the ScaledFont.
The key generated to determine uniqueness could probably be fairly easily faked, but for our purposes that doesn't matter.
2016-01-05 10:08:58 +00:00
Bob Owen
b404b040d2 Bug 1156742 Part 22: Change ScaledFontDWrite to support creation from TrueType Collection data. r=bas 2016-01-05 10:08:58 +00:00
Bob Owen
f2b447a6b1 Bug 1156742 Part 21: Use GetDirect3D11Device instead of DrawTargetD2D::GetDWriteFactory to determine if DWrite fonts should be used. r=Bas
This method will allow for acceleration being disabled through prefs and blacklisting.
2016-01-05 10:08:58 +00:00
Bob Owen
a91c187fe1 Bug 1156742 Part 20: Move Moz2D PreferenceAccess into its own header. r=bas
This is so we can add a new preference in Part 21, which has nothing to do with logging.
2016-01-05 10:08:58 +00:00
Bob Owen
5e43b7e89e Bug 1156742 Part 19: Implement GetFontFileData for ScaledFontWin. r=bas 2016-01-05 10:08:58 +00:00
Bob Owen
5f7e78b0e5 Bug 1156742 Part 18: Fix the way we hold custom font data so that they can be recorded with Moz2D. r=bas 2016-01-05 10:08:57 +00:00
Bob Owen
a977d7021b Bug 1156742 Part 17: Add virtual destructor to RecorededEvent and fix subsequent crash with DWrite playback fonts. r=bas 2016-01-05 10:08:57 +00:00
Bob Owen
f485f391e2 Bug 1156742 Part 16: Add recording and forwarding of Matrix attribute set for Moz2D recording. r=bas 2016-01-05 10:08:57 +00:00
Bob Owen
81182ae189 Bug 1156742 Part 13: Create a Moz2D PrintTranslator. r=bas
A better solution to the ScaledFonts issue comes in Part 24.
2016-01-05 10:08:57 +00:00
Bob Owen
c1ec919108 Bug 1156742 Part 12: Record CreateSimilarDrawTarget separately for Moz2D. r=bas
This is so we can create the real print DrawTarget from our nsDeviceContext at the beginning of each page.
Default behaviour for other Translators is still to always use CreateSimilarDrawTarget.
2016-01-05 10:08:57 +00:00
Bob Owen
00e78ab6fc Bug 1156742 Part 9: Add a new nsIDeviceContextSpec for proxied printing. r=roc
This also changes aPrintToFileName parameter for BeginDocument to an nsAString& from char16_t*.
Having a char16_t* caused a pain with VS2105 where wchar_t != char16_t (as on VS2103), after it had been sent over IPDL.
This could have been worked around with casting, but this seemed like the tidier solution.
2016-01-05 10:08:57 +00:00
Bob Owen
3e8e2fd0de Bug 1156742 Part 8: Change gfxWindowsSurface, so that a non-printing surface can be used when recording a print. r=roc 2016-01-05 10:08:57 +00:00
Bob Owen
2a789531dc Bug 1156742 Part 7: Refactor nsDeviceContext.cpp to use printing surface for size and nsIDeviceContextSpec for DPI and scale. r=roc
These changes are to make using an off screen surface behind our DrawTarget in the child easier.
It still creates the real printing surface for some of the calculations,
removing this will be required for future tightening of the sandbox.
2016-01-05 10:08:57 +00:00
Bob Owen
48b4f879b0 Bug 1156742 Part 4: Add an in memory DrawEventRecorder. r=bas 2016-01-05 10:08:57 +00:00
Bob Owen
d7e1244534 Bug 1156742 Part 3: Add support for FontType::CAIRO to CreateScaledFontForTrueTypeData on Windows. r=bas
Parts of this change and related code get moved around in Part 24.
2016-01-05 10:08:56 +00:00
Bob Owen
aed3248d77 Bug 1156742 Part 2: Make gfx thebes/gl/2d work with UNICODE defined. r=bas, r=glandium 2016-01-05 10:08:56 +00:00
Bob Owen
cda43c3626 Bug 1156742 Part 1: Change Moz2D recording, so that it can be used in isolation. r=bas
These are mainly changes to make sure we have recorded relevant dependencies to each draw operation.
Where we can't record them on the fly like this, it makes sure the object has originated from our DrawTarget.
2016-01-05 10:08:56 +00:00
Bob Owen
61568fd22f Bug 1234566: Use LoadLibraryA instead of LoadLibrary in some skia Windows code to allow UNICODE to be defined. r=lsalzman
Patch already landed upstream on skia in commit 7a897c0f796df0a1c5b4ee5930b29bfed17ad1b4.
2016-01-05 10:08:56 +00:00
Milan Sreckovic
d254092d20 Bug 1235858 - Record the time stamp, use it for crash reports. r=botond 2015-12-30 11:47:00 +01:00
Bogdan Postelnicu
3c1e67443e Bug 1228507 - Initialize mBlendOpacity. r=Bas 2015-11-27 00:10:00 -05:00
Nicholas Nethercote
88dd3dcc0e Bug 1232219 (part 4) - Enable -Wunused for C code, except where it's too annoying. r=glandium. 2015-12-16 22:59:42 -08:00
Botond Ballo
eebc46e9ee Bug 1194851 - Add helper functions HasDisplayPort() and HasCriticalDisplayPort(). r=kats
This makes it clearer whether we're just checking if a displayport exists,
or we're actually consuming its value.
2015-12-16 17:22:23 -05:00
Nicholas Nethercote
102bc2324f Bug 1231550 - Use DrawTarget instead of gfxContext and/or nsRenderingContext in many places in font/text code. r=jfkthame.
AutoTextRun now only needs a DrawTarget instead of an nsRenderingContext, and
similar nsRenderingContext/gfxContext-to-DrawTarget replacements can be
propagated a long way up the call graph. This patch replaces 93 occurrences of
nsRenderingContext and 135 occurrences of gfxContext with DrawTarget; that's
13% of them.

The patch is mostly plumbing changes. A couple of not-entirely-plumbing
changes:

- It adds a comment about the null check in
  gfxGlyphExtents::GetTightGlyphExtentsAppUnits().

- A couple of functions simply had an unused gfxContext or nsRenderingContext
  parameter removed, e.g. SetLineBreaks().
2015-12-15 13:56:41 -08:00
Nicholas Nethercote
fa60969e08 Bug 1228211 (part 2) - Remove unused functions in nsRenderingContext. r=dholbert.
The following functions in nsRenderingContext are unused and this patch removes
them: the zero-arg constructor, the |DrawTarget*| constructor, and both Init()
functions.
2015-11-25 14:34:57 -08:00
Milan Sreckovic
ae119212a2 Bug 1232231 - BorrowDrawTarget can return nullptr - be ready for it. r=nical 2016-01-04 09:50:00 -05:00
Nicholas Nethercote
04b39cc644 Bug 1233619 (part 2) - Moz2Dify BeginUpdate() and BeginUpdateBackground() functions. r=roc.
The only non-trivial change is in BasicPaintedLayer::Validate().
2015-12-17 19:39:10 -08:00
Nicholas Nethercote
ac23e93229 Bug 1233619 (part 1) - Remove unneeded gfxContext argument from EndUpdate() and EndUpdateBackground() functions. r=roc. 2015-12-17 19:39:09 -08:00
Jeff Gilbert
605ef57d59 Bug 1236762 - Simplify locking APIs for SharedSurface. - r=jrmuizel 2016-01-05 15:57:44 -08:00
Wes Kocher
381a901015 Backed out changeset e22122a3bf90 (bug 1232231) for possibly breaking weightmapping-12579.html CLOSED TREE 2016-01-05 16:48:49 -08:00
Milan Sreckovic
5570778a9c Bug 1232231 - BorrowDrawTarget can return nullptr - be ready for it. r=nical 2016-01-04 09:50:00 -05:00
Milan Sreckovic
d05e04947d Bug 1235613 - Make gfxCriticalError/Note strings in gfx/ unique. r=jrmuizel 2015-12-29 14:03:58 -05:00
Lee Salzman
631f895491 Bug 1229983 - verify that paths are finite in DrawTargetSkia::Stroke/Fill to handle Canvas paths containing infs. r=jmuizelaar 2015-12-30 13:39:13 -05:00
Andrea Marchesini
da5c7a3c74 Bug 1231378 - part 2 - Fix uninitialized members of classes in dom/*, r=smaug 2016-01-12 18:16:59 +00:00
Jim Mathies
0be330ab01 Bug 1193055 - Follow up, remove extraneous methods noted in review comments. r=followup 2016-01-12 11:32:12 -06:00
Markus Stange
24a23d06b0 Bug 1238753 - Don't skip the call to StartRemoteDrawing in from BasicCompositor::BeginFrame if the invalid region is empty. r=mattwoodrow
Sometimes we need a composition even if nothing has changed, for example for window resizes on Mac.
LayerManagerComposite::UpdateAndRender() already has a check that skips the call to BasicCompositor
if it's not necessary.
2016-01-12 13:27:14 +01:00
Markus Stange
7817e83ddd Bug 1238753 - Make BasicCompositor respect changes to mInvalidRegion through StartRemoteDrawingWithRegion properly. r=mattwoodrow 2016-01-12 13:14:42 +01:00
Markus Stange
c0bc3823b1 Bug 1236282 - Clip color layer drawing in BasicCompositor so that unbounded operators don't erase stuff outside the layer. r=Bas
The same as bug 1077358, but for BasicCompositor.
2016-01-12 12:47:36 +01:00
Jim Mathies
78d667ae1f Bug 1193055 - Update windowed plugin visibility in response to apz scroll in the chrome process vs. relying on a full round trip through content. Reduces lag in windowed plugin updates. r=kats 2016-01-12 11:05:58 -06:00
Kartikaya Gupta
9e2bab91e4 Bug 1193055 - Only fire TransformBegin/TransformEnd notifications for actual wheel animations. r=botond 2016-01-12 11:05:53 -06:00
Carsten "Tomcat" Book
72d5b69443 Backed out changeset 5f6a58676e87 (bug 1231378) 2016-01-12 15:48:57 +01:00
Nicholas Nethercote
fb3ce76d6e Bug 1232822 (part 6) - Move RefCairo() from gfxContext to gfxFont. r=jfkthame.
Because gfxContext will one day disappear, and gfxFont seems like a good place
to move it to.
2015-12-15 20:10:04 -08:00
Nicholas Nethercote
bfe183c4dc Bug 1232822 (part 5) - Moz2Dify GetRoundOffsetsToPixels(). r=jfkthame.
Make GetRoundOffsetsToPixel() take a DrawTarget instead of a gfxContext. This
requires moving it into gfxFontShaper. The only change of note within the
function is the use of aDrawTarget->GetTransform().HasNonTranslation() instead
of CurrentMatrix().HasNonTranslation().
2015-12-15 13:56:40 -08:00
Nicholas Nethercote
2b1f68ad75 Bug 1232822 (part 4) - Remove unused argument from SetPotentialLineBreaks(). r=jfkthame. 2015-12-15 13:56:40 -08:00
Nicholas Nethercote
8f6a096096 Bug 1232822 (part 3) - Moz2Dify gfxFont::CalcXScale() and gfxFont::PostShapingFixup(). r=jfkthame.
This boils down to these two lines being equivalent:

  Size t = aContext->UserToDevice(Size(1.0, 0.0));
  Size t = aDrawTarget->GetTransform() * Size(1.0, 0.0);

The rest is just plumbing.
2015-12-15 13:56:40 -08:00
Nicholas Nethercote
96982a7ab1 Bug 1232822 (part 2) - Moz2Dify SetupGlyphExtents(). r=jfkthame.
The gfxContextMatrixAutoSaveRestore in SetupGlyphExtents() is now obviously not
needed, and the rest is trivial.
2015-12-15 13:56:40 -08:00
Nicholas Nethercote
9979226ab1 Bug 1232822 (part 1) - Moz2Dify SetupCairoFont(). r=jfkthame.
This is now trivial.
2015-12-15 13:56:40 -08:00
Nicholas Nethercote
d3fbd6b72e Bug 1233605 - Cull some uses of gfxContext. r=dholbert. 2015-12-17 19:36:09 -08:00
Kearwood (Kip) Gilbert
1eb82a820b Bug 1235740 - Remove warning for missing Oculus VR Library from terminal output, as it is spammy and not necessary r=dholbert 2015-12-30 16:26:37 -08:00
Kearwood (Kip) Gilbert
5ef7afe3d8 Bug 1235803 - Remove erroneous assertion r=dholbert
- Removed an unnecessary assertion that was erroneously triggering
  on shutdown in B2G Mochitests.
2015-12-30 14:46:38 -08:00
Mike Hommey
0c3d01c934 Bug 1235738 - Move MOZ_DEBUG_DEFINES to build frontend. r=gps
MOZ_DEBUG_DEFINES are essentially defines used everywhere. So treat them as
feeding the initial value for DEFINES in each moz.build sandbox. This allows
the kind overrides that was done in the past by resetting MOZ_DEBUG_DEFINES
in Makefiles.
2015-12-31 07:27:23 +09:00
Jonathan Kew
80febde51d Bug 739117 - Avoid bidi-wrapping the text to be shaped if Core Text direction override API is available. r=jdaggett 2015-12-30 20:29:48 +00:00
Lee Salzman
59c6c1eba4 Bug 1234494 - part 1 - don't build in Skia GPU code if support is disabled, r=jrmuizel 2015-12-30 12:17:32 -05:00
Sebastian Hengst
72943a096d Backed out changeset 21607399e25e (bug 1229983) for failing own R(C) test. r=backout 2015-12-30 15:00:44 +01:00
Jean-Yves Avenard
755398aaa3 Bug 1223193: P2. Cancel ImageBridge proxy functions if shutdown has started. r=nical 2015-12-30 16:52:41 +11:00
Jean-Yves Avenard
c4d7d62e4f Bug 1223193: P1. Make ImageBridgeChild::mShuttingDown atomic. r=nical 2015-12-30 15:13:19 +11:00
Nicolas Silva
ad4a38c0f6 Bug 1176024 - Have TextureClient::Lock check that it can expose a DrawTarget when it makes sense. r=Bas 2015-12-30 13:23:01 +01:00
Bas Schouten
7db954445a Bug 1227210: Ensure the mask and the surface are in the right space when being blended. r=mattwoodrow 2015-11-26 15:51:49 +01:00
Lee Salzman
23a33247c6 Bug 1229983 - verify that paths are finite in DrawTargetSkia::Stroke/Fill to handle Canvas paths containing infs. r=jmuizelaar 2015-12-16 17:53:11 -05:00
Bas Schouten
7cb26625bc Bug 1235407 - Part 3: Force a reset when OpenSharedHandle fails. r=milan 2015-12-30 01:30:47 +01:00
Bas Schouten
6767b4d57e Bug 1235407 - Part 2: Add ability to force device resets through gfxWindowsPlatform. r=milan 2015-12-30 01:30:47 +01:00
Bas Schouten
f3ad13a26f Bug 1235407 - Part 1: Add telemetry probe to record forced resets. r=milan 2015-12-30 01:30:47 +01:00
Lee Salzman
9d9fed1ad6 Bug 1234419 - remove unnecessary -fkeep-inline-functions from Skia moz.build, r=jrmuizel 2015-12-29 16:20:01 -05:00
Kearwood (Kip) Gilbert
981e751dd9 Bug 1182048 - Part 2: Implement e10s support for WebVR,r=vlad 2015-09-17 14:23:13 -07:00
Carsten "Tomcat" Book
334f7af1db Backed out changeset c1f17f489417 (bug 1176024) for crashes 2015-12-29 14:29:09 +01:00
Nicolas Silva
cc2f8fe4bf Bug 1176024 - Have TextureClient::Lock check that it can expose a DrawTarget when it makes sense. r=Bas 2015-12-29 13:05:50 +01:00
Markus Stange
4594d23b6f Bug 1187322 - Fix bustage. 2015-12-29 12:13:24 +01:00
Markus Stange
f11502c5a5 Bug 1187322 - Don't require accelerated OpenGL contexts for BasicCompositor on OS X. r=jrmuizel 2015-12-23 16:22:55 +01:00
Jonathan Kew
0242588b7e Backed out changeset a7c9fc3f1701 (bug 739117) for unexpected Core Text crashes. 2015-12-29 09:08:24 +00:00
Sotaro Ikeda
a9b4458f6d Bug 1205713 - Merge ImageHostOverlay/ImageClientOverlay to ImageHost/ImageClient r=nical 2015-12-29 01:07:33 -08:00
Jonathan Kew
fae680920b Bug 739117 - Avoid bidi-wrapping the text to be shaped if Core Text direction override API is available. r=jdaggett 2015-12-29 08:23:28 +00:00
Phil Ringnalda
e7e0353517 Bug 1226751 - Remove 358732-* crashtests, since they only race between not testing anything and accidentally setting and leaving a non-default font zoom, breaking later tests 2015-12-28 20:41:46 -08:00
Xidorn Quan
2b30c948f9 Bug 1234418 - Not trust glyph run starts from a cluster start character. r=jfkthame 2015-12-29 10:52:06 +11:00
Wes Kocher
9752a0c747 Backed out changeset 3242bee2d956 (bug 1234418) for windows build bustage 2015-12-28 15:32:12 -08:00
Xidorn Quan
7a2729feb1 Bug 1234418 - Not trust glyph run starts from a cluster start character. r=jfkthame 2015-12-29 09:48:37 +11:00
Xidorn Quan
1dbf997437 Bug 1195788 - Set arithmetic composite clamp to true for D2D filter node. r=bas 2015-12-29 09:48:37 +11:00
Carsten "Tomcat" Book
547073fb7a Backed out changeset d569d015069d (bug 1176024) for crashes 2015-12-28 12:07:16 +01:00
Nicolas Silva
b77a187126 Bug 1176024 - Have TextureClient::Lock check that it can expose a DrawTarget when it makes sense. r=Bas 2015-12-28 10:46:25 +01:00
Kartikaya Gupta
e8da661bb6 Bug 1234950 - When advancing APZ animations, use the next vsync timestamp instead of the current one, since that is what will be composited. r=mstange 2015-12-27 10:20:40 -05:00
Kartikaya Gupta
3c0137fe4c Bug 1234950 - Advance APZ animations after updating the layer shadow transforms, rather than before. r=mstange 2015-12-27 10:20:40 -05:00
Markus Stange
1ca8155df0 Bug 1235223 - Fix typos in layers history document. 2015-12-27 11:41:44 +01:00
Jeff Muizelaar
38d0e4c79d Bug 1235223. Update history document. 2015-12-26 18:19:59 -05:00
Bas Schouten
1fdb4c45f5 Bug 1107792: Don't ask for similar if the surface has an error, and more data in crash reports. r=milan 2015-12-24 12:55:36 -05:00
Jim Chen
50d4f93a61 Bug 1232456 - Renew EGL surface using existing compositor widget; r=snorp
GLContextEGL needs a widget in order to recreate its surface. This patch
adds a widget parameter to RenewSurface so that the compositor can pass
in its widget.
2015-12-23 22:03:35 -05:00
Jim Chen
eefbe86eb5 Bug 1232456 - Create EGL surface through widget; r=snorp
This patch makes GLContextProviderEGL create EGL surfaces through
nsWindow/nsIWidget on Android. nsWindow then calls GLController in Java
to actually create the surface.
2015-12-23 22:03:34 -05:00
Benoit Girard
cc6a26529b No bug - Don't update 'webgl.dxgl.enabled' at runtime. 2015-12-23 14:55:22 -05:00
Bogdan Postelnicu
21ed9ea4b4 Bug 1232665 - initialize class members: mLastPrefLang and mLastPrefFirstFont. r=jfkthame 2015-12-15 06:58:00 +01:00
Jan Horak
4e9f1b175b Bug 1205643 - "Wrong scrollbar border prevents scrolling to cursor when mouse is on the screen edge". r=karlt 2015-12-22 05:05:00 +01:00
Kartikaya Gupta
a2cc833643 Bug 1192919 - Follow-up to fix build error with logging enabled. r=me and DONTBUILD 2015-12-22 15:12:53 -05:00
Markus Stange
da8a15a0ef Bug 1147673 - Relax the ancestor transform assertion a little. r=kats 2015-12-22 17:06:04 +01:00
Botond Ballo
229b249ea5 Bug 1147673 - Determine more accurately whether an async transform affects a layer's clip rect. r=kats 2015-10-02 18:35:21 -04:00
Markus Stange
9f00ee2d6f Bug 1147673 - Unadjust clip before intersecting it with the scroll clip. r=botond 2015-10-09 14:30:44 +02:00
Bas Schouten
b4adcdba2a Bug 1072501: Unmap file mapping on source surface destruction. r=jrmuizel 2015-12-01 16:41:08 +01:00
Wes Kocher
f01fa1274c Backed out 25 changesets (bug 1156742) for build bustage in SkOSLibrary_win.cpp CLOSED TREE
Backed out changeset 31c0aadae8e7 (bug 1156742)
Backed out changeset f08df57ff700 (bug 1156742)
Backed out changeset 90c026d5dcb1 (bug 1156742)
Backed out changeset 8c6d14d80238 (bug 1156742)
Backed out changeset 72d86b0471c9 (bug 1156742)
Backed out changeset 363829accc09 (bug 1156742)
Backed out changeset 16360fe94d54 (bug 1156742)
Backed out changeset 5355c636a81a (bug 1156742)
Backed out changeset 18844d26b873 (bug 1156742)
Backed out changeset 99df86591613 (bug 1156742)
Backed out changeset 7ac1c7e15a11 (bug 1156742)
Backed out changeset de352000aae1 (bug 1156742)
Backed out changeset 4dd34ea230c6 (bug 1156742)
Backed out changeset 48c6ce65a5c2 (bug 1156742)
Backed out changeset dd52947f73c6 (bug 1156742)
Backed out changeset 5fe429ee880c (bug 1156742)
Backed out changeset dedca8fb19b0 (bug 1156742)
Backed out changeset d748b1354f92 (bug 1156742)
Backed out changeset 7f8e59588518 (bug 1156742)
Backed out changeset b90d302c57f6 (bug 1156742)
Backed out changeset 7a4da453572c (bug 1156742)
Backed out changeset a40eea914519 (bug 1156742)
Backed out changeset 99a8859afcdb (bug 1156742)
Backed out changeset 4934e88b2d7a (bug 1156742)
Backed out changeset 79733166f05e (bug 1156742) for build bustage in SkOSLibrary_win.cpp CLOSED TREE
2015-12-21 13:47:33 -08:00
Bob Owen
b2a6fc1a30 Bug 1156742 Part 24: Add new Recorded event to record font data. r=bas
We create and destroy ScaledFonts for every piece of text we write.
That causes a huge amount of duplicated data within the recording.
This splits out the recording of the font data itself from the ScaledFont.
The key generated to determine uniqueness could probably be fairly easily faked, but for our purposes that doesn't matter.
2015-12-21 20:33:14 +00:00
Bob Owen
25c40acb6c Bug 1156742 Part 22: Change ScaledFontDWrite to support creation from TrueType Collection data. r=bas 2015-12-21 20:33:14 +00:00
Bob Owen
7b797524e1 Bug 1156742 Part 21: Use GetDirect3D11Device instead of DrawTargetD2D::GetDWriteFactory to determine if DWrite fonts should be used. r=Bas
This method will allow for acceleration being disabled through prefs and blacklisting.
2015-12-21 20:33:14 +00:00
Bob Owen
eee890084b Bug 1156742 Part 20: Move Moz2D PreferenceAccess into its own header. r=bas
This is so we can add a new preference in Part 21, which has nothing to do with logging.
2015-12-21 20:33:14 +00:00
Bob Owen
8737e13282 Bug 1156742 Part 19: Implement GetFontFileData for ScaledFontWin. r=bas 2015-12-21 20:33:14 +00:00
Bob Owen
7ce940ef31 Bug 1156742 Part 18: Fix the way we hold custom font data so that they can be recorded with Moz2D. r=bas 2015-12-21 20:33:14 +00:00
Bob Owen
234f6dd52c Bug 1156742 Part 17: Add virtual destructor to RecorededEvent and fix subsequent crash with DWrite playback fonts. r=bas 2015-12-21 20:33:14 +00:00
Bob Owen
ac55a08090 Bug 1156742 Part 16: Add recording and forwarding of Matrix attribute set for Moz2D recording. r=bas 2015-12-21 20:33:14 +00:00
Bob Owen
f7f010b245 Bug 1156742 Part 13: Create a Moz2D PrintTranslator. r=bas
A better solution to the ScaledFonts issue comes in Part 24.
2015-12-21 20:33:13 +00:00
Bob Owen
1b31097e0e Bug 1156742 Part 12: Record CreateSimilarDrawTarget separately for Moz2D. r=bas
This is so we can create the real print DrawTarget from our nsDeviceContext at the beginning of each page.
Default behaviour for other Translators is still to always use CreateSimilarDrawTarget.
2015-12-21 20:33:13 +00:00
Bob Owen
13cbcd9ebb Bug 1156742 Part 9: Add a new nsIDeviceContextSpec for proxied printing. r=roc
This also changes aPrintToFileName parameter for BeginDocument to an nsAString& from char16_t*.
Having a char16_t* caused a pain with VS2105 where wchar_t != char16_t (as on VS2103), after it had been sent over IPDL.
This could have been worked around with casting, but this seemed like the tidier solution.
2015-12-21 20:33:13 +00:00
Bob Owen
892d140979 Bug 1156742 Part 8: Change gfxWindowsSurface, so that a non-printing surface can be used when recording a print. r=roc 2015-12-21 20:33:13 +00:00
Bob Owen
72e51a192a Bug 1156742 Part 7: Refactor nsDeviceContext.cpp to use printing surface for size and nsIDeviceContextSpec for DPI and scale. r=roc
These changes are to make using an off screen surface behind our DrawTarget in the child easier.
It still creates the real printing surface for some of the calculations,
removing this will be required for future tightening of the sandbox.
2015-12-21 20:33:13 +00:00
Bob Owen
4695403059 Bug 1156742 Part 4: Add an in memory DrawEventRecorder. r=bas 2015-12-21 20:33:13 +00:00
Bob Owen
f07e9067d9 Bug 1156742 Part 3: Add support for FontType::CAIRO to CreateScaledFontForTrueTypeData on Windows. r=bas
Parts of this change and related code get moved around in Part 24.
2015-12-21 20:33:13 +00:00
Bob Owen
8b79d65f9b Bug 1156742 Part 2: Make gfx thebes/gl/2d work with UNICODE defined. r=bas, r=glandium 2015-12-21 20:33:13 +00:00
Bob Owen
d5d7b66a4b Bug 1156742 Part 1: Change Moz2D recording, so that it can be used in isolation. r=bas
These are mainly changes to make sure we have recorded relevant dependencies to each draw operation.
Where we can't record them on the fly like this, it makes sure the object has originated from our DrawTarget.
2015-12-21 20:33:12 +00:00
David Anderson
eda3962b1a Remove the TaskThrottler. (bug 1192919 part 6, r=kats) 2015-12-21 09:36:36 -05:00
David Anderson
a0b36b41ba Dispatch all APZ repaint requests immediately, and rely on content vsync. (bug 1192919 part 5, r=kats) 2015-12-21 09:36:36 -05:00
David Anderson
6eb67c2d10 Turn apz.use_paint_duration off. (bug 1192919 part 4, r=kats) 2015-12-21 09:36:36 -05:00
David Anderson
41260a5866 Force a paint to be scheduled for scroll info layers. (bug 1192919 part 3, r=kats) 2015-12-21 09:36:36 -05:00
David Anderson
0841696e19 Minimize the displayport for frames that must animate synchronously. (bug 1192919 part 2, r=kats) 2015-12-21 09:36:36 -05:00
David Anderson
a9ae6c3924 Annotate FrameMetrics that are created for ScrollInfoLayers. (bug 1192919 part 1, r=kats) 2015-12-21 09:36:36 -05:00
Nicolas Silva
6a9d93c630 Bug 1228952 - Move texture metadata out of the BufferTextureClient/Host's buffer. r=Sotaro 2015-12-16 19:50:58 +01:00
Milan Sreckovic
4b7e54dd77 Bug 1230740 - wallpaper patch for a missing nullptr scenario. r=bas 2015-12-14 13:11:00 +01:00
Jeff Muizelaar
de7c7b3be2 Bug 1218881. Enforce queries' new availability semantics. r=jgilbert
This adds a Runnable that we dispatch to the event loop so that we can make
sure queries don't become available before they are supposed to.
2015-12-18 17:05:42 -05:00
Wes Kocher
a376f81d07 Backed out changeset cdc2bfed4faa (bug 1218881) for static build bustage CLOSED TREE 2015-12-18 12:43:42 -08:00
Jeff Muizelaar
668c8b1285 Bug 1218881. Enforce queries' new availability semantics. r=jgilbert
This adds a Runnable that we dispatch to the event loop so that we can make
sure queries don't become available before they are supposed to.
2015-12-18 14:40:08 -05:00
Lee Salzman
70f0fb7992 Bug 1082598 - Part 8: Fix OpenGL interface glue for Skia update. r=jrmuizel 2015-12-18 13:53:25 -05:00
Lee Salzman
cabac21a89 Bug 1082598 - Part 7: Update moz.build for Skia update. r=jrmuizel 2015-12-18 13:53:25 -05:00
Lee Salzman
68da4ce3bc Bug 1082598 - Part 6: Fix layers for Skia update. r=jrmuizel 2015-12-18 13:53:25 -05:00
Lee Salzman
8ce73eb9e5 Bug 1082598 - Part 4: Workaround for naming conflict in unified sources for Skia and thebes DWrite fonts. r=jrmuizel 2015-12-18 13:53:25 -05:00
Lee Salzman
b5fe4fbbb7 Bug 1082598 - Part 3: Fix thebes gfxPlatform shutdown for Skia. r=jrmuizel 2015-12-18 13:53:25 -05:00
Lee Salzman
895d5aa69d Bug 1082598 - Part 2: Fix Moz2D Skia usage for Skia update. r=jrmuizel 2015-12-18 13:53:25 -05:00
Lee Salzman
109d7c1152 Bug 1082598 - Part 1: Update Skia to master revision 53c5d5fb795fe04bec050c0583223027c25b839b. r=jrmuizel 2015-12-18 13:53:25 -05:00
Mason Chang
b343d4de4f Bug 1233576. Ensure vsync timestamps are monotonic on Windows 10. r=kats 2015-12-18 08:32:21 -08:00
Morris Tseng
7c6ad64f6c Bug 1172796 - Part 9: Use gfxPrefs to get webgl.enable-prototype-webgl2. r=jgilbert 2015-12-18 14:52:17 +08:00
Morris Tseng
b985b4445c Bug 1215438 - Part 4: Rename CairoImage to SourceSurfaceImage. r=roc 2015-12-18 14:52:16 +08:00
Morris Tseng
c3785e6da4 Bug 1215438 - Part 3: CairoImage can use in any thread. r=roc 2015-12-18 14:52:16 +08:00
Morris Tseng
53a8d47467 Bug 1215438 - Part 1: Add utility functions to support transferring ImageBitmap. r=roc 2015-12-18 14:52:16 +08:00
Morris Tseng
e8533485d6 Bug 1215005 - SourceSurface has thread-safe refcount now. r=bas 2015-12-18 14:52:16 +08:00
Wes Kocher
8887bca19f Backed out 10 changesets (bug 1082598) for 2d.path.arcTo.shape.curve1.html failures on OSX
Backed out changeset 018c2a3031f4 (bug 1082598)
Backed out changeset 8f60e42aca2e (bug 1082598)
Backed out changeset c4297c82165f (bug 1082598)
Backed out changeset c22c1bfd091a (bug 1082598)
Backed out changeset 8754fd718869 (bug 1082598)
Backed out changeset da976e4cd253 (bug 1082598)
Backed out changeset 3c8f87df8c68 (bug 1082598)
Backed out changeset 3183d30eb549 (bug 1082598)
Backed out changeset c239a7bc6cba (bug 1082598)
Backed out changeset aa3805015270 (bug 1082598)
2015-12-17 14:30:50 -08:00
Lee Salzman
7d5e6d1c73 Bug 1082598 - Part 8: Fix OpenGL interface glue for Skia update. r=jrmuizel 2015-12-17 14:45:45 -05:00
Lee Salzman
80fe6cd772 Bug 1082598 - Part 7: Update moz.build for Skia update. r=jrmuizel 2015-12-17 14:45:45 -05:00
Lee Salzman
4d4c520fce Bug 1082598 - Part 6: Fix layers for Skia update. r=jrmuizel 2015-12-17 14:45:45 -05:00
Lee Salzman
7ba4aae815 Bug 1082598 - Part 4: Workaround for naming conflict in unified sources for Skia and thebes DWrite fonts. r=jrmuizel 2015-12-17 14:45:45 -05:00
Lee Salzman
1478cd1889 Bug 1082598 - Part 3: Fix thebes gfxPlatform shutdown for Skia. r=jrmuizel 2015-12-17 14:45:45 -05:00
Lee Salzman
6d1d43b9e1 Bug 1082598 - Part 2: Fix Moz2D Skia usage for Skia update. r=jrmuizel 2015-12-17 14:45:44 -05:00
Lee Salzman
502c6b39c3 Bug 1082598 - Part 1: Update Skia to master revision 53c5d5fb795fe04bec050c0583223027c25b839b. r=jrmuizel 2015-12-17 14:45:44 -05:00
David Anderson
8ced4416a5 Force a repaint after DXGI device resets. (bug 1188019, r=bas) 2015-12-17 11:20:08 -08:00
Kartikaya Gupta
1b7df272e2 Bug 1229039 - If a PanGesture input block gets interrupted, just start a new block instead of not sending the rest of the events through the APZ. r=mstange 2015-12-17 10:05:47 -05:00
Kartikaya Gupta
61d91466e4 Bug 1229039 - Miscellaneous logging fixes/updates. r=botond 2015-12-17 10:05:12 -05:00
Nicholas Nethercote
c32445145d Bug 1231256 (part 5) - Remove dead FromCSSPerspectiveInfo() function. r=vlad. 2015-12-07 15:20:02 -08:00
Nathan Froyd
faa66fbfc6 Bug 1232772 - fix typo causing Windows build bustage; r=me 2015-12-16 17:12:45 -05:00
Botond Ballo
080bb85c29 Bug 1231228 - Gtest. r=kats 2015-12-16 10:49:42 -05:00
Botond Ballo
9df8275310 Bug 1231228 - Correctly check for whether an APZC along the handoff chain is panned into overscroll. r=kats 2015-12-14 19:55:37 -05:00
Nathan Froyd
f0773715c5 Bug 1233069 - add override declarations to Windows graphics headers; r=Bas
This change silences a number of -Winconsistent-missing-override
warnings on clang-cl.
2015-12-16 10:41:21 -05:00
Mason Chang
3223ccb5f2 Bug 1230357. Enable subpixel text on skia content backends. r=lsalzman 2015-12-16 12:43:49 -08:00
Jeff Muizelaar
b60330f131 Bug 1232902. Update ANGLE to chromium/2592 2015-12-16 10:13:56 -05:00
Carsten "Tomcat" Book
c452724ae0 Backed out changeset 1cbfa21cf2b5 (bug 1147673) for mulet r5 test failures on a CLOSED TREE 2015-12-16 11:53:11 +01:00
Carsten "Tomcat" Book
b42e568ef5 Backed out changeset 9e1f2694536c (bug 1147673) 2015-12-16 11:52:41 +01:00
Botond Ballo
e4c85d2cae Bug 1147673 - Determine more accurately whether an async transform affects a layer's clip rect. r=kats 2015-10-02 18:35:21 -04:00
Markus Stange
971b3debcd Bug 1147673 - Unadjust clip before intersecting it with the scroll clip. r=botond 2015-10-09 14:30:44 +02:00
Nicholas Nethercote
d56b59cf31 Bug 1232576 (part 2) - Rename gfxContext::GetCairo() as GetRefCairo() and make it static. r=jfkthame.
This means its callers now need a DrawTarget instead of a gfxContext.
2015-12-14 22:26:23 -08:00
Nicholas Nethercote
f0f8f6f4ec Bug 1232576 (part 1) - Move the reference |cairo_t*| from gfxContext to DrawTarget (as user data). r=jfkthame. 2015-12-14 22:23:51 -08:00
Jeff Muizelaar
70da0f5fbb Bug 1232668. Allow using kTex2DBlit_FragShaderSource on non-ES targets.
This avoids compile errors when using Mesa.
2015-12-15 12:48:15 -05:00
Kartikaya Gupta
e8fcd59b57 Bug 1231915 - Ignore the APZ pref if MOZ_ANDROID_APZ is enabled, since the pref doesn't cover all the relevant code. r=rbarker 2015-12-15 09:17:41 -05:00
Nicholas Nethercote
b73a66902a Bug 1231256 (part 4) - Remove dead SetContext() declaration. r=jfkthame. 2015-12-07 15:19:56 -08:00
Kartikaya Gupta
6c979374d5 Bug 1229052 - Log a warning when we detect a scroll-linked effect based on the scroll event. r=roc 2015-12-14 14:47:24 -05:00
Kartikaya Gupta
9a7aeabc26 Bug 1232484 - Remove 'using namespace gfx' and missing includes that were papered over by unified builds but can cause breakage. r=BenWa 2015-12-14 15:09:17 -05:00
Botond Ballo
906b014148 Bug 1170325 - Undo an unnecessary signature change to AsyncPanZoomAnimation::TakeDeferredTasks(). r=Waldo
Also change the implementation to use Move() instead of swap().
2015-12-14 18:38:25 -05:00
Botond Ballo
5d743cea98 Bug 1230552 - Minor follow-up to add an assertion. rs=kats 2015-12-14 18:10:14 -05:00
Jeff Muizelaar
92eb609ff5 Bug 1232480. Use 'precision' instead of 'prevision'
A fun little typo.
2015-12-14 18:02:53 -05:00
Nicholas Nethercote
842d167ba4 Bug 1231864 (part 2) - Clean up gfxWindowsNativeDrawing::BeginNativeDrawing(). r=mattwoodrow.
This patch inlines the CurrentSurface() and GetDCWithClip() calls in
BeginNativeDrawing(). This allows them to share a single |cairo_t*| and gets
rid of the GetCairo() call in GetDCWithClip(), which was one of those confusing
ones that only made sense if its a Cairo backend.

The patch also inverts the sense of mDeviceOffset, and changes its type from
gfxPoint to Point.
2015-12-14 15:00:08 -08:00
Nicholas Nethercote
34b063cfa8 Bug 1231864 (part 1) - Remove useless GetCairo() call in gfxWindowsNativeDrawing::BeginNativeDrawing(). r=mattwoodrow.
GetCairo() never returns null so testing its result like this is pointless.
2015-12-14 14:59:33 -08:00
Botond Ballo
38561cb34b Bug 1230552 - Fuzz a floating-point comparison to avoid an intermittent test failure. r=bustage 2015-12-14 17:46:55 -05:00
Botond Ballo
764af55d33 Bug 1230552 - Extend the immediate scroll handoff pref to apply to flings. r=kats 2015-12-12 14:31:25 -05:00
Botond Ballo
22c95d8c4a Bug 1230552 - Introduce a structure to group fling handoff state. r=kats
This patch also cleans up APZCTreeManager::DispatchFling() a bit.
2015-12-12 14:31:20 -05:00
Botond Ballo
f0c8cde4e0 Bug 1230552 - Make immediate scroll handoff for panning prefable. r=kats
Immediate handoff is the current behaviour. The alternative is to
only allow a single input block to scroll a single APZC.
2015-12-14 14:47:56 -05:00
Botond Ballo
fb864477b3 Bug 1230552 - Introduce a helper AsyncPanZoomController::CurrentInputBlock(). r=kats 2015-12-12 13:03:52 -05:00