Commit Graph

21129 Commits

Author SHA1 Message Date
Markus Stange
ebf52b3a75 Bug 1238753 - Don't skip the call to StartRemoteDrawing in from BasicCompositor::BeginFrame if the invalid region is empty. r=mattwoodrow
Sometimes we need a composition even if nothing has changed, for example for window resizes on Mac.
LayerManagerComposite::UpdateAndRender() already has a check that skips the call to BasicCompositor
if it's not necessary.

--HG--
extra : commitid : EFN68WKwWyp
extra : rebase_source : 00d8b063d23500b72a7f0c5fb03f5b726a3d5ac9
2016-01-12 13:27:14 +01:00
Markus Stange
c6fb172a65 Bug 1238753 - Make BasicCompositor respect changes to mInvalidRegion through StartRemoteDrawingWithRegion properly. r=mattwoodrow
--HG--
extra : commitid : 65tZtDLZZYx
extra : rebase_source : 8caf66555fee511daf0c336b9e8986da383f2704
2016-01-12 13:14:42 +01:00
Markus Stange
e69314a2fd Bug 1236282 - Clip color layer drawing in BasicCompositor so that unbounded operators don't erase stuff outside the layer. r=Bas
The same as bug 1077358, but for BasicCompositor.

--HG--
extra : commitid : 2xE66rOGdFx
extra : rebase_source : 4a81bbee35ae342add1bfca742d99b2c6dd73dcc
2016-01-12 12:47:36 +01:00
Jim Mathies
1c7a623149 Bug 1193055 - Update windowed plugin visibility in response to apz scroll in the chrome process vs. relying on a full round trip through content. Reduces lag in windowed plugin updates. r=kats 2016-01-12 11:05:58 -06:00
Kartikaya Gupta
e2bc5dfde1 Bug 1193055 - Only fire TransformBegin/TransformEnd notifications for actual wheel animations. r=botond 2016-01-12 11:05:53 -06:00
Carsten "Tomcat" Book
6692893d20 Backed out changeset 5f6a58676e87 (bug 1231378) 2016-01-12 15:48:57 +01:00
Nicholas Nethercote
3493a38202 Bug 1232822 (part 6) - Move RefCairo() from gfxContext to gfxFont. r=jfkthame.
Because gfxContext will one day disappear, and gfxFont seems like a good place
to move it to.
2015-12-15 20:10:04 -08:00
Nicholas Nethercote
16ee19fe3f Bug 1232822 (part 5) - Moz2Dify GetRoundOffsetsToPixels(). r=jfkthame.
Make GetRoundOffsetsToPixel() take a DrawTarget instead of a gfxContext. This
requires moving it into gfxFontShaper. The only change of note within the
function is the use of aDrawTarget->GetTransform().HasNonTranslation() instead
of CurrentMatrix().HasNonTranslation().
2015-12-15 13:56:40 -08:00
Nicholas Nethercote
8dba3aa24f Bug 1232822 (part 4) - Remove unused argument from SetPotentialLineBreaks(). r=jfkthame. 2015-12-15 13:56:40 -08:00
Nicholas Nethercote
62db02a52f Bug 1232822 (part 3) - Moz2Dify gfxFont::CalcXScale() and gfxFont::PostShapingFixup(). r=jfkthame.
This boils down to these two lines being equivalent:

  Size t = aContext->UserToDevice(Size(1.0, 0.0));
  Size t = aDrawTarget->GetTransform() * Size(1.0, 0.0);

The rest is just plumbing.
2015-12-15 13:56:40 -08:00
Nicholas Nethercote
52308b4cb3 Bug 1232822 (part 2) - Moz2Dify SetupGlyphExtents(). r=jfkthame.
The gfxContextMatrixAutoSaveRestore in SetupGlyphExtents() is now obviously not
needed, and the rest is trivial.
2015-12-15 13:56:40 -08:00
Nicholas Nethercote
2a8e0225ac Bug 1232822 (part 1) - Moz2Dify SetupCairoFont(). r=jfkthame.
This is now trivial.
2015-12-15 13:56:40 -08:00
Nicholas Nethercote
e542083969 Bug 1233605 - Cull some uses of gfxContext. r=dholbert.
--HG--
extra : rebase_source : eed590fa5fd806f2ed8d754e139e7dd28a8b52e7
2015-12-17 19:36:09 -08:00
Kearwood (Kip) Gilbert
5b989f37cb Bug 1235740 - Remove warning for missing Oculus VR Library from terminal output, as it is spammy and not necessary r=dholbert
--HG--
extra : rebase_source : 751b010bda82f69c3e700fc0ed2a25bd375ccdc7
2015-12-30 16:26:37 -08:00
Kearwood (Kip) Gilbert
d8849aea49 Bug 1235803 - Remove erroneous assertion r=dholbert
- Removed an unnecessary assertion that was erroneously triggering
  on shutdown in B2G Mochitests.

