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

26193 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Hengst 0457405200 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: C5HD11ptDT0
2017-06-11 10:35:34 +02:00
Markus Stange 1cdb518fb7 Bug 1370757 - Only push device aligned clips. r=lsalzman
The new clip from bug 1364007 can cause us to clip to a rectangle that's not
aligned to device pixels. With the current rect inflation, we didn't notice,
but if we want to remove the inflation then we need to make sure to round out
the rect that we clip to.

MozReview-Commit-ID: BO9zds8fiKI

--HG--
extra : rebase_source : f71f283ef73cf58dbc2cc05d06ea9bc864fd5084
2017-06-06 19:19:51 -04:00
Lee Salzman 5b025f2c31 Bug 1369949 - compute precise clipping region for DrawTargetSkia::BorrowCGContext. r=mchang
MozReview-Commit-ID: 9X3puHOd4dv
2017-06-09 21:40:13 -04:00
Wes Kocher 7462f47787 Merge m-c to inbound, a=merge
MozReview-Commit-ID: LZOwJMXpznP
2017-06-09 15:58:08 -07:00
Wes Kocher 07d7985523 Merge inbound to central, a=merge
MozReview-Commit-ID: IrZXJHbiqpa
2017-06-09 15:28:10 -07:00
Botond Ballo faf8512e63 Bug 1371299 - Restrict the thumb snapping back to its original position to when the thumb is on-screen. r=kats
MozReview-Commit-ID: 2oZMwlusg2n

--HG--
extra : rebase_source : 5400135b4c32327a8deaa73faa2076fb7a000d25
2017-06-09 17:12:38 -04:00
Jeff Muizelaar 0442ca87fb Bug 1367538. Clear user data after we're done with the recorder. r=lsalzman
This helps keep us from accumulating all of the recorders.

The basic idea is to track weak references to the SourceSurfaces and Fonts that
we add UserData to in DrawEventRecorderPrivate and then clear these UserData's
when we're done recording.

This adds a RemoveAndDestroy helper to UserData to make this possible.
2017-06-09 14:31:35 -04:00
Jeff Muizelaar cf6d4425f4 Bug 1359527. Fixup DrawTarget::IntoLuminance mismerge. r=mchang
This adds back the NEON code and fixes up a couple of other pieces
2017-06-09 10:57:44 -04:00
Carsten "Tomcat" Book d5a13ba05e merge mozilla-inbound to mozilla-central a=merge 2017-06-09 12:58:49 +02:00
Cameron McCormack 1f30613283 Bug 1369954 - Part 4: Stop running <meta viewport>-related tests on non-Android stylo. r=emilio
Due to the confusing precedence of reftest manifest conditions,
we are running these tests when we shouldn't be.

MozReview-Commit-ID: 6RgI0NgWvay

--HG--
extra : rebase_source : 2e6a8113e1444bef52131ad9c119a31a7e855b7f
2017-06-09 12:20:40 +08:00
Kartikaya Gupta a8a8b628cd Bug 1368496 - Add support for fixed-positioning with APZ. r=jrmuizel
This implements at least enough fixed-positioning support to make the
reftest in layout/reftests/async-scrolling/bg-fixed-child.html pass.
That test implements a simple background-attachment:fixed which is
implemented in the layer tree with a combination of a scrolled clip and
a fixed-position layer. Previous patches in this patchset implemented
support for the scrolled clip, and this patch implements the
fixed-position layer support.

MozReview-Commit-ID: 1Al1YshhUL7

--HG--
extra : rebase_source : e50d5572264567acc03f1ecf220c57c7b5a85a4f
2017-06-08 11:34:01 -04:00
Kartikaya Gupta 1bcefeafef Bug 1368496 - Expose the push_clip_and_scroll_info API in WR via WebRenderAPI. r=jrmuizel
MozReview-Commit-ID: f8gIDoUDC1

--HG--
extra : rebase_source : 12a7c8b9d466157ec63f3e57f77ab50b30f9b4fe
2017-06-08 11:34:01 -04:00
Kartikaya Gupta 25de5f333c Bug 1368496 - Track the pushed clip and scroll IDs. r=jrmuizel
Tracking the active clips and scroll layers is helpful for implementing
fixed-position type stuff, because we will need to answer questions like
"what is the ancestor scroll layer of this other scroll layer that is
somewhere on the stack" and "what is the currently active stack of
non-scrolling clips". This patch also adds a couple of methods to
WebRenderAPI that answers questions like these.

