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

26206 Коммитов

Автор SHA1 Сообщение Дата
Mike Hommey b8847f17d0 Bug 1369615 - Avoid unnecessary struct field shorthand in webrender. r=kats
This applies the patch from https://github.com/servo/webrender/pull/1330
without pulling all the recent changes to webrender.

Bug 1321847 will ensure further updates don't break building with older
versions of rustc without meaning to.

--HG--
extra : rebase_source : 6b08ff312f596b56d31b444e670f442c47d7d110
2017-06-02 14:01:55 +09:00
Ryan VanderMeulen 0635a6f864 Merge m-c to inbound. a=merge
CLOSED TREE
2017-06-01 12:48:15 -04:00
Kartikaya Gupta f7afb5a21c Merge m-c to graphics, a=merge
MozReview-Commit-ID: COZj8Itgjcz
2017-06-01 09:56:23 -04:00
Kartikaya Gupta 0b60039322 Bug 1368551 - Don't send transforms to WR in push_stacking_context if they are identity. r=pchang
If we set a transform in push_stacking_context, it changes the internal
WebRender behaviour to make that stacking context a reference frame, and
things inside it are positioned differently. This is true even if the
transform is an identity transform.

In most cases we are hitting this and sending an identity transform
through, when in fact we want to be sending a None value to WebRender so
that it doesn't create reference frames. This is a partial fix, a proper
fix will be done in bug 1345577 by separating the CSS transform from the
other transforms that FrameLayerBuilder invents.

MozReview-Commit-ID: ElSs3hFMD2D
2017-06-01 09:17:17 -04:00
Kartikaya Gupta c054f05ef3 Bug 1368551 - Remove unneccessary overload of PushStackingContext. r=pchang
This overload is only called in one place, so we can just inline it. It
makes the API a little simpler.

MozReview-Commit-ID: H55IUduUSiJ
2017-06-01 09:17:16 -04:00
Kartikaya Gupta 1c8776063e Bug 1367734 - Tone down webrender's memory usage to avoid OOMing during media mochitests. r=kvark
MozReview-Commit-ID: 9RIR37ZOSFR
2017-06-01 08:57:32 -04:00
Kartikaya Gupta cab614e181 Bug 1367734 - Update webrender to cset a54cc729259588dd1ff52c86d0c62cb2a1767137. r=jrmuizel,jerry
In addition to updating webrender and webrender_traits, this patch:
- bumps the euclid dependency in webrender_bindings to match webrender
- updates the Cargo.lock files and re-vendors third-party rust packages
- updates the push_yuv_image callers due to an API change in WR cset a4b9e25.
2017-06-01 08:57:10 -04:00
sotaro df7247c629 Bug 1368593 - Do not set background color if WebRenderBridgeParent is not root r=jrmuizel 2017-06-01 20:42:55 +09:00
sotaro 2e1b9ac498 Bug 1368483 - Pass WrColor in wr_api_set_root_display_list() r=nical 2017-06-01 09:53:58 +09:00
Andrew Osmond bdcff7a50b Bug 1368730 - TextureChild::ActorDestroy should indicate IPC is now impossible, not TextureChild::ReleaseIPDLReference. r=nical 2017-05-31 10:18:13 -04:00
Carsten "Tomcat" Book 1a0d9545b9 merge mozilla-inbound to mozilla-central a=merge 2017-05-31 11:28:43 +02:00
Mason Chang 17ccdaf65c Bug 1369096 - Check HRESULT when QueryInterfacing an ID2D1Image for an ID2D1Bitmap. r=bas 2017-05-30 15:59:19 -07:00
Jonathan Kew fd5dc7dd5e Bug 1364089 - Eliminate some unnecessary virtual calls in gfxFont-related code. r=jrmuizel 2017-06-01 15:42:07 +01:00
Markus Stange e2336b07a8 Bug 1330185 - Use a top-level PProfiler protocol to control the profiler in other processes. r=billm,njn
MozReview-Commit-ID: EROfGuYQ6a0

--HG--
extra : rebase_source : be0aa1b9c7963882e8e7d47964f2da5b670ab10a
extra : intermediate-source : e6f368f2d8741f2a9655b288d49b59fbbd6b90b7
extra : source : 51cdc2541486d5ddf2d385ec0459a9ec38b8775b
2017-05-30 15:06:14 -04:00
dmu@mozilla.com 5a72ace401 Bug 1366941 - Checking LayersIPCChannel type when using recycled textureClient; r=nical
MozReview-Commit-ID: 94PQA67fvoJ

--HG--
extra : rebase_source : 58b07b7c5d1f7c5bac729d18842655b3c620eba4
2017-05-24 11:01:45 +00:00
Ryan VanderMeulen c01026a3da Merge m-c to inbound. a=merge 2017-05-30 12:58:23 -04:00
Mason Chang d73beaa757 Bug 1367127 - Use an ImageBrush during DrawTargetD2D1::PushLayer instead of a BitmapBrush. r=bas 2017-05-30 09:31:02 -07:00
Kartikaya Gupta e49fb92e99 Merge m-c to graphics, a=merge
MozReview-Commit-ID: IU4SJ95MVHH
2017-05-30 07:50:05 -04:00
Carsten "Tomcat" Book b318c7dca7 merge mozilla-inbound to mozilla-central + UPGRADE_NSS_RELEASE a=merge
--HG--
rename : toolkit/components/extensions/test/xpcshell/xpcshell.ini => toolkit/components/extensions/test/xpcshell/xpcshell-common.ini
extra : amend_source : 458fd54fe8070ca3034ac441267ff7025adb5251
2017-05-30 11:37:46 +02:00
sotaro 1885be3a3f Bug 1366915 part 2 - Make CompositorBridgeChild allocate pipeline id for async image pipeline r=nical 2017-05-30 09:59:44 +09:00
sotaro 3e55c4713f Bug 1366915 part 1 - Remove pipeline id allocation with IPC MozPromise r=nical 2017-05-30 09:59:29 +09:00
Kris Maglione 27a5a12045 Bug 1356317: Part 1 - Mark SurfaceMemoryReporter refcounting as threadsafe. r=njn
MozReview-Commit-ID: 9U5KLMyKSbk