--HG--
extra : rebase_source : 1b0d997bf7610fa62d2647f5003edc47d61e3fa6
2015-12-30 14:46:38 -08:00
Mike Hommey
e0c501a1c1 Bug 1235738 - Move MOZ_DEBUG_DEFINES to build frontend. r=gps
MOZ_DEBUG_DEFINES are essentially defines used everywhere. So treat them as
feeding the initial value for DEFINES in each moz.build sandbox. This allows
the kind overrides that was done in the past by resetting MOZ_DEBUG_DEFINES
in Makefiles.
2015-12-31 07:27:23 +09:00
Jonathan Kew
9137c3ddf5 Bug 739117 - Avoid bidi-wrapping the text to be shaped if Core Text direction override API is available. r=jdaggett 2015-12-30 20:29:48 +00:00
Lee Salzman
08826ed976 Bug 1234494 - part 1 - don't build in Skia GPU code if support is disabled, r=jrmuizel 2015-12-30 12:17:32 -05:00
Sebastian Hengst
5fb86d302c Backed out changeset 21607399e25e (bug 1229983) for failing own R(C) test. r=backout 2015-12-30 15:00:44 +01:00
Jean-Yves Avenard
647eadb92b Bug 1223193: P2. Cancel ImageBridge proxy functions if shutdown has started. r=nical 2015-12-30 16:52:41 +11:00
Jean-Yves Avenard
eb979d623f Bug 1223193: P1. Make ImageBridgeChild::mShuttingDown atomic. r=nical 2015-12-30 15:13:19 +11:00
Nicolas Silva
d861b1e812 Bug 1176024 - Have TextureClient::Lock check that it can expose a DrawTarget when it makes sense. r=Bas 2015-12-30 13:23:01 +01:00
Bas Schouten
69278658e4 Bug 1227210: Ensure the mask and the surface are in the right space when being blended. r=mattwoodrow 2015-11-26 15:51:49 +01:00
Lee Salzman
cafcefe183 Bug 1229983 - verify that paths are finite in DrawTargetSkia::Stroke/Fill to handle Canvas paths containing infs. r=jmuizelaar 2015-12-16 17:53:11 -05:00
Bas Schouten
e8e3860c44 Bug 1235407 - Part 3: Force a reset when OpenSharedHandle fails. r=milan 2015-12-30 01:30:47 +01:00
Bas Schouten
667d7a5517 Bug 1235407 - Part 2: Add ability to force device resets through gfxWindowsPlatform. r=milan 2015-12-30 01:30:47 +01:00
Bas Schouten
3d1ad5faa9 Bug 1235407 - Part 1: Add telemetry probe to record forced resets. r=milan 2015-12-30 01:30:47 +01:00
Lee Salzman
41802e0eef Bug 1234419 - remove unnecessary -fkeep-inline-functions from Skia moz.build, r=jrmuizel 2015-12-29 16:20:01 -05:00
Kearwood (Kip) Gilbert
0c83ce5c05 Bug 1182048 - Part 2: Implement e10s support for WebVR,r=vlad 2015-09-17 14:23:13 -07:00
Carsten "Tomcat" Book
a04d1679f3 Backed out changeset c1f17f489417 (bug 1176024) for crashes 2015-12-29 14:29:09 +01:00
Nicolas Silva
d0ca78d5be Bug 1176024 - Have TextureClient::Lock check that it can expose a DrawTarget when it makes sense. r=Bas 2015-12-29 13:05:50 +01:00
Markus Stange
983842c663 Bug 1187322 - Fix bustage.
--HG--
extra : commitid : 8apW68WiB8L
2015-12-29 12:13:24 +01:00
Markus Stange
258bcc1298 Bug 1187322 - Don't require accelerated OpenGL contexts for BasicCompositor on OS X. r=jrmuizel
--HG--
extra : commitid : D8wNlw49VVb
extra : rebase_source : f0c93866f09de396e835a2920d5db54efe53ffda
extra : amend_source : 7ed5dda1bd555ecc353137bfc9b00b10992a86a1
2015-12-23 16:22:55 +01:00
Jonathan Kew
722e5d85bf Backed out changeset a7c9fc3f1701 (bug 739117) for unexpected Core Text crashes. 2015-12-29 09:08:24 +00:00
Sotaro Ikeda
6247e12af2 Bug 1205713 - Merge ImageHostOverlay/ImageClientOverlay to ImageHost/ImageClient r=nical 2015-12-29 01:07:33 -08:00
Jonathan Kew
f90087f1fa Bug 739117 - Avoid bidi-wrapping the text to be shaped if Core Text direction override API is available. r=jdaggett 2015-12-29 08:23:28 +00:00
Phil Ringnalda
46ab91d7db Bug 1226751 - Remove 358732-* crashtests, since they only race between not testing anything and accidentally setting and leaving a non-default font zoom, breaking later tests
--HG--
extra : rebase_source : d8314dd0166f5217355fe1daafdcd85b77f7effb
2015-12-28 20:41:46 -08:00
Xidorn Quan
7d9b6c8298 Bug 1234418 - Not trust glyph run starts from a cluster start character. r=jfkthame
--HG--
extra : source : f5014f1b1a5b7cda0c2631aef7b3f2480b0f42ed
2015-12-29 10:52:06 +11:00
Wes Kocher
35c7e42d9d Backed out changeset 3242bee2d956 (bug 1234418) for windows build bustage
--HG--
extra : commitid : FtpnZwAEEIm
2015-12-28 15:32:12 -08:00
Xidorn Quan
845f0ba847 Bug 1234418 - Not trust glyph run starts from a cluster start character. r=jfkthame
--HG--
extra : source : 9c199fbc892dd5712454f0efbcb286c9fc03ff00
2015-12-29 09:48:37 +11: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
Carsten "Tomcat" Book
6e689a3d75 Backed out changeset d569d015069d (bug 1176024) for crashes 2015-12-28 12:07:16 +01:00
Nicolas Silva
04ccc28a85 Bug 1176024 - Have TextureClient::Lock check that it can expose a DrawTarget when it makes sense. r=Bas 2015-12-28 10:46:25 +01:00
Kartikaya Gupta
bda9903434 Bug 1234950 - When advancing APZ animations, use the next vsync timestamp instead of the current one, since that is what will be composited. r=mstange
--HG--
extra : commitid : 7dGwaW6JsJE
2015-12-27 10:20:40 -05:00
Kartikaya Gupta
76cc51b1d0 Bug 1234950 - Advance APZ animations after updating the layer shadow transforms, rather than before. r=mstange
--HG--
extra : commitid : IrI8bVaN0gp
2015-12-27 10:20:40 -05:00
Markus Stange
e40139b856 Bug 1235223 - Fix typos in layers history document.
--HG--
extra : commitid : 45SVimxbmjv
2015-12-27 11:41:44 +01:00
Jeff Muizelaar
7e889ff52e Bug 1235223. Update history document. 2015-12-26 18:19:59 -05: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
Jim Chen
c601b57208 Bug 1232456 - Renew EGL surface using existing compositor widget; r=snorp
GLContextEGL needs a widget in order to recreate its surface. This patch
adds a widget parameter to RenewSurface so that the compositor can pass
in its widget.
2015-12-23 22:03:35 -05:00
Jim Chen
3dc603713a Bug 1232456 - Create EGL surface through widget; r=snorp
This patch makes GLContextProviderEGL create EGL surfaces through
nsWindow/nsIWidget on Android. nsWindow then calls GLController in Java
to actually create the surface.
2015-12-23 22:03:34 -05:00
Benoit Girard
a0b943f49b No bug - Don't update 'webgl.dxgl.enabled' at runtime.
--HG--
extra : commitid : 88A5aULhAKp
extra : rebase_source : 997ffa2ab857723c42328079ead94cb6c28ed03f
2015-12-23 14:55:22 -05:00
Bogdan Postelnicu
38d278b347 Bug 1232665 - initialize class members: mLastPrefLang and mLastPrefFirstFont. r=jfkthame 2015-12-15 06:58:00 +01:00
Jan Horak
76cccd6b7d Bug 1205643 - "Wrong scrollbar border prevents scrolling to cursor when mouse is on the screen edge". r=karlt 2015-12-22 05:05:00 +01:00
Kartikaya Gupta
20b0a294c6 Bug 1192919 - Follow-up to fix build error with logging enabled. r=me and DONTBUILD
--HG--
extra : commitid : Efxmaxlkgf
2015-12-22 15:12:53 -05:00
Markus Stange
1f10071e5a Bug 1147673 - Relax the ancestor transform assertion a little. r=kats
--HG--
extra : commitid : I0HH6fqUFCN
extra : rebase_source : bc7c6aa6d8cbae1337487fb2d772183fc827daad
extra : amend_source : f65a1cc998ce57cbe314ddc5568a4a3e77c5e31e
2015-12-22 17:06:04 +01:00
Botond Ballo
7aa5896a60 Bug 1147673 - Determine more accurately whether an async transform affects a layer's clip rect. r=kats
--HG--
extra : commitid : 8cSEIbgLUiP
extra : rebase_source : 9a72884f7f86863f39812f380fc12188425aac08
2015-10-02 18:35:21 -04:00
Markus Stange
2765aae43f Bug 1147673 - Unadjust clip before intersecting it with the scroll clip. r=botond
--HG--
extra : commitid : A66MeHC7Cxf
extra : rebase_source : 7a1b5e0a4169198bd5bd767671335fc24345b8ba
2015-10-09 14:30:44 +02:00
Bas Schouten
1dc2c7f65b Bug 1072501: Unmap file mapping on source surface destruction. r=jrmuizel 2015-12-01 16:41:08 +01: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
9425bbddb9 Bug 1156742 Part 18: Fix the way we hold custom font data so that they can be recorded with Moz2D. 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
0a3b8185ed Bug 1156742 Part 8: Change gfxWindowsSurface, so that a non-printing surface can be used when recording a print. r=roc 2015-12-21 20:33:13 +00:00
Bob Owen
8e74e544d2 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.
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
Bob Owen
c3f67cea48 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
David Anderson
f4833ef55c Remove the TaskThrottler. (bug 1192919 part 6, r=kats)
--HG--
extra : commitid : JuZhed3WCKS
2015-12-21 09:36:36 -05:00
David Anderson
7ac7e59093 Dispatch all APZ repaint requests immediately, and rely on content vsync. (bug 1192919 part 5, r=kats)
--HG--
extra : commitid : DDwJfxBiEGi
2015-12-21 09:36:36 -05:00
David Anderson
bbce6296fd Turn apz.use_paint_duration off. (bug 1192919 part 4, r=kats)
--HG--
extra : commitid : 9gfykJXaFJE
2015-12-21 09:36:36 -05:00
David Anderson
dd65d500c0 Force a paint to be scheduled for scroll info layers. (bug 1192919 part 3, r=kats)
--HG--
extra : commitid : 7wNzQZB1MQ8
2015-12-21 09:36:36 -05:00
David Anderson
c300f85389 Minimize the displayport for frames that must animate synchronously. (bug 1192919 part 2, r=kats)
--HG--
extra : commitid : KOesBg1UbmW
2015-12-21 09:36:36 -05:00
David Anderson
bba1b2478f Annotate FrameMetrics that are created for ScrollInfoLayers. (bug 1192919 part 1, r=kats)
--HG--
extra : commitid : 83SwqEe7GTb
2015-12-21 09:36:36 -05:00
Nicolas Silva
9bc4b1d4e6 Bug 1228952 - Move texture metadata out of the BufferTextureClient/Host's buffer. r=Sotaro 2015-12-16 19:50:58 +01:00
Milan Sreckovic
9ac3b8bc44 Bug 1230740 - wallpaper patch for a missing nullptr scenario. r=bas 2015-12-14 13:11:00 +01:00
Jeff Muizelaar
da469b9391 Bug 1218881. Enforce queries' new availability semantics. r=jgilbert
This adds a Runnable that we dispatch to the event loop so that we can make
sure queries don't become available before they are supposed to.
2015-12-18 17:05:42 -05:00
Wes Kocher
aacaab5baa Backed out changeset cdc2bfed4faa (bug 1218881) for static build bustage CLOSED TREE 2015-12-18 12:43:42 -08:00
Jeff Muizelaar
62b6b77c10 Bug 1218881. Enforce queries' new availability semantics. r=jgilbert
This adds a Runnable that we dispatch to the event loop so that we can make
sure queries don't become available before they are supposed to.
2015-12-18 14:40:08 -05:00
Lee Salzman
8f5cdef8ad Bug 1082598 - Part 8: Fix OpenGL interface glue for Skia update. r=jrmuizel 2015-12-18 13:53:25 -05:00
Lee Salzman
0f49d90f68 Bug 1082598 - Part 7: Update moz.build for Skia update. r=jrmuizel 2015-12-18 13:53:25 -05:00
Lee Salzman
b842645aab Bug 1082598 - Part 6: Fix layers for Skia update. r=jrmuizel 2015-12-18 13:53:25 -05:00
Lee Salzman
9692cfae0a Bug 1082598 - Part 4: Workaround for naming conflict in unified sources for Skia and thebes DWrite fonts. r=jrmuizel 2015-12-18 13:53:25 -05:00
Lee Salzman
2e90fd5bee Bug 1082598 - Part 3: Fix thebes gfxPlatform shutdown for Skia. r=jrmuizel 2015-12-18 13:53:25 -05:00
Lee Salzman
f9d4573bec Bug 1082598 - Part 2: Fix Moz2D Skia usage for Skia update. r=jrmuizel 2015-12-18 13:53:25 -05:00
Lee Salzman
231d83f99e Bug 1082598 - Part 1: Update Skia to master revision 53c5d5fb795fe04bec050c0583223027c25b839b. r=jrmuizel 2015-12-18 13:53:25 -05:00
Mason Chang
205a7b8ebb Bug 1233576. Ensure vsync timestamps are monotonic on Windows 10. r=kats 2015-12-18 08:32:21 -08:00
Morris Tseng
28c0197533 Bug 1172796 - Part 9: Use gfxPrefs to get webgl.enable-prototype-webgl2. r=jgilbert
--HG--
extra : commitid : 3Eh8pRaT6if
2015-12-18 14:52:17 +08:00
Morris Tseng
ef261c0b38 Bug 1215438 - Part 4: Rename CairoImage to SourceSurfaceImage. r=roc
--HG--
extra : commitid : H9H2n8GsBOK
2015-12-18 14:52:16 +08:00
Morris Tseng
f76ed9c612 Bug 1215438 - Part 3: CairoImage can use in any thread. r=roc
--HG--
extra : commitid : HbLlASdGESm
2015-12-18 14:52:16 +08:00
Morris Tseng
0d4ac3243e Bug 1215438 - Part 1: Add utility functions to support transferring ImageBitmap. r=roc
--HG--
extra : commitid : JdhYZUbeqRs
2015-12-18 14:52:16 +08:00
Morris Tseng
fc9369b927 Bug 1215005 - SourceSurface has thread-safe refcount now. r=bas
--HG--
extra : commitid : 9BKkelEOOvo
2015-12-18 14:52:16 +08:00
Wes Kocher
6ebc8a4b00 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)