MozReview-Commit-ID: 9bgOW3Z8Tbp

--HG--
extra : rebase_source : 382f1d476217739d9e023e05d8b3886f268c6b72
2017-06-08 11:34:00 -04:00
Kartikaya Gupta c8d5fd6ffd Bug 1368496 - Propagate the layer's "scrolled clip" to WebRender. r=jrmuizel
If the layer has a "scrolled clip", that clip scrolls with the content
of the layers (it moves if any of the scrollable frames defined by that
layer are scrolled).

MozReview-Commit-ID: 37hvXWO930f

--HG--
extra : rebase_source : 4150c3bb061d027b483e44418bec7f3b810a9ccc
2017-06-08 11:34:00 -04:00
Kartikaya Gupta 8e9f1257f8 Bug 1368496 - Skip over scrollinfo layers instead of aborting entirely. r=jrmuizel
MozReview-Commit-ID: 5pYcurXfAf

--HG--
extra : rebase_source : c489b9028dffea2e166a16fe6e318833db489ed0
2017-06-08 11:34:00 -04:00
Carsten "Tomcat" Book cb5ce9d807 Merge mozilla-central to autoland 2017-06-08 15:24:16 +02:00
Carsten "Tomcat" Book b9d94b34d4 merge mozilla-inbound to mozilla-central a=merge 2017-06-08 14:43:56 +02:00
Carsten "Tomcat" Book c53d6e3b05 Backed out changeset 14ac21b548cf (bug 1361970) 2017-06-08 10:23:21 +02:00
Matt Woodrow a4975eaaae Bug 1361970 - Make PostProcessLayers occlusion culling work against the surface we will draw to rather than the parent layer. r=mstange
--HG--
extra : rebase_source : c89651903267c052806ffa964e004aac5eb319ea
2017-06-08 15:26:50 +12:00
Mason Chang 1520cb158b Bug 1359527. Part 1 - Add DrawTarget::IntoLuminance r=jrmuizel 2017-06-02 11:13:36 -07:00
Ryan VanderMeulen 9b7a73b65a Merge m-c to autoland. a=merge
UPGRADE_NSPR_RELEASE UPGRADE_NSS_RELEASE

--HG--
extra : amend_source : a59e53ba2f8db608f613f21ad6da2b5be8814aa4
2017-06-07 22:55:56 -04:00
Mason Chang e6ddf2c3c1 Bug 1258781 Add pref for content skia font cache size. r=erahm 2017-06-07 10:11:17 -07:00
Martin Robinson 9915ffcbc3 Bug 1370530 - Convert more CSS filters to WebRender display items. r=jrmuizel
Activate WebRender output for filters that introduce only one pixel
differences in tests. Since the filters spec does not seem to specify
how color values are rounded, this output should be spec compliant.
2017-06-07 03:43:00 -04:00
JerryShih efa30c7964 Bug 1366502 - Make sure all wrapped textureHosts doesn't use TextureFlags::DEALLOCATE_CLIENT flag. v2. r=sotaro
MozReview-Commit-ID: KjZIGRzRomT
2017-06-07 23:44:05 +08:00
JerryShih b28ccb02ff Bug 1366502 - Update the thread model for RegisterExternalImage(), UnregisterExternalImage() and GetRenderTexture() call. v2. r=sotaro
If we call UnregisterExternalImage() at non-render-thread and decrease the RenderTextureHost's ref-count to zero, the RenderTextureHost will be released in non-render-thread.
That will cause some problems if we use some thread-specific functions in ~RenderTextureHost().
This patch uses a message loop in UnregisterExternalImage() to resolve this problem.

MozReview-Commit-ID: CDazxGkE1cK
2017-06-07 23:44:05 +08:00
JerryShih e76df89dc3 Bug 1366502 - Make sure the RenderTextureHost is released in render thread. r=sotaro.
The RenderTextureHost might calls some thread-specific functions(e.g. OpenGL calls) in ~RenderTextureHost(). Add a checking here to prevent this problem.