--HG--
extra : rebase_source : e59990f3e52cf5cb6d552a8844d61f7fc5fbdfb4
2017-05-29 22:04:30 -07:00
Kartikaya Gupta bf29ee0963 Bug 1368487 - Fix content rect passed to scroll layers to be relative to the right thing. r=jrmuizel
MozReview-Commit-ID: 1mbVLqp9o2R
2017-05-29 11:40:58 -04:00
Kartikaya Gupta 2c6ff0ad8b Bug 1368487 - Add some default-disabled logging functionality to WebRenderAPI.cpp r=jrmuizel
MozReview-Commit-ID: DAqeAEyjCTm
2017-05-29 11:40:49 -04:00
Kartikaya Gupta 4bee409ce4 Bug 1367911 - Follow-up to remove invalid assertion. r=me
MozReview-Commit-ID: IdL5yLgserF
2017-05-29 09:57:42 -04:00
Kartikaya Gupta b7ee577f62 Merge m-c to graphics, a=merge
MozReview-Commit-ID: 8IWAJNO52ry
2017-05-29 08:28:04 -04:00
JerryShih 6b9e0b591b Bug 1366512 - Export some EGL functions for D3D NV12 texture format. v2. r=jgilbert
These EGL functions will be used to convert D3D NV12 texture handle to GL handle.

MozReview-Commit-ID: JpH0P3mAanU
2017-05-28 21:15:07 -07:00
Kartikaya Gupta c77f08c8ad Bug 1367911 - Extract a GetLayersId() helper. r=dvander
We're calling this often enough that it seems good to extract a named
helper method.

MozReview-Commit-ID: gIwdyfafOq
2017-05-28 07:51:53 -04:00
Kartikaya Gupta e4b2bf8de2 Bug 1367911 - Update APZCCallbackHelper to support WebRender. r=dvander
This allows APZCCallbackHelper to send the SetConfirmedTargetAPZC
message over PWebRenderBridge if webrender is enabled, rather than
assuming the layer manager is a ClientLayerManager and then crashing.

MozReview-Commit-ID: 57o9CaCcbTi
2017-05-28 07:51:51 -04:00
Kartikaya Gupta 0f05ab2902 Bug 1367911 - Refactor the SetConfirmedTargetAPZC function to take a layers id. r=dvander
This makes it simpler to reuse this API from WebRenderBridgeParent,
since we can provide a layers id but not a LayerTransactionParent.

MozReview-Commit-ID: DEIGMk9tJEB
2017-05-28 07:51:48 -04:00
Kartikaya Gupta d5c99e4ebb Bug 1367837 - Implement some APZ test util APIs for webrender. r=botond,dvander
This implements some methods exposed on DOMWindowUtils and used by
reftests, for the WebRender codepath. The implementation is very similar
to the implementation in LayerTransactionParent.

MozReview-Commit-ID: HP8OxzIzS7P
2017-05-28 07:48:36 -04:00
Kartikaya Gupta f47534e48a Bug 1367837 - Expose a testing helper method to get an APZC instance from the layers id and scroll id. r=botond
MozReview-Commit-ID: HyEMamx7nDk
2017-05-28 07:48:33 -04:00
Kartikaya Gupta 71133b7ca0 Bug 1367837 - Have the CompositorBridgeParent::FlushApzRepaints function take a layers id instead of a layer tree. r=dvander
This is helpful for reusing the FlushApzRepaints from
WebRenderBridgeParent, since it no longer assumes there's a layers
transaction object.

MozReview-Commit-ID: GVqDDEeZaN3
2017-05-28 07:48:29 -04:00
Phil Ringnalda 16b90e808a Backed out changeset e12fa325e112 (bug 1359527) for Win8 masking reftest failures
MozReview-Commit-ID: 5ecOfTu606d
2017-05-28 15:45:42 -07:00
Mason Chang 981bccddf0 Bug 1359527. Add DrawTarget::IntoLuminance. r=jrmuizel,Bas
This lets us use the luminance effect with Direct2D to avoid
having to read back. It will also let us avoid reading back
with DrawTargetRecording.
2017-05-28 15:35:14 -04:00
Xidorn Quan ac6cc1d36a Bug 1368418 part 3 - Remove nsCategoryImp. r=emk
MozReview-Commit-ID: 5qCoeqfM2s5