--HG--
extra : commitid : LJSl0Bo8Hqr
2015-12-17 14:30:50 -08:00
Lee Salzman
20ff1d75e1 Bug 1082598 - Part 8: Fix OpenGL interface glue for Skia update. r=jrmuizel 2015-12-17 14:45:45 -05:00
Lee Salzman
85fdeade9f Bug 1082598 - Part 7: Update moz.build for Skia update. r=jrmuizel 2015-12-17 14:45:45 -05:00
Lee Salzman
1175a5cf53 Bug 1082598 - Part 6: Fix layers for Skia update. r=jrmuizel 2015-12-17 14:45:45 -05:00
Lee Salzman
a3827ec520 Bug 1082598 - Part 4: Workaround for naming conflict in unified sources for Skia and thebes DWrite fonts. r=jrmuizel 2015-12-17 14:45:45 -05:00
Lee Salzman
a773d64f13 Bug 1082598 - Part 3: Fix thebes gfxPlatform shutdown for Skia. r=jrmuizel 2015-12-17 14:45:45 -05:00
Lee Salzman
6239163dbb Bug 1082598 - Part 2: Fix Moz2D Skia usage for Skia update. r=jrmuizel 2015-12-17 14:45:44 -05:00
Lee Salzman
0507edf8dc Bug 1082598 - Part 1: Update Skia to master revision 53c5d5fb795fe04bec050c0583223027c25b839b. r=jrmuizel 2015-12-17 14:45:44 -05:00
David Anderson
8a7ec78385 Force a repaint after DXGI device resets. (bug 1188019, r=bas) 2015-12-17 11:20:08 -08:00
Kartikaya Gupta
bbb8c0c99f Bug 1229039 - If a PanGesture input block gets interrupted, just start a new block instead of not sending the rest of the events through the APZ. r=mstange
--HG--
extra : commitid : DfIcUatPF3a
2015-12-17 10:05:47 -05:00
Kartikaya Gupta
3491c08811 Bug 1229039 - Miscellaneous logging fixes/updates. r=botond
--HG--
extra : commitid : 2U8HdyLyvhc
2015-12-17 10:05:12 -05:00
Nicholas Nethercote
d460857c94 Bug 1231256 (part 5) - Remove dead FromCSSPerspectiveInfo() function. r=vlad.
--HG--
extra : rebase_source : 495ec764ff035ec24a7c554469cb3837d8027570
2015-12-07 15:20:02 -08:00
Nathan Froyd
60d8ca5bfc Bug 1232772 - fix typo causing Windows build bustage; r=me 2015-12-16 17:12:45 -05:00
Botond Ballo
4807f41392 Bug 1231228 - Gtest. r=kats
--HG--
extra : rebase_source : 6e3c096fa3c36fb4febf46afe0166b691707ecfa
2015-12-16 10:49:42 -05:00
Botond Ballo
53db1e46bd Bug 1231228 - Correctly check for whether an APZC along the handoff chain is panned into overscroll. r=kats
--HG--
extra : rebase_source : 5cf886e4380e1f47c0adc397bd7f1440ca079342
2015-12-14 19:55:37 -05:00
Nathan Froyd
4094e18ff5 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
4cd6379278 Bug 1230357. Enable subpixel text on skia content backends. r=lsalzman 2015-12-16 12:43:49 -08:00
Jeff Muizelaar
13e85d0c92 Bug 1232902. Update ANGLE to chromium/2592 2015-12-16 10:13:56 -05:00
Carsten "Tomcat" Book
537f8683a1 Backed out changeset 1cbfa21cf2b5 (bug 1147673) for mulet r5 test failures on a CLOSED TREE 2015-12-16 11:53:11 +01:00
Carsten "Tomcat" Book
e833356e71 Backed out changeset 9e1f2694536c (bug 1147673) 2015-12-16 11:52:41 +01:00
Botond Ballo
2d178ca987 Bug 1147673 - Determine more accurately whether an async transform affects a layer's clip rect. r=kats
--HG--
extra : commitid : F4iMY0eM8d5
extra : rebase_source : c43c431179980ee611c77b05b50b515776c22374
extra : histedit_source : 95e175838feea81486905a3af94f1928c5ef5e25
2015-10-02 18:35:21 -04:00
Markus Stange
8fdc7a632d Bug 1147673 - Unadjust clip before intersecting it with the scroll clip. r=botond
--HG--
extra : commitid : 5p2hV51eK8m
extra : rebase_source : 1c3cd6b1d3d875b105dcb7b08481761281e700df
extra : histedit_source : 4689eccff58db10a341813ce25403374cc13a4d0
2015-10-09 14:30:44 +02:00
Nicholas Nethercote
a4dc4a929c Bug 1232576 (part 2) - Rename gfxContext::GetCairo() as GetRefCairo() and make it static. r=jfkthame.
This means its callers now need a DrawTarget instead of a gfxContext.

