Commit Graph

15979 Commits

Author SHA1 Message Date
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