--HG--
extra : rebase_source : 6dc1693ce61bea4ec35469a3388c75a9fb64e5b3
2017-05-29 16:17:39 +10:00
Kartikaya Gupta c3d1217b06 Merge m-c to graphics, a=merge
MozReview-Commit-ID: 91TVUCwwNt4
2017-05-26 08:28:53 -04:00
Ryan VanderMeulen a71f4a2308 Merge m-c to inbound. a=merge 2017-05-25 21:31:19 -04:00
Samuel Vargas 3f8de3214a Bug 1366425 - Avoid losing context on out of memory error for ANGLE - r=jgilbert 2017-05-25 16:11:40 -07:00
Samuel Vargas 67ca0e362c Bug 1364169 - on ANGLE context creation asks for robustness but does not get it - r=jgilbert 2017-05-25 16:11:25 -07:00
Samuel Vargas 70e5692daa Bug 1365067 - rbab is requested on ANGLE but is not implemented - r=jgilbert 2017-05-25 16:11:05 -07:00
Samuel Vargas 861a75bd94 Bug 1364592 - Enable asserts in moz.build for ANGLE - r=jgilbert 2017-05-25 16:10:36 -07:00
Kartikaya Gupta 29bcb40e01 Bug 1367870 - Add stringification helper for WrRect. r=jrmuizel
MozReview-Commit-ID: FMw6tPI2LOJ
2017-05-25 17:49:30 -04:00
Kartikaya Gupta cbaaff5376 Bug 1367870 - Remove unused logging function bodies. r=jrmuizel
Both nsIntPoint and IntRect are specializations of template classes (BasePoint
and BaseRect) that are already covered by the corresponding template methods
in LayersLogging.h. Therefore these methods are not needed (and in fact are not
listed separately in LayersLogging.h).

MozReview-Commit-ID: BIZAOFfWCfI
2017-05-25 17:49:23 -04:00
Ryan VanderMeulen 8543438674 Merge inbound to m-c. a=merge 2017-05-25 16:34:16 -04:00
Kartikaya Gupta 87a0d25e76 Bug 1365934 - Update webrender to 76a3213080ca5c2e2a612c3023c50c81a111fd55. r=jrmuizel,kvark
This includes a change to bindings.rs for an API change to the readback function
in webrender cset 052b0a7.

MozReview-Commit-ID: K9eMrF3O6OX
2017-05-25 13:27:55 -04:00
L. David Baron a71e3087cd Backed out changeset 659898a1c1b8 (bug 1367577) for breaking stylo builds. 2017-05-25 13:20:31 -04:00
Paul Bignier 9e1d02605d Bug 1367577 - change theme constants from #defines to enum ThemeWidgetType. r=dbaron 2017-05-25 12:44:59 -04:00
Lee Salzman 4dfbb20ffb Bug 1364691 - add assertions to help figure out why Skia's AAA is crashing. r=jrmuizel
MozReview-Commit-ID: 4J8ztujEe1I
2017-05-25 11:52:49 -04:00
ohn0 e64bada746 Bug 1367062 - Change std::map to std::unordered_map in APZCTreeManager r=botond
MozReview-Commit-ID: yHXUFw2fx6
***
Bug 1367062 - Change std::map to std::unordered_map in APZCTreeManager
changed gfx/layers/FrameMetrics.h by adding a ScrollableLayerGuidHash class that will be used as the hashing function for std::unordered_maps which use ScrollableLayerGuid as keys.
changed gfx/layers/apz/src/APZCTreeManager.cpp by changing mApzcMap to a std::unordered_map.
changed gfx/layers/apz/src/APZCTreeManager.h by changing mZoomConstraints to a std::unordered_map.

MozReview-Commit-ID: JmoQzh1MvKK

--HG--
extra : rebase_source : cb7bd9419085f83873c9fd019c4a379fae0ee278
2017-05-26 19:41:13 -04:00
Jonathan Kew 30cba7385b Bug 1365278 - Remove WORD_CACHE_* telemetry probes that provide little value for their cost. r=milan 2017-05-29 16:19:36 +01:00
Kartikaya Gupta 07aa8387a0 Merge m-c to graphics, a=merge
MozReview-Commit-ID: 3cEYFBtGvTZ
2017-05-25 08:06:56 -04:00
Kartikaya Gupta d29002d64b Merge m-c to graphics, a=merge
MozReview-Commit-ID: 2pUMxaNAKCC
2017-05-24 08:14:30 -04:00
sotaro 103c378c7f Bug 1366931 - Fix pipeline id handling of WebRenderBridgeParent::RecvDeleteCompositorAnimations() r=kats 2017-05-24 09:26:29 +09:00
Kartikaya Gupta 9b99490587 Merge m-c to graphics, a=merge
MozReview-Commit-ID: 8U9lnVZRtS7
2017-05-23 10:34:14 -04:00
Ryan VanderMeulen 22d214ae4b Merge autoland to m-c. a=merge 2017-05-23 10:32:42 -04:00
Georg Fritzsche 31c702afef Bug 1361661 - Part 2 - Make Telemetry IPC code pass around Telemetry::ProcessID. r=dexter
Switching to Telemetry::ProcessID allows us to break out extension process data from the content process data.
2017-05-23 13:47:58 +07:00
Ryan VanderMeulen c5b2958154 Merge inbound to m-c. a=merge 2017-05-24 20:45:23 -04:00
Jeff Muizelaar df702756e2 Bug 1366069. Fix mac theme rendering with DrawTargetRecording. r=mstange
We can't get native surfaces for recording targets
2017-05-19 15:09:56 -04:00
Kartikaya Gupta 5320a75266 Merge m-c to graphics
MozReview-Commit-ID: Fq2lBUWyr0m
2017-05-19 13:19:35 -04:00
Ryan VanderMeulen acb2f518fc Merge inbound to m-c. a=merge 2017-05-19 11:46:56 -04:00
Kartikaya Gupta 5d656fab0f Merge m-c to graphics
MozReview-Commit-ID: HvsAeMjJAIA
2017-05-19 09:30:48 -04:00
sotaro cbec0e500e Bug 1365196 - Throttle GenerateFrame() r=kats,nical 2017-05-19 09:21:38 +09:00
Samuel Vargas 8e0b9d6ceb Bug 1367570 - Explicitly set vertex attribs [1,3] to opaque black - r=jgilbert 2017-05-26 19:48:50 -07:00
Alexis Beingessner 8545f35670 Bug 1365418 - Expose other layers.advanced configs, and add webrendest option to toggle them all on. r=kats
MozReview-Commit-ID: 9MZwrGhnzDh
2017-05-16 17:33:33 -04:00
JerryShih 179b8e5c15 Bug 1364922 - Create individual imageKey for each channel in the textureClient. v2. r=nical
WebRenderImageLayer will create the proper number of imageKey for different video format. Then, send the imageKey to The WebRenderBridgeParent.