--HG--
extra : rebase_source : 909cbf179cfbffa47fb70f417b2f50b641534a02
2015-12-14 22:26:23 -08:00
Nicholas Nethercote
922099a41a Bug 1232576 (part 1) - Move the reference |cairo_t*| from gfxContext to DrawTarget (as user data). r=jfkthame.
--HG--
extra : rebase_source : 5f4be8b9cb4a24527ee95468239ff6ff26d4a279
2015-12-14 22:23:51 -08:00
Jeff Muizelaar
948ebf9004 Bug 1232668. Allow using kTex2DBlit_FragShaderSource on non-ES targets.
This avoids compile errors when using Mesa.
2015-12-15 12:48:15 -05:00
Kartikaya Gupta
f5746f61bb Bug 1231915 - Ignore the APZ pref if MOZ_ANDROID_APZ is enabled, since the pref doesn't cover all the relevant code. r=rbarker
--HG--
extra : commitid : FZ846EwVxHJ
2015-12-15 09:17:41 -05:00
Nicholas Nethercote
0a1ca6ebfe Bug 1231256 (part 4) - Remove dead SetContext() declaration. r=jfkthame.
--HG--
extra : rebase_source : f06b122d91c426e655414b27ec4b2e3c2c1ca587
2015-12-07 15:19:56 -08:00
Kartikaya Gupta
0dcf99f8a4 Bug 1229052 - Log a warning when we detect a scroll-linked effect based on the scroll event. r=roc 2015-12-14 14:47:24 -05:00
Kartikaya Gupta
c62107a38b Bug 1232484 - Remove 'using namespace gfx' and missing includes that were papered over by unified builds but can cause breakage. r=BenWa 2015-12-14 15:09:17 -05:00
Botond Ballo
0bbef860d9 Bug 1170325 - Undo an unnecessary signature change to AsyncPanZoomAnimation::TakeDeferredTasks(). r=Waldo
Also change the implementation to use Move() instead of swap().
2015-12-14 18:38:25 -05:00
Botond Ballo
beeb941dc6 Bug 1230552 - Minor follow-up to add an assertion. rs=kats 2015-12-14 18:10:14 -05:00
Jeff Muizelaar
c789c7e526 Bug 1232480. Use 'precision' instead of 'prevision'
A fun little typo.
2015-12-14 18:02:53 -05:00
Nicholas Nethercote
5434a4fec1 Bug 1231864 (part 2) - Clean up gfxWindowsNativeDrawing::BeginNativeDrawing(). r=mattwoodrow.
This patch inlines the CurrentSurface() and GetDCWithClip() calls in
BeginNativeDrawing(). This allows them to share a single |cairo_t*| and gets
rid of the GetCairo() call in GetDCWithClip(), which was one of those confusing
ones that only made sense if its a Cairo backend.

