Nathan Froyd
da33676fbb
Bug 1251716 - use UniquePtr instead of ScopedDeletePtr in DrawTargetCairo; r=jrmuizel
...
UniquePtr is more standard than ScopedDeletePtr; using standard
constructs whenever possible is preferable.
2016-02-26 13:34:11 -05:00
Bogdan Postelnicu
cd1f9673bd
Bug 1251241 - return from DrawTargetCairo::FillGlyphs if |aFont| is nullptr. r=roc
...
MozReview-Commit-ID: 56RQO8Fm2AP
--HG--
extra : rebase_source : bd0a70750199a62d627c570e2b1bdbc10ebb621a
2016-02-25 16:59:34 +02:00
Lee Salzman
876e94a736
Bug 1248223 - verify that stroke widths are finite for Skia. r=jmuizelaar
2016-02-23 18:09:03 -05:00
Jean-Yves Avenard
0f2fbc9d88
Bug 1248323: P1. Add support for YUV422 IOSurface. r=nical
...
Those are really UYVY 16bpp surface.
MozReview-Commit-ID: DWkqrF6Norj
--HG--
extra : rebase_source : 479500af560f61a3f6b6c4c3b0f64aeb92438a9a
2016-02-23 13:26:27 +11:00
Lee Salzman
2a69a5aa16
Bug 1250787 - ensure that subpixel text is disabled for Skia's Cairo font host so that font rendering matches our font metrics. r=mchang
2016-02-24 20:35:38 -05:00
Nicolas Silva
241addc752
Bug 1244234 - Simplify joining jobs with the gfx job scheduler. r=jrmuizel
2016-02-23 19:15:30 +01:00
Milan Sreckovic
94b767a7cd
Bug 1247700: Avoid crash from invalid fonts. r=bas
...
MozReview-Commit-ID: 9ULEBZAH9zz
--HG--
extra : rebase_source : 3eeea06396e0cca6685ac98915278a1bd768e55c
2016-02-23 09:55:44 -08:00
Mason Chang
579a548e8f
Bug 1249033 - Enable Subpixel AA Text on Skia for Dwrite and GDI Fonts. r=jrmuizel
2016-02-18 08:37:43 -08:00
Mason Chang
488e418aaa
Backout 2c97c2a5dad7 bug 1249033. r=me
2016-02-17 13:19:56 -08:00
Mason Chang
5006e4e550
Bug 1249033 - Enable Subpixel AA Text on Skia for Dwrite and GDI Fonts. r=jrmuizel
2016-02-17 13:09:35 -08:00
Milan Sreckovic
4b17d4d133
Bug 1248450: Send the graphics messages to the parent process. r=dvander
...
MozReview-Commit-ID: EshCrdT5lYu
--HG--
extra : rebase_source : bc83b76bf6eea5e2e450eca4aacee5685373aed7
2016-02-16 18:07:37 -05:00
Mason Chang
4ab8d2c595
Bug 1239152 Memset RGBX surfaces to opaque white. r=nical
2016-02-17 07:34:37 -08:00
Milan Sreckovic
59d6d38319
Bug 1187464 - Part 1. We can get the wrong texture source type, so deal with it. Carry r=mstange
2016-02-08 11:56:00 +01:00
David Anderson
e8462418d4
Add instrumentation for when content processes fail to acquire D3D11 devices. (bug 1247539, r=milan)
...
--HG--
extra : rebase_source : 9d13831f25867d993cccc9b2717e14cc0a4893a0
2016-02-15 23:59:24 -08:00
Bas Schouten
259d24796a
Bug 1247775 - Part 3: Remove Moz2D code to support Direct2D 1.0. r=dvander
...
MozReview-Commit-ID: KBZSqIdx0OC
2016-02-13 14:33:28 +01:00
Milan Sreckovic
e9025efa1b
Bug 1247671: Increase the crash logging length to 16 by default (+ small white space change in the comments) r=dvander
...
MozReview-Commit-ID: 9KH6ZdWInZM
--HG--
extra : rebase_source : 62d608c0fd859586a129d9663b92aa634bca1c7d
2016-02-11 13:04:20 -05:00
Carsten "Tomcat" Book
fdcf299e32
Backed out changeset 8e13ba75bccf (bug 1247775)
2016-02-12 08:49:28 +01:00
Bas Schouten
54dad93d74
Bug 1247775 - Part 3: Remove Moz2D code to support Direct2D 1.0. r=dvander
...
MozReview-Commit-ID: KBZSqIdx0OC
--HG--
extra : rebase_source : 632fb5208a702f79fa5c648698f73bc9b0bf8992
2016-02-12 02:11:50 +01:00
Matt Woodrow
2f1cbec9a2
Bug 1224433 - Part 2: Clamp the invalidation rect to values that fit within nscoord. r=roc
...
--HG--
extra : rebase_source : 0aaede54d8622786cddaf8365e6bf091d6bff8f8
2016-02-12 11:35:17 +13:00
Bas Schouten
66c618a6ee
Bug 1246641: Also execute an occasional EndDraw for CommandLists used by non-operator OVER drawing. r=jrmuizel
...
MozReview-Commit-ID: H3V3z8ZIiIK
2016-02-11 21:35:07 +01:00
Lee Salzman
9c09b93cc2
Bug 1246756 - part 1 - fix moz2d Skia usage for Skia m49 update. r=jrmuizel
2016-02-09 13:36:19 -05:00
Jonathan Watt
ed38f5c352
Bug 1245845, part 1 - Stop Moz2D Path::CopyToBuilder/TransformedCopyToBuilder implicitly converting the Path's FillRule. r=Bas
2016-02-08 02:15:54 +00:00
William Chen
a7c2c21d89
Bug 1245242 - Normalize to unit vector for DOMMatrix.rotateAxisAngleSelf. r=roc
2016-02-04 00:30:00 -08:00
Lee Salzman
c4f3bf16cc
Bug 1244228
- fix DrawTargetSkia::OptimizeSourceSurface to still create Skia surfaces for GPU canvases even if creating a GPU surface failed. r=jmuizelaar
2016-02-03 13:49:36 -05:00
Bas Schouten
888d48a29a
Bug 1245525: Fix some compiler errors in Moz2D type classes. r=jrmuizel
...
--HG--
extra : commitid : FmfVYTFF0DR
2016-02-03 19:44:41 +01:00
Carsten "Tomcat" Book
c92db23864
Backed out changeset 63e2a056311a (bug 1187464) for reftest failures
...
--HG--
extra : rebase_source : 8102427c109ff38e42b26b7f48dcaba67bdd7c4c
2016-02-03 15:04:37 +01:00
Milan Sreckovic
e8a5e06fdb
Bug 1187464 - Part 1. We can get the wrong texture source type, so deal with it. r=mstange
2016-02-02 11:05:00 +01:00
Birunthan Mohanathas
d7371d07d0
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
David Anderson
3183956eeb
Use double precision when computing the backdrop copy rect. (bug 1243071 part 2, r=mattwoodrow)
2016-02-01 16:27:49 -08:00
Phil Ringnalda
d381b4bca6
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
373593275e
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Bogdan Postelnicu
85e3e6dee1
Bug 1242421 - remove useless null check. r=roc@ocallahan.org
...
--HG--
extra : transplant_source : %0D%9E%D5%21l%FC%EF%15g%0B%16x%DD%88H%80%C3L%CB%A0
2016-01-25 14:00:29 +02:00
Bob Owen
00a3e39683
Bug 1240437 part 2: Follow-up to fix implicit constrcutor static analysis failure. r=me
2016-01-26 10:31:31 +00:00
Bob Owen
ddcde763b9
Bug 1240437: Implement PushLayer and PopLayer for DrawTargetRecording. r=bas
2016-01-26 10:03:07 +00:00
Lee Salzman
51ee06a33d
Bug 1241918 - remove workarounds for zero-length dash intervals in HelpersSkia.h, r=jrmuizel
2016-01-22 11:12:52 -05:00
Bas Schouten
838779b05e
Bug 1241058: Assure several operations properly operate on the current group target. r=jrmuizel
...
--HG--
extra : rebase_source : 095317736906a39a75c47005e12e112113bc087b
2016-01-20 17:27:36 +01:00
Lee Salzman
ee61a37f0b
Bug 1240177 - part 4 - avoid GPU readbacks in SourceSurfaceSkia::DrawTargetWillChange, r=jrmuizel
2016-01-21 09:52:35 -05:00
Lee Salzman
d913eb20b8
Bug 1240177 - part 3 - make DrawTargetSkia::OptimizeSourceSurface directly upload to GPU textures, r=jrmuizel
2016-01-21 09:52:08 -05:00
Lee Salzman
d67a7412a2
Bug 1240177 - part 2 - cleanups of DrawTargetSkia and SourceSurfaceSkia creation for GPU contexts, r=jrmuizel
2016-01-21 09:51:40 -05:00
Lee Salzman
a725c24151
Bug 1240177 - part 1 - add helper function to make Skia image info, r=jrmuizel
2016-01-21 09:50:43 -05:00
Lee Salzman
579717eec1
Bug 1241163 - Replace DrawTarget::CreateSourceSurfaceFromNativeSurface(CAIRO_CONTEXT) with Factory::CreateSourceSurfaceForCairoSurface. r=jrmuizel
2016-01-20 13:31:44 -05:00
Bas Schouten
9c134bf2d5
Bug 1241012: Remove moz-d2d1-1.h stub headers from the tree. r=jrmuizel
...
--HG--
extra : rebase_source : 8c5c8bcd043a96c83148bfc065cddf5100cd59ee
2016-01-20 04:50:22 +01:00
Nicolas Silva
59f28c22d9
Bug 1239288 - Fix a race in the win32 job scheduler's shutdown. r=jrmuizel
2016-01-19 09:48:51 +01:00
Nicolas Silva
eaffc2bea6
Bug 1239844 - Log hexadecimal values in a more standard way. r=dholbert
2016-01-18 12:03:15 +01:00
Chris Peterson
f68d14cca7
Bug 1236323 - Part 2: Suppress -Wimplicit-fallthrough warnings in gfx/ from Skia header files. r=nical
2016-01-08 00:43:58 -08:00
Lee Salzman
466b5fb4c9
Bug 1239040 - Fix DrawTargetCairo/DrawTargetSkia LockBits and BorrowedXlibDrawable to work inside PushLayer. r=jrmuizel
2016-01-13 13:11:07 -05:00
Lee Salzman
f8a3f7243f
Bug 1239040 - Cleanup of DrawTargetSkia CopySurface to avoid accessing bottom layer directly. r=jrmuizel
2016-01-13 13:11:07 -05:00
Lee Salzman
267c479fcf
Bug 1239040 - Implement PushLayer for DrawTargetSkia. r=Bas
2016-01-12 23:30:33 -05:00
Lee Salzman
f348a7869e
Bug 1239040 - Cleanup of DrawTargetSkia Mask and MaskSurface. r=jrmuizel
2016-01-12 13:26:31 -05:00
Lee Salzman
6000e65e29
Bug 1239040 - Cleanup of DrawTargetSkia GetBitmapForSurface to use installPixels. r=jrmuizel
2016-01-12 13:05:13 -05:00
Jan de Mooij
98f91b82f9
Bug 1237201 part 2 - Handle Vector OOM in gfx/. r=jrmuizel,kats
2016-01-14 15:19:16 +01:00
Andrea Marchesini
83b88d383f
Bug 1231378 - part 2 - Fix uninitialized members of classes in dom/*, r=smaug
2016-01-12 18:16:59 +00:00
Carsten "Tomcat" Book
6692893d20
Backed out changeset 5f6a58676e87 (bug 1231378)
2016-01-12 15:48:57 +01:00
Andrea Marchesini
001e241382
Bug 1231378 - part 2 - Fix uninitialized members of classes in dom/*, r=smaug
2016-01-12 13:54:53 +00:00
Bas Schouten
b3027878ab
Bug 1238328: Purge stored command lists by calling EndDraw/BeginDraw on a regular basis when they're used. r=jrmuizel
...
--HG--
extra : rebase_source : 5041fa82907837c50e657c87afeda85be40b25d7
2016-01-11 16:38:10 +01:00
Nicholas Nethercote
88696a303a
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.
--HG--
extra : rebase_source : f56e92b1593957a9e4e00171100bc7605816e696
2016-01-07 20:57:38 -08:00
Chris Peterson
d7f8317f74
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
a2a55a8086
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
b94d12b3b4
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
Tooru Fujisawa
4fac62d240
Bug 382721 - Part 0: Add missing includes and namespaces. r=jrmuizel
2015-09-10 19:24:34 +09:00
Nicholas Nethercote
4b651d870f
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.
--HG--
extra : rebase_source : 6f1701a8131d854c7f623272182029847876754e
2016-01-05 14:24:08 -08:00
Mason Chang
2e3ff601d6
Bug 842894 - Support DirectWrite using the Skia backend. r=bas
2016-01-06 11:35:04 -08:00
Bas Schouten
12b9a82473
Bug 1220629 - Part 6: Implement PushLayer/PopLayer API in several wrapper DT types. r=jrmuizel
...
--HG--
extra : rebase_source : 5a421568fa20b23d7ceef71eb58014e29dbc1c76
2016-01-06 00:23:33 +01:00
Bas Schouten
b5ed4b63ba
Bug 1220629 - Part 5: Implement PushLayer/PopLayer API for Direct2D 1.1. r=jrmuizel
...
--HG--
extra : rebase_source : ec545e1bde6741e9bc461b1a6ab966e7b6c9236a
2016-01-06 00:23:29 +01:00
Bas Schouten
6b108bc5cb
Bug 1220629 - Part 3: Implement PushLayer/PopLayer API in cairo. r=jrmuizel
...
--HG--
extra : rebase_source : 058ed10659456f59761535f7538ced6df5425aec
2016-01-06 00:04:38 +01:00
Bas Schouten
fd6c57413d
Bug 1220629 - Part 2: Prepare DrawTargetD2D1 for the possibilities of layers existing inside it. r=jrmuizel
...
--HG--
extra : rebase_source : 97685e7ee1e9249dd465bfcee40bd7401f2a6e4e
2016-01-05 09:03:08 +01:00
Bas Schouten
e6f7f09b31
Bug 1220629 - Part 1: Add PushLayer/PopLayer API to DrawTarget baseclass. r=jrmuizel
...
--HG--
extra : rebase_source : 49ad072bc61d9d46c0b5d3fe2797624922f5083c
2016-01-05 09:00:59 +01:00
Bob Owen
1fe62dee68
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
401ebce4ed
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
74de9c73ae
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
b24d50e720
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
0c7ef20c4d
Bug 1156742 Part 19: Implement GetFontFileData for ScaledFontWin. r=bas
2016-01-05 10:08:58 +00:00
Bob Owen
3b91f57af4
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
af9224e713
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
20e589aec1
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
e707786501
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
fdd98bfb6b
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
c6e61e8846
Bug 1156742 Part 4: Add an in memory DrawEventRecorder. r=bas
2016-01-05 10:08:57 +00:00
Bob Owen
9536340a3a
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
7b7cad771e
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
940fb516d4
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
3ebd8ac2fd
Bug 1235858 - Record the time stamp, use it for crash reports. r=botond
2015-12-30 11:47:00 +01:00
Milan Sreckovic
ac84b221c9
Bug 1235613 - Make gfxCriticalError/Note strings in gfx/ unique. r=jrmuizel
...
--HG--
extra : transplant_source : %8F%1DcB%3A%25%94%95G%EF%B4U%CE%B9%10%E1%A3%BC%E2%3D
2015-12-29 14:03:58 -05:00
Lee Salzman
5512fbeae7
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
3549505a7d
Bug 1195788 - Set arithmetic composite clamp to true for D2D filter node. r=bas
...
--HG--
extra : source : 143122bf7036ee754e587fc99a049078d34eb936
2015-12-29 09:48:37 +11:00
Bas Schouten
ad65c68987
Bug 1107792: Don't ask for similar if the surface has an error, and more data in crash reports. r=milan
...
--HG--
extra : commitid : 2BXoALYvMhT
2015-12-24 12:55:36 -05:00
Wes Kocher
a5249b6201
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
--HG--
extra : amend_source : beeb6abbcc724b79ac166e828efa78dc4c5301da
2015-12-21 13:47:33 -08:00
Bob Owen
fb35888c83
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
e4d10bb475
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
957b556822
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
27ff57a6e6
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
ff49466165
Bug 1156742 Part 19: Implement GetFontFileData for ScaledFontWin. r=bas
2015-12-21 20:33:14 +00:00
Bob Owen
f8497152ba
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
1f1916743e
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
982220b6d8
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
661e04ae49
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
529a96f97d
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
e0674961f5
Bug 1156742 Part 4: Add an in memory DrawEventRecorder. r=bas
2015-12-21 20:33:13 +00:00
Bob Owen
2ce74bca79
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
477a386eec
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