MozReview-Commit-ID: HMp4KWCCFqU
2017-05-19 00:25:42 +08:00
JerryShih 43d1cc8378 Bug 1364922 - Fix the error calculation of ExternalImageId. r=nical
MozReview-Commit-ID: 1u1fMxR4ugT
2017-05-19 00:25:41 +08:00
JerryShih 76b2651840 Bug 1364922 - Update AddWRImage() interface for multiple ImageKeys. v2. r=nical
Some textureHosts have multiple-channel data. Each channel should use different ImageKey.

MozReview-Commit-ID: 86EGQn65nMG
2017-05-19 00:25:41 +08:00
JerryShih e93a22a8d3 Bug 1364922 - Add a new op OpAddExternalVideoImage for multiple-channel video image. r=nical
MozReview-Commit-ID: 3GV4qBfelr5
2017-05-19 00:25:41 +08:00
JerryShih 08a36ea3d9 Bug 1362049 - Use the MacIOSurface texture directly for video playback. r=nical
Use the MacIOSurface with APPLE_rgb_422 format directly in WR.

MozReview-Commit-ID: 19GLtuJLiPv
2017-05-18 22:59:08 +08:00
JerryShih b4f6e9c835 Bug 1362049 - Handle multiple-channel format for RenderMacIOSurfaceTextureHostOGL. v4. r=mattwoodrow
We could use NV12 or YCbCr-planar format for video playback. There will be up to 3 channels in the MacIOSurface.

MozReview-Commit-ID: 77RYntphjYy
2017-05-18 22:59:08 +08:00
JerryShih 006c192621 Bug 1362049 - Use channel_index to get the correct channel data info from RenderTextureHost. r=nical
MozReview-Commit-ID: 3LaWdfglobe
2017-05-18 22:59:07 +08:00
JerryShih 15187bbef4 Bug 1362049 - The BufferTextureHost::AddWRImage() and MacIOSurfaceTextureHostOGL::AddWRImage() implementations. v3. r=nical
MozReview-Commit-ID: JJlqFwidliQ
2017-05-18 22:59:07 +08:00
JerryShih 2c3fd143c6 Bug 1362049 - Add AddWRImage() to call the proper WR commands for all TextureHost types. v3. r=nical
Different TextureHost type could use different WR commands. So, make a abstract interface for these different commands.

MozReview-Commit-ID: 63dnOJC2P9r
2017-05-18 22:59:07 +08:00
JerryShih dbcaf29eae Bug 1362049 - Update the ext-image interface in WR binding. v2. r=nical
Use wr_api_add_external_image() to replace all types of ext-image adding functions.
Add a new interface wr_dp_push_yuv_interleaved_image() to put a single channel yuv_interleaved image in WR display list.

MozReview-Commit-ID: 1kDerOGwUuE
2017-05-18 22:59:07 +08:00
JerryShih e90c3c1ca4 Bug 1362049 - Update the texture target and texture format in MacIOSurface. v5. r=mattwoodrow
Add LOCAL_GL prefix for all GL constant value.
Turn to use GL_RED and GL_RB if we use core profile.
Turn to use GL_RGB_422_APPLE instead of GL_YCBCR_422_APPLE for core profile.

MozReview-Commit-ID: FCwbrUEFUxI
2017-05-18 22:59:07 +08:00
JerryShih 49684e68a5 Bug 1362049 - Remove the unused MacIOSurfaceTextureSourceOGL. r=mattwoodrow
The MacIOSurfaceTextureSourceOGL doesn't be used in the codebase.

MozReview-Commit-ID: EZ1fHw7J6YD
2017-05-18 22:59:06 +08:00
JerryShih 3774d02876 Bug 1362049 - Add R8G8 type in SurfaceFormat. r=bas.schouten
This R8G8 format will be used in NV12 image format.

MozReview-Commit-ID: KNJFwOasVts
2017-05-18 22:59:06 +08:00
Kartikaya Gupta d39b6f432c Bug 1364993 - Update webrender to 102603520d52f335f152ab74b6bcfdae061b6bc8. r=Jerry
MozReview-Commit-ID: GzbxvocvrtJ
2017-05-18 10:51:27 -04:00
Kartikaya Gupta aca076b94b Merge m-c to graphics
MozReview-Commit-ID: DFNbcj14mg9