The patch also inverts the sense of mDeviceOffset, and changes its type from
gfxPoint to Point.
2015-12-14 15:00:08 -08:00
Nicholas Nethercote
7df55cf9f2 Bug 1231864 (part 1) - Remove useless GetCairo() call in gfxWindowsNativeDrawing::BeginNativeDrawing(). r=mattwoodrow.
GetCairo() never returns null so testing its result like this is pointless.
2015-12-14 14:59:33 -08:00
Botond Ballo
e09094f3cd Bug 1230552 - Fuzz a floating-point comparison to avoid an intermittent test failure. r=bustage 2015-12-14 17:46:55 -05:00
Botond Ballo
e8098f6ff2 Bug 1230552 - Extend the immediate scroll handoff pref to apply to flings. r=kats
--HG--
extra : commitid : A4UZJ8vLfjW
extra : rebase_source : f46922f1b13ec8fded72e5eb09045a8fe6e2dc03
2015-12-12 14:31:25 -05:00
Botond Ballo
ab1b789f18 Bug 1230552 - Introduce a structure to group fling handoff state. r=kats
This patch also cleans up APZCTreeManager::DispatchFling() a bit.

--HG--
extra : commitid : 5z1y3kVfOOY
extra : rebase_source : c4d8dfa546d0ce43e0be71378e20d23d28f368cf
2015-12-12 14:31:20 -05:00
Botond Ballo
e3717af9b2 Bug 1230552 - Make immediate scroll handoff for panning prefable. r=kats
Immediate handoff is the current behaviour. The alternative is to
only allow a single input block to scroll a single APZC.

