Commit Graph

15988 Commits

Author SHA1 Message Date
Kartikaya Gupta
3dfb446cb7 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
93e432ea0b 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
f321e7425c 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
93954c03fe Bug 1237448 - Moz2Dify two functions in gfxSurfaceDrawable. r=roc. 2016-01-06 18:26:33 -08:00
John Daggett
fdc20b64e0 Bug 1157064 - implementation of font-display. r=heycam,khuey 2016-01-07 14:03:05 +09:00
John Daggett
bb31e75a7b Bug 1157064 - font-display descriptor parsing. r=dbaron 2016-01-07 14:02:58 +09:00
Kartikaya Gupta
426034af5d Bug 1219352 - Pack the FrameMetrics booleans. r=botond 2016-01-06 20:50:01 -05:00
Kartikaya Gupta
1d9ca2051e 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
7430f33698 Bug 1219352 - Update a couple of bool-setters to take a bool argument. r=botond 2016-01-06 20:50:01 -05:00
kearwood
69567444e9 Bug 1230352 - Update to Oculus SDK 0.8.0,r=vlad 2015-09-22 09:38:28 -04:00
Nicholas Nethercote
efe71ca38d 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
91209d30e3 Bug 1236167: P1. Do not attempt to destroy a non allocated surface. r=nical 2016-01-07 09:30:32 +11:00
Mason Chang
eab83228e1 Bug 842894 - Support DirectWrite using the Skia backend. r=bas 2016-01-06 11:35:04 -08:00
Bill McCloskey
34e1f97d18 Bug 1236266 - Use release assert in IPC serialization for regions (r=jmuizelaar) 2016-01-06 10:22:54 -08:00
Bill McCloskey
7d463700bb Bug 1236266 - Don't generate invalid empty regions in pixman (r=jmuizelaar) 2016-01-06 10:22:54 -08:00
Ryan VanderMeulen
3f6829ca8e Merge m-c to inbound. a=merge 2016-01-06 09:50:26 -05:00
Ryan VanderMeulen
b7135be525 Merge inbound to m-c. a=merge 2016-01-06 09:43:47 -05:00
Johan Lorenzo
a65ab29141 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
7a3ffa5b99 Bug 1234343 (part 2) - Add a missing GfxMemoryImageReporter::DidAlloc() call. r=Bas. 2016-01-05 18:26:29 -08:00
Nicholas Nethercote
b87bea42c9 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
719e638836 Backed out changeset ad7bcc14bc9c (bug 1236266) for causing perma leaks 2016-01-06 14:02:58 +05:30
Nigel Babu
737652a2aa Backed out changeset 38405f32bcbc (bug 1236266) 2016-01-06 14:02:50 +05:30
Nigel Babu
e4d4d961e7 Backed out changeset 39aca33612f1 (bug 1236266) 2016-01-06 14:02:47 +05:30
Bill McCloskey
b8b46129f1 Bug 1236266 - Fix up review comment (r=jmuizelaar) 2016-01-05 22:10:40 -08:00
Bill McCloskey
44fa340ee0 Bug 1236266 - Don't generate invalid empty regions in pixman (r=jmuizelaar) 2016-01-05 21:59:46 -08:00
Bill McCloskey
8c07dcde6d Bug 1236266 - Use release assert in IPC serialization for regions (r=jmuizelaar) 2016-01-05 21:59:46 -08:00
Bas Schouten
17c7cd2d82 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
f205b39b84 Bug 1220629 - Part 5: Implement PushLayer/PopLayer API for Direct2D 1.1. r=jrmuizel 2016-01-06 00:23:29 +01:00
Bas Schouten
926a0fbc66 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
1b6d2e4c03 Bug 1220629 - Part 3: Implement PushLayer/PopLayer API in cairo. r=jrmuizel 2016-01-06 00:04:38 +01:00
Bas Schouten
809aa9b682 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
6d39bb301d Bug 1220629 - Part 1: Add PushLayer/PopLayer API to DrawTarget baseclass. r=jrmuizel 2016-01-05 09:00:59 +01:00
Nicolas Silva
7d09d0941f 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
4945517f40 Bug 1234472 - Add gonk sideband stream handling to gfx ipc r=nical 2016-01-05 20:50:39 -08:00
Nicolas Silva
771397821e 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
0df89c14c4 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
6f732c71ec 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
0830aeef0e 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
35fddb564b 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
8764c02891 Bug 1156742 Part 19: Implement GetFontFileData for ScaledFontWin. r=bas 2016-01-05 10:08:58 +00:00
Bob Owen
f9d5f93efb 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
2240e4efa6 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
1b7736c9d5 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
0cf0821399 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
56536b7dc5 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
37274047fc 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
f6f09bc881 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
0de337e37b 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
4ee1d9f751 Bug 1156742 Part 4: Add an in memory DrawEventRecorder. r=bas 2016-01-05 10:08:57 +00:00
Bob Owen
c132ebc71d 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