--HG--
rename : memory/mozjemalloc/jemalloc.c => memory/mozjemalloc/mozjemalloc.cpp
rename : memory/mozjemalloc/jemalloc_types.h => memory/mozjemalloc/mozjemalloc_types.h
2017-05-18 08:34:15 -04:00
Carsten "Tomcat" Book 24c443a440 merge mozilla-inbound to mozilla-central a=merge 2017-05-18 14:19:18 +02:00
Andrew Osmond 67c80db4e7 Bug 1363347 - Allow multiple external image IDs to be bound to the same image host if owned by the same WRBridge. r=sotaro 2017-05-18 06:50:03 -04:00
Ethan Lin 501bd51b08 Bug 1363998 - Part2. Add pref "layers.advanced.background-color" to all.js and turn it on for certain reftests. r=kats 2017-05-18 17:40:18 +08:00
Ethan Lin a036611f1c Bug 1363998 - Part1. Correct the coordinate space of webrender mask layer. r=kats 2017-05-18 17:40:18 +08:00
Morris Tseng f84dd075bc Bug 1336986 - Return false in ContainsOnlyColoredGlyphs if no glyphs are drawing. r=jrmuizel
If font is downloading, we don't draw any glyphs in drawtarget which
means mDrawCommandsStorage doesn't contain any FILLGLYPHS command.
Return false in this situation so that we can handle it correctly in the
caller.

MozReview-Commit-ID: CtxvCeYh0ii
2017-05-18 10:55:28 +08:00
Morris Tseng d4a7d996c6 Bug 1336986 - Enable layers.advanced.bullet-layers if webrender is enabled. r=kats
MozReview-Commit-ID: LNgErQCNeTq
2017-05-18 10:55:28 +08:00
sotaro 065b0ac164 Bug 1354198 - Fix WebRenderBridgeParent::RecvShutdown() r=nical 2017-05-18 09:31:46 +09:00
Jeff Muizelaar b075675c65 Bug 1365358. Add an implementation of CopyGlyphsToBuilder for Recording. r=Bas 2017-05-17 10:47:32 -04:00
Jeff Muizelaar b9411eb4eb Bug 1364626. Ensure our transaction arrives at the compositor before asking the parent to paint. r=dvander
This makes UpdateLayerTree synchronous enough to ensure that the layer
transaction from the child reaches the compositor. Given the comment in
http://searchfox.org/mozilla-central/rev/484d2b7f51b7aed035147bbb4a565061659d9278/dom/interfaces/base/nsIDOMWindowUtils.idl#106
this seems to be the original intent of this function anyways. Without this, we
can have a race between the child talking to the compositor and the child
talking to the parent talking to the compositor.

This also changes GetCompositorBridgeChild to work even when the widget doesn't
have a CompositorBridge
2017-05-17 10:45:33 -04:00
Jeff Muizelaar 0ed20eff4a Revert "Ensure our transaction arrives at the compositor before asking the parent to paint"
This reverts commit e0ec2a72700f.
2017-05-17 10:44:33 -04:00
Jeff Muizelaar b2c7a3fec1 Ensure our transaction arrives at the compositor before asking the parent to paint
This makes UpdateLayerTree synchronous enough to ensure that the layer
transaction from the child reaches the compositor. Given the comment in
http://searchfox.org/mozilla-central/rev/484d2b7f51b7aed035147bbb4a565061659d9278/dom/interfaces/base/nsIDOMWindowUtils.idl#106
this seems to be the original intent of this function anyways. Without this, we
can have a race between the child talking to the compositor and the child
talking to the parent talking to the compositor.

This also changes GetCompositorBridgeChild to work even when the widget doesn't
have a CompositorBridge
2017-05-17 10:42:09 -04:00
Kartikaya Gupta dc10ea1700 Merge m-c to graphics
MozReview-Commit-ID: 5Rpd42jqi40
2017-05-17 08:39:54 -04:00
sotaro 12f8ed1f22 Bug 1360701 - Remove sync wait during removing pipeline r=nical 2017-05-16 17:28:20 -07:00
Jeff Muizelaar f9396fc921 Bug 1364241. Handle empty transactions by keeping around the blob data. r=mchang
This just wasn't implemented before.
2017-05-16 15:34:07 -04:00
Kartikaya Gupta 77fae9e5d6 Merge m-c to graphics
MozReview-Commit-ID: 6TxOtFjEGyY
2017-05-16 09:16:28 -04:00
Andrew Osmond 7539a95cae Bug 1365009 - Only discard images and compositor animations if GPU process is still available. r=sotaro 2017-05-16 07:08:19 -04:00
sotaro 3121f12bfb Bug 1364302 - Fix HoldExternalImage() handling r=nical 2017-05-15 22:18:54 -07:00
Lee Salzman 8ffb6649bf Bug 1364774 - fix premultiplied color output from linear gradients in Skia. r=mchang
MozReview-Commit-ID: Ay3ftFJz6a3
2017-05-24 15:52:56 -04:00
Dennis Ek 907fde9487 Bug 1111333 - Enable double-tap-drag to zoom. r=kats
MozReview-Commit-ID: KpwVNZZdLPd
2017-05-23 19:53:06 +02:00
Kartikaya Gupta fc0b73bcdf Bug 1363683 - Update webrender to cset 7f37799d63ed80a07675ad599526290843394c99. r=jrmuizel
In addition to updating gfx/webrender and gfx/webrender_traits, this patch:
- Updates the webrender_bindings Cargo.toml file for version bumps
- Updates the Cargo.lock files and revendors the third-party rust dependecies
- Updates the webrender bindings for a change in the display list construction
  and finalization API in WR csets 425155a and 1eb84eb.
  We now have to pass around a content size parameter to construct a display list,
  and we get back a content size from finalizing the display list. Since we pass
  the finalization results over IPC to WebRenderBridgeParent, we need to update
  the IPDL as well to pass this around.