--HG--
extra : commitid : J4iuAOn9QAo
extra : rebase_source : 3075d8334b62374697a25d358709dd18e2394836
2015-12-14 14:47:56 -05:00
Botond Ballo
9753021fd9 Bug 1230552 - Introduce a helper AsyncPanZoomController::CurrentInputBlock(). r=kats
--HG--
extra : commitid : tjvQ9vFjQG
extra : rebase_source : ca1e6210602ebade929a1c2864a1c7de48bbd84b
2015-12-12 13:03:52 -05:00
Botond Ballo
3ec5bb5d99 Bug 1230552 - Const-correctness improvements. r=kats
--HG--
extra : commitid : 2kwPNmmpN3Y
extra : rebase_source : aa55db9e49871cb9e4a6e95a8fc776ffbd0d67b6
2015-12-11 17:42:50 -05:00
Botond Ballo
1e3e735b5a Bug 1230552 - Update some out-of-date comments and remove an old #undef. r=kats
--HG--
extra : commitid : 7R2ds1KVd3o
extra : rebase_source : a7185a20194ae9c7a535cb46510e5f9885c1a434
2015-12-11 17:49:45 -05:00
Kartikaya Gupta
6b0c32286a Back out 5 csets from bug 1229052 on a CLOSED TREE for failing to fix the nonunified build error even after many attempts. r=backout 2015-12-14 15:52:31 -05:00
Kartikaya Gupta
dba8b70b53 Bug 1229052 - Another follow-up to fix pre-existing non-unified build bustage that got exposed by new file addition. r=me 2015-12-14 15:09:17 -05:00
Kartikaya Gupta
19cb1d22ce Bug 1229052 - Follow-up to fix static analysis build bustage. r=me 2015-12-14 15:02:56 -05:00
Kartikaya Gupta
fcb193563c Bug 1229052 - Log a warning when we detect a scroll-linked effect based on the scroll event. r=roc 2015-12-14 14:47:24 -05:00
Bogdan Postelnicu
df2e5b8773 Bug 1230913 - modified assert in order to prevent null pointer dereference. r=roc
--HG--
extra : rebase_source : d0735da955caaa36dfd74100479b0114a140a926
2015-12-14 00:01:00 +01:00
Kartikaya Gupta
f3df212995 Bug 1232094 - Make some APZ prefs live. r=botond
--HG--
extra : commitid : H2xnoEnxo1m
2015-12-14 09:29:02 -05:00
Bogdan Postelnicu
ca7864726d Bug 1230911 - modified asseert in order to prevent null pointer dereference. r=roc
--HG--
extra : rebase_source : 04bbec02d594e0006ed127005a3cc653cb5e195f
2015-12-13 23:59:00 +01:00
Nicholas Nethercote
45631955a0 Bug 1231889 - Moz2Dify gfxWindowsNativeDrawing::PaintToContext(). r=mattwoodrow. 2015-12-13 14:26:14 -08:00
Phil Ringnalda
e8127f059d Bug 1226751 - Skip gfx/tests/crashtests/358732-1.xhtml for causing assertion failures in later (much later) tests 2015-12-12 11:32:05 -08:00
Botond Ballo
b60060e864 Bug 1231972 - Document how the apz.fling_friction pref is used. r=kats. DONTBUILD for comment change
--HG--
extra : rebase_source : de68c270a64576ddf22ec6395ea0a80fcfe638e7
extra : amend_source : d24ebe08909ae39d7def62278b4c94d336fe700f
extra : source : 740993b673df97ac590b5bc481bacefc634919a6
2015-12-11 11:50:52 -05:00
Kartikaya Gupta
23a4ed497e Bug 1230611 - Make gfxWindowsPlatform::SupportsApzTouchInput use a pref cache to speed it up. r=dvander 2015-12-11 11:51:53 -05:00
Milan Sreckovic
06d79c4606 Bug 1219494 - Part 4. gfx/layers and gfxCrash. r=mchang 2015-12-10 13:01:00 +01:00
Milan Sreckovic
4a422858eb Bug 1219494 - Part 3 gfx/gl with gfxCrash. r=mchang 2015-12-10 13:01:00 +01:00
Milan Sreckovic
bf9a6ffcc5 Bug 1219494 - Part 2. gfx/2d and gfxCrash. r=milan
* * *
Bug 1219494: Part 3. gfx/thebes, gfx/src and gfxCrash
2015-11-26 08:38:00 +01:00
Kartikaya Gupta
e0c2c8e4f0 Bug 1228597 - Clean up code paths that (un)apply a pres shell resolution. r=tn,botond
A clear separation is introduced between paths that deal with a root
document resolution (at the process boundary in e10s setups) and paths
that deal with a non-root document resolution (elsewhere in Layout code).

This allows both code paths to run on all platforms.

--HG--
extra : source : 22bf09630803392dba3052a3f79691475af0c5e2
2015-11-30 19:13:20 -05:00
Botond Ballo
1cb64f6960 Bug 1228597 - Remove the MOZ_SINGLE_PROCESS_APZ define. r=tn
Code previously guarded by this (added in bug 1224015) will now run
unconditionally.

