Commit Graph

8493 Commits

Author SHA1 Message Date
David Anderson
718c1c97fe Don't attach shadowable layers if IPDL fails to construct an actor. (bug 1314349, r=mattwoodrow) 2016-11-06 18:50:15 -08:00
David Anderson
4558802c65 Remove bogus assertion in LayerTransactionChild::Destroy. (bug 1314408, r=mattwoodrow) 2016-11-06 18:49:03 -08:00
Sebastian Hengst
6300f967b0 Bug 1310297 - Remove test annotations using b2g, mulet or gonk: gfx. r=RyanVM
MozReview-Commit-ID: BpBHHDCEZfL

--HG--
extra : rebase_source : 41b2e53689e31541fe0edf42df9d38eb3a3d486f
2016-11-05 11:29:19 +01:00
Phil Ringnalda
c1b863b390 Merge m-c to autoland 2016-11-04 19:05:33 -07:00
Ting-Yu Lin
904617e77f Bug 1310509 - Call NotifyAsyncPanZoomStarted/Stopped on document containing current scrolling content. r=kats
We now call NotifyAsyncPanZoomStarted/Stopped precisely on the document
which is being transformed, so we no longer need to notify the child
docshells which was added in Bug 1088559.

Remove the |nsIDocument| argument for ProcessAPZStateChange(), which is not
used anymore.

mActiveAPZTransforms added in bug 1142926 is removed because AccessibleCaret
is the only consumer for AsyncPanZoomStarted/Stopped, and it now defaults to
always show while scrolling, i.e.
"layout.accessiblecaret.always_show_when_scrolling" defaults to true. And I
cannot reproduce the bug even if I turn off the preference.

MozReview-Commit-ID: DiEk2gCIHn2
2016-11-04 22:27:02 +08:00
Sotaro Ikeda
e00689f3bd Bug 1313518 - Revert Bug 1273823 if width is not aligned to 32 r=nical 2016-11-03 18:41:16 -07:00
Matt Woodrow
6dad1a961a Bug 1300676 - Part 3 - Implement readback for GPU videos. r=dvander,nical 2016-11-04 13:28:28 +13:00
Matt Woodrow
fa682784c8 Bug 1300676 - Part 2: Expose SurfaceDescriptor helpers. r=nical 2016-11-04 13:28:28 +13:00
Matt Woodrow
4f998dbe2b Bug 1300676 - Part 1: Allow asynchronous deletion of Shmem for VideoDecoderManagerChild. r=dvander 2016-11-04 13:28:28 +13:00
Kevin Wern
01b23685d7 Bug 1249710: fix unit mismatch calculating scroll range during async scrollbar drag r=botond
When calculating the max scroll position, the size of mCompositionBounds is
subtracted from the size of mScrollableRectangle. Unfortunately, the former is
in ParentLayer units and the latter is in CSS units. This causes the final
scroll position to become staggered relative to the mouse when user zoom is not
100%.

Use cssCompositionBounds, mCompositionBounds transformed to CSSRect, which
changes based on zoom. Additionally, refactor GetAxis* functions to return
typed units, where possible.

MozReview-Commit-ID: Ec9cOMP1cdT

--HG--
extra : rebase_source : 1af911a91fe4d13c8563d3c086ac688ec65d2f3c
2016-11-02 04:45:09 -04:00
Matt Woodrow
cc6c76aab2 Bug 1314194 - Make sure we don't recycle textures in the GPU process before they have finished being used. r=nical 2016-11-03 09:57:18 +13:00
Matt Woodrow
3b4d158ee3 Bug 1314189 - Only create a RemoteVideoDecoder if the current LayerManager is using the GPU process. r=dvander 2016-11-03 09:57:15 +13:00
Matt Woodrow
426bc3ee3f Bug 1314187 - Implement GetYUVColorSpace for GPUVideoTextureHost. r=sotaro 2016-11-03 09:55:07 +13:00
Matt Woodrow
f884ec26e9 Bug 1300675 - Rebuild VideoDecoderManager when we restart the GPU process. r=dvander 2016-11-03 09:55:07 +13:00
Matt Woodrow
9e56f22190 Bug 1314186 - Resync LayerTreeId mappings to the GPU process if it restarts. r=dvander 2016-11-03 09:55:07 +13:00
Edwin Flores
12c57c38dd Bug 1309277 - Allow D3D9 without component alphaa - r=mattwoodrow 2016-11-02 10:55:07 +00:00
Kartikaya Gupta
1320e96e69 Bug 1313170 - Ensure that the touchend events in helper_bug1162771 are sent with the correct coordinates. r=dvander
The test in helper_bug1162771 dispatches a touchstart on an element, and then
inside the touchstart handler makes that element display:none. It then sends a
touchend at what should be the same position. However, since the position of the
touch is calculated from the position of the element, the touchend position can
be wrong because the element is set to display:none in between. This patch
saves the position before sending the touchstart, and makes sure to use the
same position for the touchend.