- Updates the webrender bindings for a change to scroll_node_with_id in WR cset
  48a098f.
- Updates the webrender bindings for a change to push_text in WR cset 3287c15.
2017-05-15 15:13:31 -04:00
Kartikaya Gupta 35374ded53 Merge m-c to graphics
MozReview-Commit-ID: BYH3uvvu4jz
2017-05-15 09:36:37 -04:00
Andrew Osmond 5317ca1f27 Bug 1362839 - Handle GPU resets more gracefully. r=sotaro 2017-05-15 08:23:30 -04:00
Kartikaya Gupta 7accd1c409 Bug 1361497 - Follow-up to fix unified build bustage on Windows. r=bustage
MozReview-Commit-ID: 17o1RJVbmiT
2017-05-12 14:27:57 -04:00
Kartikaya Gupta 779cfe70bd Bug 1361497 - Add a mechanism to push the async scroll data from APZ to WR. r=jrmuizel,botond
This is the WR equivalent (but stripped down to the basics) of the code
in AsyncCompositionManager that advances APZ animations and applies the
async transform to the layer's shadow transform. Currently this doesn't
do anything fancy with the extra scrolling clips, or moving scrollbars,
etc.

MozReview-Commit-ID: BwbNRNHAc6G
2017-05-12 13:58:20 -04:00
Kartikaya Gupta a5c9d69f63 Bug 1361497 - Refactoring to simplify getting the root CompositorBridgeParent and APZCTreeManager. r=jrmuizel
This allows for some code reuse in upcoming patches where we need to get
a hold of the APZCTreeManager.

MozReview-Commit-ID: 8oGiGH07fnF
2017-05-12 13:58:17 -04:00
Kartikaya Gupta 3ba2f96414 Bug 1361497 - Push scrolling clips for scrollable layers in the layer tree. r=jrmuizel
This adds an RAII helper and uses it in RenderLayer functions. When APZ
is enabled, the RAII helper pushes a scrolling clip for each scrollable
metrics on the layer. It also pops off the scrolling clips on
destruction. Note that this should happen before any other things are
pushed into the WR display list for the rendering of a layer, since
those things should be subjected to the enclosing scrolling clips.
If APZ is disabled, this skips pushing the scrolling clips.

MozReview-Commit-ID: 1qv9egKbbok
2017-05-12 13:58:15 -04:00
Kartikaya Gupta d6bf025959 Bug 1361497 - Override AsyncPanZoomEnabled() in WebRenderLayerManager. r=jrmuizel
MozReview-Commit-ID: GlYIRN1Gjw3
2017-05-12 13:58:12 -04:00
Kartikaya Gupta 25fc029efd Bug 1361497 - Clean up the WR APIs for pushing scrolling clips vs non-scrolling clips. r=jrmuizel
The clips in WR do double-duty - they can be either scrolling clips or
non-scrolling clips. From gecko's point of view we want to treat them
separately so this updates the WebRenderAPI wrapper to expose two
different APIs for the two types of clips.

MozReview-Commit-ID: 3SLWkAq7Uxd
2017-05-12 13:58:09 -04:00
Kartikaya Gupta 85ce3b9a88 Merge m-c to graphics
MozReview-Commit-ID: LHvR5izGDcT
2017-05-12 10:20:09 -04:00
Carsten "Tomcat" Book 7a4eb50360 merge mozilla-inbound to mozilla-central a=merge 2017-05-12 14:36:44 +02:00
Morris Tseng cef7414265 Bug 1344082 - Create webrender commands for nsDisplayTableBorderCollapse. r=mstange
Gecko only draw one line for each collapsed border. In order to draw
only one line border in webrender, I create normal border webrender
command but only show top side of border for inline direction and left
side for block direction.