--HG--
extra : source : ce0f51f55572334002ddf1878db447540d4c9b82
2015-11-27 21:39:07 -05:00
Botond Ballo
17f62ef823 Bug 1231500 - Fix a typo in the APZ axis locking code where the lock angle is used when the breakout angle is intended to be used. r=kats
--HG--
extra : source : e67a0ba7be6579eb808ec184b8ef0c00f804385b
2015-12-09 15:23:22 -05:00
Kartikaya Gupta
f34243dde5 Bug 1231504 - Move some prefs from b2g.js to all.js. r=botond
--HG--
extra : commitid : 9MqaJOyoogU
2015-12-10 15:28:50 -05:00
Kartikaya Gupta
7df84c3309 Bug 1228602 - Ensure that we pick up the presShell resolution from the layer if there isn't a metrics. r=botond
--HG--
extra : commitid : BXooH3Gj0wh
2015-12-09 17:29:03 -05:00
Phil Ringnalda
d3b0e4b03c Back out 975af6bc574f (bug 1072501) for Win32 talos e10s bustage in g1, s, and tp
CLOSED TREE
2015-12-09 13:17:25 -08:00
Bas Schouten
7af09b5c7f Bug 1072501: Unmap file mapping on source surface destruction. r=jrmuizel 2015-12-01 16:41:08 +01:00
Kartikaya Gupta
032da3cd95 Bug 1231245 - Fix logging of Matrix4x4. r=botond
--HG--
extra : commitid : 8HOiKPqHaLA
2015-12-09 11:03:21 -05:00
Kartikaya Gupta
73f5271bd6 Bug 1228407 - Update existing smooth scroll animations with new destinations when possible, rather than canceling and restarting them. r=kip
--HG--
extra : commitid : H4QRRo3wTaJ
2015-12-09 10:13:35 -05:00
Kartikaya Gupta
87a2795095 Bug 1228407 - Rearrange some code by extracting a helper function. r=botond
--HG--
extra : commitid : EZYicbcIoH9
2015-12-09 10:13:35 -05:00
Jamie Nicol
de618f4222 Bug 1221073 - Increase max tile size to 1024 again. r=mstange
Make the heuristic for the tile size aim for > 2 and <= 4 tiles per
screen width, but no larger than 1024. This increases the tile size back
up to 1024 on retina macbooks.
2015-12-08 21:42:43 +00:00
Kartikaya Gupta
9491a614c4 Back out three patches from bug 1228407 on a CLOSED TREE for causing various mochitest failures. r=backout
--HG--
extra : commitid : 7gaWjh5Noye
2015-12-08 21:00:30 -05:00
Kartikaya Gupta
4d02cf3453 Bug 1228407 - Update existing smooth scroll animations with new destinations when possible, rather than canceling and restarting them. r=kip
--HG--
extra : commitid : 79qbyaSGwHa
2015-12-08 14:56:26 -05:00
Kartikaya Gupta
378206686c Bug 1228407 - Rearrange some code by extracting a helper function. r=botond
--HG--
extra : commitid : EDOEU69Vyjy
2015-12-08 14:56:26 -05:00
Kartikaya Gupta
d66458bcdc Bug 1231168 - Disable memory-based displayport size adjustment by default. r=mchang
--HG--
extra : commitid : 6bdKkfe8ym2
2015-12-08 14:46:58 -05:00
Bogdan Postelnicu
eb629aa171 Bug 1230929 - modified the logic in order to prvent null pointer dereference. r=jmuizelaar 2015-12-07 07:36:00 +01:00
Bogdan Postelnicu
5448c47174 Bug 1230149 - check bigImgIter to see if it's not null. r=jmuizelaar 2015-12-03 06:46:00 +01:00
Jonathan Kew
d7a175fd88 Bug 1230497 - Ignore font fallback in Core Text shaping if it's just for a join-control character. r=jdaggett 2015-12-07 19:22:06 -05:00
Nicholas Nethercote
50a52a2781 Bug 1229662 (part 3) - Remove AzureState::fillRule. r=jrmuizel.
AzureState::fillRule is never set to any value other than FILL_WINDING. It can
be removed. Note that TransformedCopyToBuilder() and CopyToBuilder()'s FillRule
arguments both default to FILL_WINDING.
2015-12-06 18:18:00 -08:00
Nicholas Nethercote
b5a3f4e12b Bug 1229662 (part 2) - Remove AzureState::parentTarget. r=jrmuizel. 2015-12-06 18:17:59 -08:00
Nicholas Nethercote
16d5d92df9 Bug 1229662 (part 1) - Remove AzureState::clipWasReset. r=jrmuizel.
AzureState::clipWasReset is never set to any value other than false. It can be
removed.
2015-12-06 18:17:57 -08:00
Nicholas Nethercote
02842898a0 Bug 1230413 (part 3) - Remove unused gfxContext argument from SetSpaceGlyphIfSimple(). r=jfkthame.
--HG--
extra : rebase_source : fbd23567601680bd165a72abf1ca6a70f2e3a453
2015-12-06 14:13:25 -08:00
Nicholas Nethercote
4fdc67c5bd Bug 1230413 (part 2) - Change CallbackData::mContext to a DrawTarget. r=jfkthame.
Also remove CallbackData::mShaper, which is unused.

--HG--
extra : rebase_source : 6e25d4fd10b490a7b5c2f772a51b268cb05cb1f6
2015-12-06 14:13:19 -08:00
Nicholas Nethercote
82700fe5f9 Bug 1230047 (part 2) - Make several PaintWindow() functions use LayoutDevice coordinates. r=kats.
Specifically, the PaintWindow() functions in the following classes:
- nsIWidgetListener, and its subclasses nsView and nsWebBrowser;
- nsChildView;
- nsWindow (the one in widget/uikit/);
- nsViewManager.

