Граф коммитов

22 Коммитов

Автор SHA1 Сообщение Дата
Andrew Osmond d639d2c5ac Bug 1435586 - Use static gfxPlatform methods directly instead of requiring initialization. r=kats
gfxPlatform::GetSourceSurfaceForSurface and CreateDrawTargetForSurface
are both static methods that we sometimes use via the pattern
gfxPlatform::GetPlatform()->... This is problematic because this forces
gfxPlatform to be initialized in the process, and in the GPU process, we
don't support this. It should be safe to call these methods without
initializing gfxPlatform, so this patch removes the GetPlatform() call.

GetSourceSurfaceForSurface may end up initializing gfxPlatform anyways,
depending on whether or not a DrawTarget was given. This should not be a
concern for the crashes observed in bug 1435586.

Differential Revision: https://phabricator.services.mozilla.com/D33785
2019-06-05 12:40:26 -04:00
Ryan Hunt 85ff4bdc33 Bug 1523969 part 8 - Move method definition inline comments to new line in 'gfx/'. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D21108

--HG--
extra : rebase_source : 48a4586f507891f3a2f0f970e9b9a0b15f0f3d61
2019-02-25 16:07:19 -06:00
Tooru Fujisawa 7983faeb5d Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp 2018-12-01 04:52:05 +09:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Jonathan Watt 79f77de593 Bug 1435286 - Stop recording draw events for reference DrawTargets returned from PrintTarget. r=bobowen
MozReview-Commit-ID: 1cE71hBCGx5
2018-01-18 12:45:18 +00:00
Jeff Muizelaar 63724b1070 Bug 1369552. Split out DrawTargetWrapAndRecord and DrawTargetRecording. r=Bas
DrawTargetRecording will stop playing back durin recording.

--HG--
rename : gfx/2d/DrawTargetRecording.cpp => gfx/2d/DrawTargetWrapAndRecord.cpp
rename : gfx/2d/DrawTargetRecording.h => gfx/2d/DrawTargetWrapAndRecord.h
extra : rebase_source : fd41326974905946318489cc801929328331ae73
2017-06-12 16:52:29 -04:00
Jonathan Watt 1db1520cd4 Bug 1354624 - Fix PrintTarget::GetReferenceDrawTarget and its overrides to honor aRecorder. r=bobowen
MozReview-Commit-ID: IeXTFrTe8PL
2017-03-21 09:36:08 +00:00
Jonathan Watt d2ce7607c8 Bug 1309272, part 6 - Add page start/end arguments to the PrintTarget::BeginPrinting virtual method and overloads. r=lsalzman 2016-11-29 07:54:30 +00:00
Wes Kocher 809804e4d5 Backed out 5 changesets (bug 1309272) for OSX static build failures a=backout
Backed out changeset 5ecb0db80f15 (bug 1309272)
Backed out changeset d2046ba27486 (bug 1309272)
Backed out changeset 31fdab31ab51 (bug 1309272)
Backed out changeset a9f6271115de (bug 1309272)
Backed out changeset 125e6fb37319 (bug 1309272)

--HG--
rename : gfx/thebes/PrintTargetCG.mm => gfx/thebes/PrintTargetCG.cpp
2016-11-28 13:49:09 -08:00
Jonathan Watt 4d09d162ad Bug 1309272, part 6 - Add page start/end arguments to the PrintTarget::BeginPrinting virtual method and overloads. r=lsalzman 2016-11-22 12:43:22 +00:00
Jonathan Watt af8d63caba Bug 1317295 - Record PrintTarget::GetReferenceDrawTarget DrawTargets. r=edwin 2016-11-15 23:01:41 +00:00
Wes Kocher 18cab513b1 Backed out 7 changesets (bug 1316750, bug 1317295, bug 1316299) for windows vm debug reftest failures a=backout
Backed out changeset c0d0caa11f5a (bug 1316750)
Backed out changeset e222819961af (bug 1316750)
Backed out changeset fb46a1dc34f9 (bug 1316750)
Backed out changeset 732a96ceaf9f (bug 1316750)
Backed out changeset 5b62b77eb236 (bug 1316299)
Backed out changeset ac5ea2dc6c60 (bug 1317295)
Backed out changeset 9508c116ecd7 (bug 1316750)
2016-11-14 16:44:52 -08:00
Jonathan Watt a83ad806e9 Bug 1317295 - Record PrintTarget::GetReferenceDrawTarget DrawTargets. r=edwin 2016-11-04 13:42:18 +00:00
Jonathan Watt 02c8d37eee Bug 1316338 - Make PrintTargetThebes set mHasActivePage as appropriate. r=lsalzman 2016-11-02 12:41:19 +00:00
Jonathan Watt 6f84af53e5 Bug 1280324, part 4 - Assert that PrintTarget::MakeDrawTarget is only called while a print page is being processed. r=edwin 2016-10-27 19:25:02 +01:00
Jonathan Watt 81c7af4165 Bug 1280324, part 1 - Add functionality to the PrintTarget sub-classes to return reference DrawTargets. r=edwin 2016-10-27 19:24:12 +01:00
Jonathan Watt b92e6743a4 Backed out changeset 1bd6da31483d (bug 1279654) 2016-06-16 17:28:50 +01:00
Jonathan Watt 50ca6cab92 Backed out changeset 4d5124b4bc5b (bug 1279790) 2016-06-16 17:26:59 +01:00
Jonathan Watt c5bcf8c0ee Bug 1279790 - Remove PrintTargetThebes. r=eflores 2016-06-14 19:26:37 +01:00
Jonathan Watt f048425035 Bug 1279654 - Create a PrintTargetRecording subclass of PrintTarget. r=mstange 2016-06-13 17:19:08 +01:00
Jonathan Watt cc6d4f9c08 Bug 1278276 - Remove gfxPSSurface and move its logic to a PrintTargetPS subclass of PrintTarget. r=Bas
--HG--
rename : gfx/thebes/gfxPSSurface.cpp => gfx/thebes/PrintTargetPS.cpp
rename : gfx/thebes/gfxPSSurface.h => gfx/thebes/PrintTargetPS.h
2016-06-06 16:10:28 +01:00
Jonathan Watt 0676eabe9f Bug 1278269 - Make a PrintTarget class and PrintTargetThebes subclass and convert all nsIDeviceContextSpec subclasses to use them. r=Bas 2016-06-03 11:27:31 +01:00