MozReview-Commit-ID: 7QChXuzVbg7
2017-05-12 09:39:01 +08:00
Kartikaya Gupta 5068b9bf11 Bug 1364214 - Convert some tabs to spaces. r=me and DONTBUILD
MozReview-Commit-ID: IWn11Ev1j4J
2017-05-11 17:21:11 -04:00
Kartikaya Gupta f262a4e6db Merge m-c to graphics
MozReview-Commit-ID: 2okRQxtQnFa
2017-05-11 07:47:25 -04:00
vincentliu 3d037c531f Bug 1363675 - Get D3D11Device from TextureSourceProvider if it exists. r=dvander 2017-05-12 14:09:53 +08:00
Kartikaya Gupta a4a58a3748 Merge m-c to graphics
MozReview-Commit-ID: Ax2mJsUs80t
2017-05-10 11:21:46 -04:00
Carsten "Tomcat" Book d66b9f27d5 merge mozilla-inbound to mozilla-central a=merge 2017-05-10 15:07:28 +02:00
Lee Salzman 8c18901f07 Bug 1340627 - part 8 - reftest fuzzing for update to Skia m59. r=mchang
MozReview-Commit-ID: LN29P1I4EsW
2017-05-09 22:31:07 -04:00
Lee Salzman 9e92454bc6 Bug 1340627 - part 6 - fix layers for Skia m59. r=mchang
MozReview-Commit-ID: 6pAV6FKDFQ4
2017-05-09 22:31:07 -04:00
Lee Salzman db313c8c40 Bug 1340627 - part 5 - fix SkiaGL glue for Skia m59. r=mchang
MozReview-Commit-ID: LelzAgAdWb7
2017-05-09 22:31:07 -04:00
Lee Salzman 5587d89b74 Bug 1340627 - part 4 - fix thebes for Skia m59. r=mchang
MozReview-Commit-ID: JDlSyKeT389
2017-05-09 22:31:07 -04:00
Lee Salzman ec8d1a9a71 Bug 1340627 - part 3 - fix Moz2d for Skia m59. r=mchang
MozReview-Commit-ID: 1fugjwSpOMZ
2017-05-09 22:31:07 -04:00
Lee Salzman 3bbca77ed4 Bug 1340627 - part 2 - update moz.build for Skia m59. r=jrmuizel
MozReview-Commit-ID: KdPvBio96Cw
2017-05-09 22:31:06 -04:00
Lee Salzman b4227baa51 Bug 1340627 - part 1 - update Skia source to m59. r=mchang
--HG--
rename : gfx/skia/skia/src/gpu/glsl/GrGLSL_impl.h => gfx/skia/skia/include/private/GrGLSL_impl.h
rename : gfx/skia/skia/src/core/SkMessageBus.h => gfx/skia/skia/include/private/SkMessageBus.h
rename : gfx/skia/skia/include/core/SkBlitRow.h => gfx/skia/skia/src/core/SkBlitRow.h
rename : gfx/skia/skia/include/effects/SkGaussianEdgeShader.h => gfx/skia/skia/src/effects/SkGaussianEdgeShader.h
rename : gfx/skia/skia/src/gpu/batches/GrAAConvexPathRenderer.h => gfx/skia/skia/src/gpu/ops/GrAAConvexPathRenderer.h
rename : gfx/skia/skia/src/gpu/batches/GrAAConvexTessellator.h => gfx/skia/skia/src/gpu/ops/GrAAConvexTessellator.h
rename : gfx/skia/skia/src/gpu/batches/GrAAHairLinePathRenderer.h => gfx/skia/skia/src/gpu/ops/GrAAHairLinePathRenderer.h
rename : gfx/skia/skia/src/gpu/batches/GrAALinearizingConvexPathRenderer.h => gfx/skia/skia/src/gpu/ops/GrAALinearizingConvexPathRenderer.h
rename : gfx/skia/skia/src/gpu/batches/GrPathStencilSettings.h => gfx/skia/skia/src/gpu/ops/GrPathStencilSettings.h
rename : gfx/skia/skia/src/gpu/batches/GrStencilAndCoverPathRenderer.h => gfx/skia/skia/src/gpu/ops/GrStencilAndCoverPathRenderer.h
rename : gfx/skia/skia/include/xml/SkXMLParser.h => gfx/skia/skia/src/xml/SkXMLParser.h
2017-05-09 22:30:58 -04:00
Tom Ritter 88a2234bd4 Bug 1363173 Update OpenVR to build with MinGW r=kip
This involved four commits:
- Windows.h -> windows.h and similar https://github.com/ValveSoftware/openvr/pull/508
- Add a void* cast for a farproc auto-conversion https://github.com/ValveSoftware/openvr/pull/509
- Add share.h https://github.com/ValveSoftware/openvr/pull/510
- Use GCC Variadic Macros https://github.com/ValveSoftware/openvr/pull/511

MozReview-Commit-ID: KC7Z3r8qSUY

--HG--
extra : rebase_source : 747b14607d2acad92672085e390b8dd6d4678a46
2017-05-08 15:29:43 -05:00
Alexis Beingessner 6ece5add60 Bug 1361751 - Update gecko bindings to webrender to reflect changes in PR 1181. r=kats
MozReview-Commit-ID: Fxt4sNm4vxa
2017-05-08 13:52:16 -04:00
Kartikaya Gupta 7818effada Bug 1361751 - Update webrender to 964df2f. r=jrmuizel
This includes the Cargo.lock file changes and regenerated bindings.
2017-05-10 10:28:39 -04:00
Alexis Beingessner 27c2836b77 Bug 1363201 - fix the impl of WrVecU8, r=jrmuizel
Two bugs:

* We were failing to (re)initialize the length to 0, leading to segfaults on Rust processing "empty" lists.

* We were setting the pointer of empty Vec's to null, which is technically UB in Rust because Vec tells Rust its pointer is non-null (this is why Option<Vec<T>> has the same size as Vec<T>). align_of::<T> is what it uses to as a non-null junk pointer, which in this case is 1.

MozReview-Commit-ID: Gzy1NtKlSV7
2017-05-08 17:24:39 -04:00
Ethan Lin 4174a69a92 Bug 1362967 - Push clip region in WebRenderDisplayItemLayer. r=kats 2017-05-10 13:51:24 +08:00
Kartikaya Gupta 98a9d60b94 Merge m-c to graphics
MozReview-Commit-ID: ETkjQuNwtc8
2017-05-09 09:16:42 -04:00
sotaro 38717ce0a5 Bug 1360717 - Make WebRenderCompositableHolder could generate WrImageKey r=nical 2017-05-09 01:19:48 -07:00
Kartikaya Gupta 5d5cdc518c Merge m-c to graphics
MozReview-Commit-ID: 2cIoGVmLEuA
2017-05-08 10:50:52 -04:00
Ryan Hunt 05ee8df788 Bug 1362925 - Update webrender_bindings for cbindgen:0.1.7 r=kats
MozReview-Commit-ID: AwlqUWWEWfz