--HG--
extra : rebase_source : e5e0af18c57f1c44995832b403edc7eee939dc31
2015-12-02 21:45:41 -08:00
Milan Sreckovic
b216c58347 Bug 1200021 - Part 3: Add DrawTarget::IsValid and don't let Cairo version snapshot invalid surface. r=bas 2015-12-04 13:43:00 -05:00
Nick Fitzgerald
4560db90e5 Bug 1170325 - Convert js::Vector into a template alias to mozilla::Vector with a single customized default argument. Also get rid of the CRTP support in mozilla::Vector (through mozilla::VectorBase) now that template aliasing is good enough, and make mozilla::Vector final so that people will use composition and not inheritance with it. (Inheritance plays poorly with movability and a few other things, in addition to messing up template argument deduction matching.) r=Waldo, patch sort of a tag-team between him and me 2015-07-13 12:42:52 -07:00
Mason Chang
4300e45d71 Bug 1227216. Part 2: Fallback to blur destination rect if a large shadow offset occurs. r=mstange 2015-12-04 11:05:47 -08:00
Mason Chang
380d965bc0 Bug 1227216. Part 1: Only draw surface on inset box shadows if dest and src are equal sizes. r=mstange 2015-12-04 11:05:45 -08:00
Nicolas Silva
189b50c6c8 Bug 1222123 - Warning fix in CompositorD3D11.cpp. r=Bas 2015-12-04 11:23:53 +01:00
Nicolas Silva
e9b85ee52f Bug 1229577 - Rename NewSurfaceDescriptorGralloc into SurfaceDescriptorGralloc. r=sotaro 2015-12-04 11:23:42 +01:00
Sotaro Ikeda
29ad0bee26 Bug 1219210 - Add ITextureClientAllocationHelper and VENUS color handling r=nical,jolin 2015-12-04 02:13:49 -08:00
Chris Peterson
46bb7c80dd Bug 1228947 - Replace mfbt/Constants.h with math.h. r=roc
--HG--
extra : rebase_source : 4ab2c4a917ea90055e48bd6adcb53904f2266ee0
2015-11-27 20:49:55 -08:00
Bas Schouten
93e36d199e Bug 1229533: Ensure our RenderingTargetView for the backbuffer and the backbuffer itself have no lingering references, and log if they do. r=milan 2015-12-04 04:20:29 +01:00
Nicholas Nethercote
5a37352d4a Bug 1229665 - Convert widget clip regions to LayoutDevicePixels. r=botond.
--HG--
extra : rebase_source : 315ac98884f84f3b5d53f156f3e02ddde3a57dbc
2015-12-02 14:32:55 -08:00
Jeff Muizelaar
2b32c585ee Bug 1229152. Expose unsized GL_FLOAT formats required by GL_OES_texture_float
BUG=angleproject:1209
2015-12-03 16:40:51 -05:00
Jeff Muizelaar
303885a832 Bug 1207288. Ask ANGLE for the correct output version. r=jgilbert 2015-12-03 14:37:02 -05:00
Jan Beich
814acd7ab8 Bug 1228208 - Make sure ICU flags are prepended before system flags. r=glandium 2015-12-02 09:40:50 +00:00
Markus Stange
c08ac5b411 Bug 1229125 - Reset velocity in OnPanEnd if there's nowhere to scroll. r=botond
--HG--
extra : commitid : 52Vm5QAFKyD
extra : rebase_source : 54e8561aa8096ccfe404cbe8b2861f12e4075f71
2015-12-02 22:47:01 +01:00
Markus Stange
48f438e8a7 Bug 1229125 - Correct velocity computation for pan gesture events. r=botond
When scrolling down, panInput.mLocalDisplacement.y will be positive, so
aAdditionalDelta will be positive, and newVelocity must be positive.

--HG--
extra : commitid : GlT0IqOWqiI
extra : rebase_source : 2fc0347d943ac7bf8eac2f2da6f7b6b217bdbe0d
2015-12-01 15:13:34 +01:00
Jacek Caban
5f1aa8ed06 Bug 1225280 - mingw fixup. r=upstream
--HG--
extra : rebase_source : f3a1dbbb4fcab73aca7b3622113123428f37ea03
2015-12-03 11:38:24 +01:00
Jamie Nicol
0677db9d9a Bug 1229780 - Remove TextureClientPool helper functions from ClientLayerManager, r=mwoodrow
The fix for bug 1209801 made it so that TextureClientPools are
distinguished by a TextureFlags parameter as well as a
SurfaceFormat. The pools will create TextureClients satisfying both the
requested flags and format parameters.

The helper functions ReturnTextureClientDeferred, ReturnTextureClient,
and ReportClientLost were updated to use the TextureFlags of the client
to guess which pool the client came from. It is possible, however, for a
TextureClient to have additional flags to those that the pool requested
it have. This could then cause the clients to be returned to incorrect
pools.

Fortunately these helper functions were not being used anywhere, so
remove them.
2015-12-02 15:04:36 +00:00
Botond Ballo
79efe79201 Bug 1069417 - Fix an error introduced when rebasing across bug 1021845 to reopen a CLOSED TREE. r=bustage 2015-12-03 02:20:35 -05:00
Botond Ballo
ae1bdc7602 Bug 1069417 - Remove the explicit template argument of TransformTo() and related functions. r=kats
In this process, TransformTo() and UntransformTo() are renamed TransformedBy()
and UntransformBy() so calls to them continue to read sensibly.

--HG--
extra : rebase_source : a2a4b36514cc54533757c075fcf2c53ab3020939
extra : source : 826da3dc12baeb84b32be50f4b2c0591ca73ab37
2015-11-30 20:06:45 -05:00
Botond Ballo
70b749edea Bug 1069417 - Modify TransformTo() and related functions to use typed matrices. r=kats
Call sites (all in APZ and related code) were modified accordingly. Some of
these modifications involved changing some matrices stored in APZ to be typed.

--HG--
extra : rebase_source : 6f1cf33a5550987097fcd386c77765d046f5ec34
extra : source : 8f66bdc8e6e86f482a06b9c7a160740026cf24b4
2015-11-30 20:14:31 -05:00
Botond Ballo
0858698ac3 Bug 1069417 - Generalize Matrix4x4 into Matrix4x4Typed<SourceUnits, TargetUnits>. r=Bas
Matrix4x4 remains a typedef for Matrix4x4Typed<UnknownUnits, UnknownUnits>.

No client code needed changing, except for forward-declarations of Matrix4x4
as a class (since it's now a typedef).

--HG--
extra : rebase_source : ecd9470b9defcc55cfb9e7dbd26e928a6219c3e5
extra : source : 0fc99b5490830953f37a4d8769e42dad2d10bc6e
2015-12-02 18:52:00 -05:00