MozReview-Commit-ID: GoyQvNJ1wRZ

--HG--
extra : rebase_source : 10fbd5d306aa36b46196758d672fce72347ca638
2016-10-31 10:05:18 -04:00
Kartikaya Gupta
cb026d2536 Bug 1313170 - Use the widget-level touch injection instead of the OS-level touch injection for some tests. r=dvander
When using the InjectTouchInput API on Windows, the API requires that the caller
keep providing input frames (by calling the API function) at least every 100ms.
If the caller fails to do so, Windows can return an ERROR_TIMEOUT and throw
away the touch sequence. In some tests, it is hard for us to make this guarantee,
because we need to wait for other events between the touchdown and touchup. For
these tests, we can use the widget-level touch injection code that we have as
a fallback for the OS-level touch injection code. The widget-level touch
injection is less representative of real-world usage but allows us to bypass
the timeout problem.

MozReview-Commit-ID: EoVUSZmERUw

--HG--
extra : rebase_source : 4f7ca1a1e6da4479d51526e8f132f5cb23fceb49
2016-10-31 10:05:15 -04:00
David Anderson
50bf760132 Handle failed SendPTexture. (bug 1313770 part 5, r=mattwoodrow)
--HG--
extra : rebase_source : ca9d185730991973a16fd6751b267de65aca84c5
2016-10-28 15:48:35 -07:00
David Anderson
4ad2f45f29 Handle failed SendPCompositable. (bug 1313770 part 4, r=mattwoodrow)
--HG--
extra : rebase_source : 15bbe1c0bd61f3f8698ab296fc52d676e758ea38
2016-10-28 15:48:35 -07:00
David Anderson
a5058127f9 Handle failed SendPImageContainerConstructor. (bug 1313770 part 3, r=mattwoodrow)
--HG--
extra : rebase_source : 29089aa04fc2838c649ba92732cecacb62f8505f
2016-10-28 15:48:35 -07:00
David Anderson
76322c8fc4 Make CreateImageClient fallible. (bug 1313770 part 2, r=mattwoodrow)
--HG--
extra : rebase_source : 1dcf94cb15995e7ca8b3c4c5901562dbc4959243
2016-10-28 15:48:35 -07:00
David Anderson
ecf530eb6f Do not paint if a BeginTransaction fails. (bug 1313770 part 1, r=mattwoodrow)
--HG--
extra : rebase_source : 482b24f52da24de87dd459ac6d003b286206e54e
2016-10-28 15:48:34 -07:00
Kartikaya Gupta
b519ec7751 Bug 1312059 - Followup to fix const-correctness. rs=botond
MozReview-Commit-ID: LizJ0sjAXnx
2016-10-28 11:01:50 -04:00
Matt Woodrow
5ab6ff0b97 Bug 1313281 - Part 6: Remove FenceHandle. r=sotaro 2016-10-27 21:02:12 +13:00
Matt Woodrow
6250728c9c Bug 1313281 - Part 5: Remove NeedsFenceHandle. r=sotaro 2016-10-27 21:02:12 +13:00
Matt Woodrow
56b15734eb Bug 1313281 - Part 4: Remove Fence parameter from TextureData::Lock. r=sotaro 2016-10-27 21:02:09 +13:00
Matt Woodrow
cd3c3b3268 Bug 1313281 - Part 3: Remove Fence from TimedTexture. r=sotaro 2016-10-27 21:00:20 +13:00
Matt Woodrow
db63ec0ace Bug 1313281 - Part 2: Remove DeliverFence. r=sotaro 2016-10-27 20:59:50 +13:00
Matt Woodrow
bda6eacad9 Bug 1313281 - Part 1: Remove AsyncTransactionTracker. r=sotaro 2016-10-27 20:59:23 +13:00
Phil Ringnalda
76f5d03bb6 Merge m-c to m-i
MozReview-Commit-ID: LUDPZ08eWBo
2016-10-26 18:58:54 -07:00
Matt Woodrow
4d0b10822d Bug 1308363 - Remove GONK specific code from gfx/. r=jrmuizel,sotaro 2016-10-27 13:17:10 +13:00
Hiroyuki Ikezoe
4999550c29 Bug 1311196 - Part 3: Adjust fill mode to fill forwards for all animations on the compositor. r=birtles
MozReview-Commit-ID: DsIrWoxci0X