MozReview-Commit-ID: 62QlavmXOig
2017-06-07 23:44:05 +08:00
JerryShih df9418c639 Bug 1366502 - Update WebRenderTextureHost for video pipeline. r=sotaro
MozReview-Commit-ID: 8ODLYyXzHjO
2017-06-07 23:44:04 +08:00
JerryShih 5b3045edee Bug 1366502 - Update TextureD3D11 for video pipeline. v2. r=sotaro
Update for DXGITextureHostD3D11 and DXGIYCbCrTextureHostD3D11.

MozReview-Commit-ID: CQqzHK3jqz7
2017-06-07 23:44:04 +08:00
JerryShih 20064eaa12 Bug 1366502 - Update MacIOSurfaceTextureHostOGL for video pipeline. r=sotaro
MozReview-Commit-ID: 5cu8cYoTMxT
2017-06-07 23:44:04 +08:00
JerryShih 77ea08e890 Bug 1366502 - Update BufferTextureHost and RenderBufferTextureHost for video pipeline. r=sotaro
WR supports the planar-ycbcr image format. We turn to use the planar-ycbcr image to get rid of the software-ycbcr-to-rgb color format conversion(using libyuv) in gecko.

The BufferTextureHost will use 3 image keys for SurfaceFormat::YUV format.
The RenderBufferTextureHost will also use 3 DataSourceSurfaces to represent the 3 channel data in planar-ycbcr format.

MozReview-Commit-ID: 3mMreSzKnMv
2017-06-07 23:44:04 +08:00
JerryShih c287793fd9 Bug 1366502 - Add GetWRImageKeys() and PushExternalImage() in textureHost. r=sotaro
These 2 functions are used for WR.
The GetWRImageKeys() will return the proper image keys according to the textureHost format.
The PushExternalImage() will put all necessary WR commands into DisplayListBuilder for the textureHost rendering.

MozReview-Commit-ID: FwCDxwsCMMy
2017-06-07 23:44:04 +08:00
JerryShih 46faf0ecc2 Bug 1366502 - Move the various of image key and WR command settings from WebRenderCompositableHolder into textureHosts. r=sotaro
It's awful to put all combination of image key and WR command settings in the same place. Make the settings go back to textureHosts.
Each textureHost should implement GetWRImageKeys() and PushExternalImage() function.

MozReview-Commit-ID: 5Bmiuv5HgmX
2017-06-07 23:44:03 +08:00
JerryShih 57f874da91 Bug 1366502 - Update the thread checking for WR image functions. r=sotaro
With the video pipeline, we could call the WR image functions in compositor thread.

MozReview-Commit-ID: LtaihkLnbL3
2017-06-07 23:44:03 +08:00
JerryShih 45a0e9e65a Bug 1366502 - Rename mImageClientTypeContainer into mImageClientContainerType. r=sotaro
MozReview-Commit-ID: LcSHVkBbM6G
2017-06-07 23:44:03 +08:00
Masatoshi Kimura 99bf272847 Bug 1370865 - Suppress more MSVC warnings in gfx/angle. r=jgilbert
MozReview-Commit-ID: D9HLvwCLRQn

--HG--
extra : rebase_source : ba334335a1f3278ae220720ede5b0f416bc2904a
2017-06-05 22:00:54 +09:00
Wes Kocher d4af1fa9e1 Merge m-c to inbound, a=merge
MozReview-Commit-ID: E2oiCGaL6uX
2017-06-08 18:42:21 -07:00
Jeff Muizelaar 4cf1367466 Bug 1370681. WebRender: Remove unnecessary sync messages. r=kats,dvander
These don't need to be sync and we're spending a noticeable amount of
time in DeleteImage.
2017-06-08 18:05:57 -04:00
L. David Baron e04a5a47c6 Bug 1367576 - Shrink existing caches to the size that's actually needed. r=karlt
Now that, thanks to bug 1367577, we have the theme constants in an enum,
we can make these arrays smaller rather than assuming that the constants
might use any valid uint8_t value.

MozReview-Commit-ID: A6GjTarVurc
2017-06-06 22:27:18 -07:00
Phil Ringnalda 772debd9ae Backed out changeset 4524bfde8583 (bug 1361970) for failures in transform-3d/backface-visibility-3.html and transform-3d/opacity-preserve3d-1.html
CLOSED TREE