--HG--
extra : rebase_source : deace018f5d25f3eeecd5d4d683bb4f9a782a05c
extra : amend_source : 051d621e7b35e5389627b0946e7f87f0f8b9fa14
2017-05-08 01:31:20 -04:00
Morris Tseng 2e459a5741 Bug 1362324 - Use BlobImage for path type of bullet item. r=jrmuizel
MozReview-Commit-ID: 4ld6biSaFce
2017-05-08 14:14:41 +08:00
Wes Kocher 90573b0612 Merge m-c to autoland, a=merge
MozReview-Commit-ID: FYdNNRDmEla
2017-05-18 17:21:30 -07:00
cku 4790d4da73 Bug 1351440 - Part 4. Pass imgDrawingParams to nsSVGPaintServerFrame::GetPaintServerPattern. r=jwatt
The reason of this change is the same as for Part 2, except that this commit fixes
nsSVGPaintServerFrame::GetPaintServerPattern rather than PaintSVG.

Commit-ID: 691YrKZ0Lm9
MozReview-Commit-ID: KSnFhCndFUk
2017-05-18 22:03:50 +02:00
cku d85d3ab378 Bug 1351440 - Part 2. Encapsulate DrawResult and imgIContainer::FLAG_* into imgDrawingParams, and pass it to PaintSVG. r=jwatt
The DrawResult return was not in fact anything to do with the success or
failure of that method, but was actually passing out a very specific piece of information
about the success or failure of any imagelib drawing that may not have occurred
under the various PaintSVG calls.

The signature of PaintSVG is changed from
  DrawResult PaintSVG(...., uint32 flags);
to
  void PaintSVG(...., imgDrawingParams& aPackage);

imgDrawingParams wraps DrawResult and imgIContainer::FLAG_* as a pack, pass through
PaintSVG to imagelib draw calls under beneath.

MozReview-Commit-ID: IOq2evUAOQF
2017-05-18 22:03:41 +02:00
Sebastian Hengst 41f1727bf4 Backed out changeset f3460d42d23c (bug 1351440) 2017-05-18 21:15:35 +02:00
Sebastian Hengst 00458fa236 Backed out changeset 2ea1279576d2 (bug 1351440) 2017-05-18 21:15:26 +02:00
Jeff Muizelaar 60c7aca953 Bug 1362505. Correctly set the transforms on all DrawTargets. r=lsalzman
I suppose this got worse when we started using multiple DrawTargets.
But let's just do the right thing and not special case transforms.
2017-05-05 23:51:35 -04:00
Wes Kocher 0174ce8ebb Merge inbound to m-c a=merge
MozReview-Commit-ID: AVhTkLAYIv7
2017-05-18 17:13:28 -07:00
Lee Salzman b138a8ec44 Bug 1365935 - add Moz2D Factory methods for making an FT_Library. r=jrmuizel
MozReview-Commit-ID: 7gQuVrl38aT
2017-05-18 13:16:06 -04:00
Carsten "Tomcat" Book e5197b271a Merge mozilla-central to autoland 2017-05-18 15:00:43 +02:00
Kartikaya Gupta 2664b66a6a Bug 1361356 - Properly unapply the stacking context transform and origin translation when building mask layers. r=ethlin
MozReview-Commit-ID: B5XzX6Tq4PZ
2017-05-05 11:44:49 -04:00
Jeff Muizelaar 2d0ade0f7c Bug 1362221. InlineTranslator should track DrawTargets. r=lsalzman
Previously we always used the initial DrawTarget regardless of what was being drawn.
2017-05-05 10:34:03 -04:00
Daosheng Mu f8427acdf3 Bug 1364856 - When VRLayerChild receives __delete__, stop sending IPC messages; r=kip
MozReview-Commit-ID: 2vKdzipaga0

--HG--
extra : rebase_source : 56d586b5a82a68aa99ff53dba309cc4a9ea476ed
2017-05-15 18:55:42 +08:00
Wes Kocher 54a256d920 Merge m-c to autoland a=merge
MozReview-Commit-ID: L0rsjIzeVij

--HG--
extra : rebase_source : 8b581702a4534fb9394f8d3f4e85f65d6f4ff293
2017-05-15 17:02:08 -07:00
Wes Kocher 274ba1a154 Merge inbound to central, a=merge
MozReview-Commit-ID: AFMOzsYBEjc
2017-05-15 16:22:21 -07:00
Randall Barker 962808afbf Bug 1364194 - Refresh static toolbar snapshot when page width changes r=botond,jchen
MozReview-Commit-ID: HaQo66j640g
2017-05-15 11:30:09 -07:00
James Willcox 2d93d7d835 Bug 1322650 - Adjust Android Flash support to API changes r=jchen
MozReview-Commit-ID: CmMINaGcTER
2017-05-15 09:37:52 -05:00
James Willcox cf48e4bebd Bug 1322650 - Support a 'continuous' mode for SurfaceTexture r=jgilbert
This is needed to support Flash on Android

MozReview-Commit-ID: 5yNIoZHonla
2017-05-15 09:37:50 -05:00