--HG--
extra : rebase_source : 559edb1756cf13b2677cabcc18321825c9fd8e4c
2016-10-26 17:19:38 +09:00
Phil Ringnalda
435a27119b Merge m-c to m-i
MozReview-Commit-ID: 8nqgw9Q3gSY
2016-10-25 22:07:07 -07:00
Phil Ringnalda
8cf1367dd8 Merge m-i to m-c, a=merge
MozReview-Commit-ID: FnnOWQ3xKPi
2016-10-25 22:03:31 -07:00
David Anderson
d0a9a85fba Don't query gfxPlatform for the vsync rate in CompositorBridgeParent. (bug 1312835, r=mattwoodrow)
--HG--
extra : rebase_source : 152bb6f146dc452d239fa7a90fcdcda3311d52de
2016-10-25 16:25:52 -07:00
David Anderson
20b34a53e8 Don't use gfxPlatform for creating temporary surfaces in the BasicCompositor. (bug 1311770, r=mattwoodrow) 2016-10-25 18:23:03 -07:00
Lee Salzman
926f3f5746 Bug 1299435 - part 2 - fix Moz2d for Skia m55 update. r=mchang
MozReview-Commit-ID: 8jRzOaS5vqy
2016-10-24 22:40:59 -04:00
Sotaro Ikeda
a514bb26e8 Bug 1310405 - Set DXGIYCbCrTexture YUVColorSpace to BT601 r=mattwoodrow 2016-10-24 18:17:39 -07:00
Wes Kocher
951194ee45 Backed out 6 changesets (bug 1299435) for windows reftest failures a=backout
Backed out changeset 0d587a1cab8f (bug 1299435)
Backed out changeset 3ab9d3cb13aa (bug 1299435)
Backed out changeset 1ed742f88f49 (bug 1299435)
Backed out changeset 51ad497c7ac2 (bug 1299435)
Backed out changeset 06ca6acef0a2 (bug 1299435)
Backed out changeset ebd4625e101a (bug 1299435)

--HG--
rename : gfx/skia/skia/src/animator/SkCondensedDebug.inc => gfx/skia/skia/src/animator/SkCondensedDebug.cpp
rename : gfx/skia/skia/src/animator/SkCondensedRelease.inc => gfx/skia/skia/src/animator/SkCondensedRelease.cpp
2016-10-24 16:45:46 -07:00
Lee Salzman
ab9cf08d5a Bug 1299435 - part 2 - fix Moz2d for Skia m55 update. r=mchang
MozReview-Commit-ID: 8jRzOaS5vqy
2016-10-24 15:22:20 -04:00
Kartikaya Gupta
3af5c36a88 Bug 1312059 - Stop passing the CompositorBridgeParent into the APZCTreeManager; instead the necessary subinterfaces can be obtained via the LayerTreeState. r=botond
MozReview-Commit-ID: 3N8vC3l3jfV
2016-10-24 15:12:57 -04:00
Kartikaya Gupta
98051ec8f2 Bug 1312059 - Extract a MetricsSharingController interface for the APZC code to use when dealing with shared frame metrics. r=botond
MozReview-Commit-ID: 9b2Vfamr1XT
2016-10-24 15:12:55 -04:00
Kartikaya Gupta
dbedac3125 Bug 1312059 - Extract a CompositorController interface for the APZ code to request composites and do other compositor-related things. r=botond
MozReview-Commit-ID: Ja9NGu2oWPN
2016-10-24 15:12:53 -04:00
Kartikaya Gupta
a5b8dc0091 Bug 1219296 - Followup to fix stale code comments. r=me and DONTBUILD
MozReview-Commit-ID: 65hNR0nUQP
2016-10-24 13:07:01 -04:00
David Anderson
75f2e81dae Fix assert deallocating shmems on GPU process restart. (bug 1311715, r=mattwoodrow) 2016-10-24 01:05:23 -07:00
GuanWen-Chen
b8e5996416 Bug 1292273 - Add logs to record the failure of compositor creation. r=dvander 2016-10-22 20:28:00 -04:00
GuanWen-Chen
9c8aa23da3 Bug 1292273 - Skip CompositorD3D11::EndFrame when device-removed happened and add some logs for tracking the behavior. r=dvander 2016-10-22 20:27:00 -04:00
Jamie Nicol
18f5f7db34 Bug 1311642 - Do partial texture uploads on mobile. r=nical
We were always uploading the entire texture region, but still by using
glTexSubImage2D. In most cases it should be quicker to use
glTexSubImage2D on the updated region only. And where that function has
problems we should avoid it by making CanUploadSubTextures return false
so that glTexImage2D is used instead.

MozReview-Commit-ID: BrobWEPJ82M

--HG--
extra : rebase_source : 986642a1d7bfe2bcb0cc12dc8e41c17ac77abc1d
2016-10-20 18:24:12 +01:00
Jamie Nicol
9a0a722f7b Bug 1311642 - Remove BeginUpdate and EndUpdate from GLTextureImage. r=nical
Only DirectUpdate was actually being used, so remove the dead
code. TextureImageCGL does't do anything over BasicTextureImage any more
so remove it too.

MozReview-Commit-ID: D7jpC9M7aTT

--HG--
extra : rebase_source : 7846439aa5cb320704b8f811f3203fe7fd31c51e
2016-10-20 17:11:00 +01:00