MozReview-Commit-ID: GmEmiedJYeX
2017-06-06 19:54:40 -07:00
Matt Woodrow 80c51057d4 Bug 1361970 - Make PostProcessLayers occlusion culling work against the surface we will draw to rather than the parent layer. r=mstange 2017-06-07 11:07:15 +12:00
Wes Kocher bb1d061819 Merge inbound to central, a=merge CLOSED TREE
UPGRADE_NSS_RELEASE UPGRADE_NSPR_RELEASE

MozReview-Commit-ID: 2CXltQtu4Y1

--HG--
extra : amend_source : 16333c0fa5342dfbbb2a4ded71f94119a022e27b
2017-06-06 17:15:21 -07:00
Ryan VanderMeulen 6cb217315a Backed out 12 changesets (bug 1366502) for causing intermittent QuantumRender debug crashtest crashes on a CLOSED TREE.
Backed out changeset 42350bacb0bc (bug 1366502)
Backed out changeset 7f98b7f60e58 (bug 1366502)
Backed out changeset 265e39153027 (bug 1366502)
Backed out changeset cf598918bb1b (bug 1366502)
Backed out changeset e2f21ee861e5 (bug 1366502)
Backed out changeset f7fcc15d8f90 (bug 1366502)
Backed out changeset 22408b6a1ad1 (bug 1366502)
Backed out changeset 8846dac9ee35 (bug 1366502)
Backed out changeset d5225d81b832 (bug 1366502)
Backed out changeset 82f5a21b53a6 (bug 1366502)
Backed out changeset 2b20aebef47d (bug 1366502)
Backed out changeset 95f4d82e3d79 (bug 1366502)
2017-06-06 18:06:42 -04:00
Sebastian Hengst ff1767bcb6 Backed out changeset f09499d7310c (bug 1359527) for Android bustage while processing gfx/2d/moz.build. r=backout 2017-06-06 18:40:32 +02:00
Mason Chang 52834cd6f7 Bug 1359527 Part 1 Add DrawTarget::IntoLuminance. r=jrmuizel 2017-06-02 11:13:36 -07:00
Martin Robinson 7d937678f4 Bug 1365972 - Add initial WebRender support for nsDisplayFilter. r=rhunt, r=mattwoodrow 2017-06-06 06:28:00 -04:00
Kartikaya Gupta 9455874723 Bug 1370526 - Fix new[]/delete mismatch. r=jrmuizel
MozReview-Commit-ID: H7J8BK7regw

--HG--
extra : rebase_source : d7bc3004a0ed48d0204424c829f7bbde28afc826
2017-06-06 09:43:43 -04:00
JerryShih 148f24bb56 Bug 1366502 - Make sure all wrapped textureHosts doesn't use TextureFlags::DEALLOCATE_CLIENT flag. v2. r=sotaro
MozReview-Commit-ID: KjZIGRzRomT
2017-06-06 19:18:41 +08:00
JerryShih 719611f82b Bug 1366502 - Update the thread model for RegisterExternalImage(), UnregisterExternalImage() and GetRenderTexture() call. v2. r=sotaro
If we call UnregisterExternalImage() at non-render-thread and decrease the RenderTextureHost's ref-count to zero, the RenderTextureHost will be released in non-render-thread.
That will cause some problems if we use some thread-specific functions in ~RenderTextureHost().
This patch uses a message loop in UnregisterExternalImage() to resolve this problem.

MozReview-Commit-ID: CDazxGkE1cK
2017-06-06 19:18:40 +08:00
JerryShih 3c7cfd03af Bug 1366502 - Make sure the RenderTextureHost is released in render thread. r=sotaro.
The RenderTextureHost might calls some thread-specific functions(e.g. OpenGL calls) in ~RenderTextureHost(). Add a checking here to prevent this problem.

MozReview-Commit-ID: 62QlavmXOig
2017-06-06 19:18:40 +08:00
JerryShih ef71dedff2 Bug 1366502 - Update WebRenderTextureHost for video pipeline. r=sotaro
MozReview-Commit-ID: 8ODLYyXzHjO
2017-06-06 19:18:40 +08:00