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
Mason Chang
eab83228e1
Bug 842894 - Support DirectWrite using the Skia backend. r=bas
2016-01-06 11:35:04 -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
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
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
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
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
Bob Owen
1bd4995588
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
ec56016d9c
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
Milan Sreckovic
04aa8244ba
Bug 1235858 - Record the time stamp, use it for crash reports. r=botond
2015-12-30 11:47:00 +01:00
Milan Sreckovic
80aea93673
Bug 1235613 - Make gfxCriticalError/Note strings in gfx/ unique. r=jrmuizel
2015-12-29 14:03:58 -05:00
Lee Salzman
960ad70909
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
Xidorn Quan
055d6fade6
Bug 1195788 - Set arithmetic composite clamp to true for D2D filter node. r=bas
2015-12-29 09:48:37 +11:00
Bas Schouten
41914a406e
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
Wes Kocher
fce4860459
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
f6d9537337
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
6b1ea8459d
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
95b3a60d40
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
6227957478
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
80e88eced3
Bug 1156742 Part 19: Implement GetFontFileData for ScaledFontWin. r=bas
2015-12-21 20:33:14 +00:00
Bob Owen
22edbbdf32
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
139a7167a6
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
08fd132df8
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
424f4edc1f
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
44fbac4af3
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
6cebe3f218
Bug 1156742 Part 4: Add an in memory DrawEventRecorder. r=bas
2015-12-21 20:33:13 +00:00
Bob Owen
dfff548718
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
7b94256fe2
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
dc63fb5997
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
Nicolas Silva
7289e34c16
Bug 1228952 - Move texture metadata out of the BufferTextureClient/Host's buffer. r=Sotaro
2015-12-16 19:50:58 +01:00
Milan Sreckovic
b675a7e81a
Bug 1230740 - wallpaper patch for a missing nullptr scenario. r=bas
2015-12-14 13:11:00 +01:00
Lee Salzman
8588e5a9e9
Bug 1082598 - Part 2: Fix Moz2D Skia usage for Skia update. r=jrmuizel
2015-12-18 13:53:25 -05:00
Morris Tseng
25f051ce52
Bug 1215438 - Part 1: Add utility functions to support transferring ImageBitmap. r=roc
2015-12-18 14:52:16 +08:00
Morris Tseng
b8b064167a
Bug 1215005 - SourceSurface has thread-safe refcount now. r=bas
2015-12-18 14:52:16 +08:00
Wes Kocher
a10196e6b9
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
351136f60e
Bug 1082598 - Part 2: Fix Moz2D Skia usage for Skia update. r=jrmuizel
2015-12-17 14:45:44 -05:00
Nathan Froyd
dfdcb730b6
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
c016db2bdb
Bug 1230357. Enable subpixel text on skia content backends. r=lsalzman
2015-12-16 12:43:49 -08:00