Commit Graph

12781 Commits

Author SHA1 Message Date
Jonathan Kew
9701fa420c Bug 1098497 - Update OTS to latest upstream (at commit 7091a232a10a741591ff25158c98ca3f0c319cf9) to pick up recent fixes. r=jdaggett 2014-11-17 15:24:05 +00:00
Nicolas Silva
cbbfb1eefb Bug 1098000 - Track the number of compositable references to TextureHost and only unbind gralloc textures after the last ref goes away. r=sotaro 2014-11-17 11:06:25 +01:00
Jonathan Kew
fbc98bcee2 Bug 1097615 - Add MOZ_OVERRIDE annotations to subclasses of gfxFont. r=jdaggett 2014-11-17 09:59:50 +00:00
Jonathan Kew
f5cde7120d Bug 1089787 - Get glyph widths via Core Text for fonts with embedded color bitmaps. r=jdaggett 2014-11-17 09:59:49 +00:00
John Daggett
ff33687bba Bug 1100221 - eliminate unused GetOrMakeFont for Android. r=m_kato 2014-11-17 16:48:51 +09:00
Bas Schouten
a5a7dfd4e9 Bug 1099335: Base decision to use a complex clip on whether a DT supports regoin clipping. r=jrmuizel
DrawTargets that support region clipping are able to clip to regions effectively. Other DrawTargets go through expensive complex clip paths. When invalidating regions we have code that draws in multiple steps when using Direct2D to avoid this expense, we should base the decision to do this simply on whether the DrawTarget supports fast region clipping.
2014-11-16 19:17:40 +00:00
David Anderson
2182b4bcd7 Don't overscroll during a fling unless overscrolling is enabled. (bug 1099442, r=botond) 2014-11-14 16:19:00 -08:00
Jeff Gilbert
3d961e43a1 Bug 1089018 - Centralize GLContext spew control. - r=jrmuizel 2014-10-24 18:26:41 -07:00
George Wright
ddcc53392b Bug 1042291 - Add a CanvasDrawObserver which observes the first few seconds/frames of a Canvas2D's lifetime to determine using a heuristic if it should be software or GPU backed. r=gw280, r=snorp 2014-09-10 16:15:43 -04:00
Matt Woodrow
14684fb403 Bug 1088414. Use a single synchronized texture for d3d11. r=bas,f=jrmuizel
Calling AcquireSync on textures created with
D3D11_RESOURCE_MISC_SHARED_KEYEDMUTEX appears to be really slow, this really
bites us with the number of textures involved when tiling.

I've also tested using ID3D11Query to check when work is completed, this also
appears to be pretty slow.

This instead just uses a single texture with a keyedmutex, and makes sure we
draw to it last and lock it first. It's pretty hacky, but seems to work really
well so far.

--HG--
extra : rebase_source : bf5f56751f993e507fcd1e5c386fb1fc9a3f73af
2014-10-22 15:37:00 +13:00
Jeff Muizelaar
57d89410fa Bug 1098389. Remove ClipToRegionSnapped. r=roc
We don't use this anymore.

--HG--
extra : rebase_source : 918eaa73f653962dccbfe6efdad69203ba041ef3
2014-11-14 10:46:02 -05:00
Ryan VanderMeulen
8fe06c507c Backed out changesets a99bd0b3b075, a7fb851f823a, and 9fc2d99376cd (bug 552020) for non-unified bustage and OSX 10.6 tsvgr crashes.
CLOSED TREE
2014-11-14 15:57:35 -05:00
Mason Chang
1afc3f21b7 Bug 552020. Part 2. Enable Vsync Profiler Markers across platforms. r=benwa 2014-11-14 08:31:04 -08:00
Kartikaya Gupta
3933eecfe6 Bug 1090398 - Add basic gtests for the event-regions based hit-testing code. r=botond 2014-11-14 07:40:15 -05:00
Kartikaya Gupta
9c9f623d19 Bug 1090398 - Require APZC target confirmation before input blocks are ready for handling. r=botond
For proper hit-testing we need to deal with situations where the initial touch
input falls on a dispatch-to-content region of an APZC, and the main thread
later tells us that it actually hit another APZC. This patch allows input blocks
to have an "unconfirmed" APZC target for the initially-found target that can
then be replaced with a different target. Input blocks without a confirmed
target are not ready for processing.
2014-11-14 07:40:15 -05:00
Kartikaya Gupta
7df1d86097 Bug 1090398 - Distinguish the various outcomes of APZ hit testing more explicitly. r=botond
Previously we output of APZ hit testing was an APZC instance and an "in
overscroll" flag. Now we need to also distinguish between the hit region and the
dispatch-to-content region for an APZC, so this patch introduces an enum that
makes this more explicit.
2014-11-14 07:40:15 -05:00
Kartikaya Gupta
ce879548c2 Bug 1090398 - Workaround for scrollinfo layers not yet having event regions set up correctly. r=botond
Until bug 1082594 is fixed, the area occupied by inactive scrollable subframes
don't get added to their layer's dispatch-to-content region. Therefore the APZ
code doesn't know what area corresponds to the subframe, even though it knows
there is a subframe because of the scrollinfo layer. This change inserts a small
workaround to deal with the scrollinfo layers specially, so that the composition
bounds from the scrollinfo layer is used to obtain the area. Once bug 1082594
is fixed this can probably be removed.
2014-11-14 07:40:15 -05:00
Kartikaya Gupta
28d8e0fc7e Bug 1090398 - Small refactoring that adds ParentLayerPixel::ToUntyped. r=botond 2014-11-14 07:40:14 -05:00
Kartikaya Gupta
ce01ad7c02 Bug 1090398 - Add support for using the layer event regions for hit testing. r=botond
When the event-regions are provided by layout, use them to populate the APZ-side
hit testing regions. The existing code is still used when event-regions are not
provided by layout.
2014-11-14 07:40:14 -05:00
Kartikaya Gupta
9dac319884 Bug 1090398 - Use EventRegions objects instead of nsIntRegions for tracking APZ hit-test areas. r=botond
This simply swaps out the existing nsIntRegion used in APZ hit-testing for
an EventRegion object. The dispatch-to-content region inside the EventRegions
is kept empty, and there are no functional changes here.
2014-11-14 07:40:14 -05:00
Kartikaya Gupta
45d7200155 Bug 1090398 - Update the APZ docs to reflect the new hit-testing design. r=botond 2014-11-14 07:40:13 -05:00
Carsten "Tomcat" Book
cbd21d3efa Backed out changeset 80f873bf8adc (bug 1036682) for test bustage 2014-11-14 12:32:47 +01:00
Nicolas Silva
99c9b7f8d2 Bug 1036682 - Check that the ipdl connection is not lost before sending messages. r=bjacob 2014-11-14 11:25:16 +01:00
Mason Chang
e4f44ce5b4 Bug 1085512 - Improve touch resampling heuristics. r=mwu 2014-11-11 15:39:00 +01:00
Carsten "Tomcat" Book
d76cdde6d2 Backed out changeset 48667a14f94d (bug 1092360) for test bustage / crashes on a CLOSED TREE 2014-11-14 08:14:22 +01:00
Benoit Girard
8d0678b3a9 Bug 1092360 - Avoid redundant framebuffer switches. r=jrmuizel 2014-11-12 17:39:17 -05:00
Matt Woodrow
1c657b5c30 Bug 1097441 - Followup bustage fix on a CLOSED TREE 2014-11-14 17:30:02 +13:00
Matt Woodrow
4388171f43 Bug 1097441 - Initialize mSize on BufferTextureHost. r=nical 2014-11-13 10:44:42 +13:00
Nicholas Nethercote
900fc288d5 Bug 1098185 - Initialize some more fields in ShadowLayerForwarder when Valgrind is enabled. r=mattwoodrow.
--HG--
extra : rebase_source : 0063948d7a657421005535c8faad68e69b1a5fcf
2014-11-13 01:15:25 -08:00
Jeff Muizelaar
506b2d30bd Bug 1089364. Avoid trying to resize the swap chain to a negative size. r=bas
This was causing GetBuffer to return DXGI_ERROR_INVALID_CALL

--HG--
extra : rebase_source : 49e62fd5dda1e28268218cffca4ea1ce7af1b6ea
2014-11-13 10:10:48 -05:00
Jeff Muizelaar
814986a4f4 Bug 1097877. Move GLBlitTextureImageHelper from gfx/gl to gfx/layers/opengl. r=nical
The only user is in layers/opengl. This is needed to do better state tracking
in the compositor.

--HG--
rename : gfx/gl/GLBlitTextureImageHelper.cpp => gfx/layers/opengl/GLBlitTextureImageHelper.cpp
rename : gfx/gl/GLBlitTextureImageHelper.h => gfx/layers/opengl/GLBlitTextureImageHelper.h
extra : rebase_source : bba00cbfac9253ca933721659dadbda2bfbe65c5
2014-11-10 14:49:05 -05:00
James Willcox
a24b125d4b Bug 1086693 - Part 6: Use generated bindings for AndroidMediaCodec and AndroidSurfaceTexture r=blassey,gcp 2014-11-13 12:47:24 -06:00
Benoit Girard
e30c4919f8 Bug 1094442 - Part 2: Adjust tile size to the stride of the gralloc buffers. r=kats
--HG--
extra : rebase_source : d3386ee007d6429b81aa6d3ffe6c518fb67c7d6a
2014-11-12 17:55:13 -05:00
Benoit Girard
660dd0fe19 Bug 1094442 - Part 1: Refactor how tile w/h is queried r=kats
--HG--
extra : rebase_source : 70ef00318a718e2ce3149955d2908615d6125cf3
2014-11-12 17:54:29 -05:00
Sotaro Ikeda
4a82ce7331 Bug 1091777 - Add TextureClient recycling to CairoImag r=nical 2014-11-13 07:53:49 -08:00
Botond Ballo
38686d1732 Bug 1055741 - Unify the 'local Screen' and 'ParentLayer' coordinate systems. r=kats 2014-11-10 14:35:11 -05:00
Botond Ballo
68842f2b93 Bug 1076163 - Clean up the resolution-related fields and methods in FrameMetrics. r=kats 2014-10-20 17:12:35 -04:00
Botond Ballo
a9023af387 Bug 1076163 - Basic APZ support for css-driven resolution. r=kats,tn
This makes APZ behave nicely with most uses of a css transform:scale.

Summary of changes:
  - FrameMetrics::mCumulativeResolution now includes the css-driven resolution
    in addition to the pres-shell resolution.
  - Displayports are now stored in Screen pixels rather than Layer pixels.
    This is what we want anyways (as we'd like the displayport size to remain
    constant as a fraction of the screen size), but it was necessary to make
    this change as part of this patch because continuing to store them in
    Layer pixels in the presence of a css-driven resolution would have
    required a bunch of infrastructure to implement correctly.

Remaining work:
  - Layout painting a scrollable layer at a resolution different from the
    scale induced by the css transform causes problems. These will go away
    with bug 1076192.
  - Different resolutions on the x and y axes are not supported. This is
    tracked by bug 1039967.
2014-10-24 15:49:38 -04:00
Douglas Crosher
f231775894 Bug 1021367 - Assertion failure in GetShaderConfigFor. r=nical 2014-06-09 20:10:28 +10:00
Jacek Caban
e31b15a5d3 Bug 1094141 - Don't export skia APIs from xul.dll. r=glandium 2014-11-13 13:09:48 +01:00
Carsten "Tomcat" Book
02e93c125d Backed out changeset fbb9dc943109 (bug 1076163) for Android 4.0 Crashes on a CLOSED TREE 2014-11-13 11:47:57 +01:00
Carsten "Tomcat" Book
93c5475e8e Backed out changeset 71fe4233208a (bug 1076163) 2014-11-13 11:47:35 +01:00
Carsten "Tomcat" Book
5e23d64a72 Backed out changeset a96930f1e26b (bug 1055741) 2014-11-13 11:47:31 +01:00
Jonathan Kew
927f4cacfd Bug 1093553 - Improve handling of line-height metrics, block ascent, etc., in vertical writing mode. r=smontagu 2014-11-13 08:58:06 +00:00
Jonathan Kew
79125e0c6c Bug 1090168 - part 1 - Make textBaseline attribute in <canvas> work for vertical text. r=jdaggett 2014-11-13 08:58:04 +00:00
Botond Ballo
29b59b1060 Bug 1055741 - Unify the 'local Screen' and 'ParentLayer' coordinate systems. r=kats
--HG--
extra : rebase_source : af7323668fb54079e121755660da2121bec3d76b
2014-11-10 14:35:11 -05:00
Botond Ballo
047a1c10a0 Bug 1076163 - Clean up the resolution-related fields and methods in FrameMetrics. r=kats 2014-10-20 17:12:35 -04:00
Botond Ballo
eedb31a2aa Bug 1076163 - Basic APZ support for css-driven resolution. r=kats,tn
This makes APZ behave nicely with most uses of a css transform:scale.

Summary of changes:
  - FrameMetrics::mCumulativeResolution now includes the css-driven resolution
    in addition to the pres-shell resolution.
  - Displayports are now stored in Screen pixels rather than Layer pixels.
    This is what we want anyways (as we'd like the displayport size to remain
    constant as a fraction of the screen size), but it was necessary to make
    this change as part of this patch because continuing to store them in
    Layer pixels in the presence of a css-driven resolution would have
    required a bunch of infrastructure to implement correctly.

Remaining work:
  - Layout painting a scrollable layer at a resolution different from the
    scale induced by the css transform causes problems. These will go away
    with bug 1076192.
  - Different resolutions on the x and y axes are not supported. This is
    tracked by bug 1039967.
2014-10-24 15:49:38 -04:00
Ryan VanderMeulen
d73dadfdf4 Backed out changeset 92295f515d2d (bug 1091777) for bustage. 2014-11-12 21:09:40 -05:00
Sotaro Ikeda
8caee362ff Bug 1091777 - Add TextureClient recycling to CairoImag r=nical 2014-11-12 17:47:10 -08:00
Robert O'Callahan
546895dac0 Bug 1097437. Work around Quartz bug where corners of stroked rects don't get a solid color when they should. r=jrmuizel
--HG--
extra : rebase_source : deb88329b8948686119df73122032db999006cae
2014-11-12 20:52:57 +13:00
Bas Schouten
130dead229 Bug 1097803: Report succesful Direct2D 1.1 usage. r=jrmuizel 2014-11-12 18:44:31 +00:00
Benoit Jacob
501074de70 Bug 1095575 - DoesD3D11DeviceWork() should be overridable by force-enable prefs - r=bas 2014-11-12 11:48:01 -05:00
Sotaro Ikeda
e9e3da81d6 Bug 1095639 - Re-enable acquire fence delivery on gonk r=nical 2014-11-12 07:55:31 -08:00
Michael Wu
3e4ec858ff Bug 1082827: Allow D2D 1.1 to be selected for the canvas backend. r=bas 2014-11-12 15:05:14 +00:00
Bas Schouten
ee8f77a5a6 Bug 1097476: Fix typo in D2D 1.1 radial gradient code. r=jrmuizel 2014-11-12 15:05:13 +00:00
Bas Schouten
6626dc8849 Bug 1097293: Do not draw radial gradients when centers and radii are identical. r=jrmuizel
When Cinner and Couter are equal, as well as Rinner and Router, the algorithm described in the canvas specification will hit a division by 0. As described in section 7 of the Canvas2D specification nothing should be drawn in this situation.
2014-11-12 15:05:13 +00:00
Milan Sreckovic
53a7d1076c Bug 1092191 - Do not warn about failure to load _Z35eglQueryStringImplementationANDROIDPvi. r=dglastonbury 2014-11-11 11:18:44 -05:00
chiajung hung
e46182f3b1 Bug 880114 - Enhance render video-to-SkiaGL performance by GPU-based color space conversioni, r=gw280 2014-11-11 21:14:00 +01:00
Karl Tomlinson
2ceb8d1823 backout bug 1096132 for Mac build failure
--HG--
extra : rebase_source : 6994fe50e8fb1a4f89298e1b9ad1c714acdfe39e
2014-11-12 16:02:34 +13:00
Karl Tomlinson
468d4b8042 bug 1096132 rename nsDeviceContext PixelScale to FullZoom r=tn
--HG--
extra : rebase_source : 06d57772b2dc04d606b3d98517085aeb817ae0e8
2014-11-10 15:47:55 +13:00
Karl Tomlinson
b7e824dd53 bug 1096132 rename UpdateScaledAppUnits() to UpdateAppUnitsForFullZoom() r=tn
--HG--
extra : rebase_source : ec70af284ea91d28e6f66b487c7a543a1d93c7cc
2014-11-08 17:30:15 +13:00
Karl Tomlinson
c08f9a6639 bug 1096132 rename UnscaledAppUnitsPerDevPixel() to AppUnitsPerDevPixelAtUnitFullZoom() r=tn
--HG--
extra : rebase_source : 113b249f2cb6f1619e0b1a495655726b5100038b
2014-11-08 17:48:14 +13:00
Seth Fowler
aa9efcdeea Bug 1071217 - Explicitly initialize the image module from gfxPlatform::Init. r=bas
--HG--
extra : rebase_source : c4c96ff051347dd85e053669533bd00d6120c75a
2014-11-11 17:28:50 -08:00
Jeff Gilbert
baa28ca708 Bug 1096634 - Treat ANGLE default FB as RGB(A). - r=kamidphish 2014-11-05 15:04:55 -08:00
Bas Schouten
52af2a52e4 Bug 1088235: Use DrawBitmap when we can. r=jrmuizel 2014-11-11 22:09:31 +00:00
Ryan VanderMeulen
e0bf778a50 Merge inbound to m-c. a=merge 2014-11-11 16:29:57 -05:00
Ryan VanderMeulen
06e7d8f713 Backed out 7 changesets (bug 1086693) for Android bustage on a CLOSED TREE. DONTBUILD
Backed out changeset 6eed18d830d2 (bug 1086693)
Backed out changeset b67a2e48f281 (bug 1086693)
Backed out changeset 2b4b439e7e6c (bug 1086693)
Backed out changeset 3adfd767a92f (bug 1086693)
Backed out changeset 6ea8b9247915 (bug 1086693)
Backed out changeset 408af1e3b457 (bug 1086693)
Backed out changeset 4c759b83892a (bug 1086693)
2014-11-11 16:13:15 -05:00
James Willcox
8d04836075 Bug 1086693 - Part 6: Use generated bindings for AndroidMediaCodec and AndroidSurfaceTexture r=blassey,gcp 2014-11-11 14:46:09 -06:00
Ryan VanderMeulen
c4e947eb9e Backed out changesets 857063c82323 and a19479860eb4 (bug 619521) for Valgrind failures.
CLOSED TREE
2014-11-11 13:10:56 -05:00
Kartikaya Gupta
9559bab90f Bug 1091296 - When applying the APZ transform on a layer, make sure not to clobber any existing OMTA transform. r=mattwoodrow
--HG--
extra : rebase_source : 9662fbdea917d63a1205660979cbb5c6f861ba02
2014-11-11 10:54:02 -05:00
Kartikaya Gupta
86f9a0d9d3 Bug 1091296 - Remove the redundant code for clearing async transforms per frame of composition. r=mattwoodrow
We already reset the shadow transform to the layer transform in
SetShadowProperties() before compositing every frame, so this is redundant.

--HG--
extra : rebase_source : bef51e6a918ffaab134a4b53fb6f2ec6c45d9d6d
2014-11-11 10:53:57 -05:00
Kartikaya Gupta
908b5c8019 Bug 1091296 - Refactor the pre- and post-scale cancellation code into a helper method. r=mattwoodrow
--HG--
extra : rebase_source : c06309a16a13673eb59bb98c9dfd4d5c4846aad5
2014-11-11 10:53:44 -05:00
Brian Birtles
9567ad161e Bug 1095315 - Fix the order of applying pending updates and getting the effective transform in BasicLayerManager; r=mattwoodrow 2014-11-11 11:01:28 +09:00
Kartikaya Gupta
2857282c48 Bug 1094803 - Update the APZ docs a bit to describe input event flow. r=botond
DONTBUILD because this is NPOTB.
2014-11-10 16:48:52 -05:00
Jonathan Watt
76dce61fd4 Bug 1093811 - Convert the gfxFont::GetGlyphWidth() virtual method to take a Moz2D DrawTarget instead of a Thebes gfxContext. r=jfkthame 2014-11-10 21:41:41 +00:00
Jonathan Watt
089d5c85dd Bug 1093813 - Remove the gfxContext argument from gfxHarfBuzzShaper's GetGlyphHAdvance, GetGlyphVAdvance and GetGlyphVOrigin methods. r=jfkthame 2014-11-10 21:41:41 +00:00
Jonathan Watt
af8468c5ed Bug 1093806 - Convert DCFromContext to DCFromDrawTarget. r=Bas 2014-11-10 21:41:40 +00:00
Jeff Muizelaar
863784d9a2 Bug 1021265. Fix DisplayLink version expansion code. r=Bas,a=lawrence
GFX_DRIVER_VERSION(8,6,..) expands to 8.0006....
but ParseVersion(8.6,...) gives 8.5000...
This was an unfortunate error. Having better static typing
of versions would have helped here.

--HG--
extra : rebase_source : 8eb9fc7d337a017b350e6ef1935f99fd4383114d
2014-11-10 16:11:42 -05:00
Wes Kocher
3937c24881 Backed out changeset dc2e15a7df8d (bug 1096535) for bustage on a CLOSED TREE 2014-11-10 12:53:34 -08:00
Jeff Muizelaar
2f2dae5943 Bug 1096535. Add more DisplayLink logging. r=bas
--HG--
extra : rebase_source : 6569641159d6e89abcbf677b38df449333714db3
2014-11-10 15:18:10 -05:00
John Daggett
105c0743b4 Bug 1096140 - clean out unused Linux font code. r=m_kato 2014-11-10 15:18:33 +09:00
Xidorn Quan
f16b0e2980 Bug 1063857 - Improve selecting on justified characters. r=roc 2014-11-10 12:25:09 +11:00
Jonathan Kew
ff48f8b950 Bug 619521 - Part 1: Send a notification of any scripts for which font coverage is lacking. r=jdaggett 2014-11-07 06:32:00 -05:00
Lioncash
fb32a8f5d9 Bug 1085051 - Fix mismatched new[]/delete in DrawTargetCG::FillGlyphs. r=jrmuizel 2014-11-11 11:02:43 +00:00
Kartikaya Gupta
f0bd3fa57b Bug 1072093 - Support progressive-paint on OS X 10.7 or later. r=BenWa 2014-11-07 14:17:14 -05:00
Chris Jones
88106b0670 Bug 1082902 - Add mozilla_dump_image() helper exported from libxul. r=jrmuizel 2014-11-07 13:55:01 +01:00
Carsten "Tomcat" Book
7d8333465a Backed out changeset 56d4cef7ed00 (bug 880114) for m5 test failures 2014-11-07 10:47:08 +01:00
chiajung hung
2ab6d9ee99 Bug 880114 - Enhance render video-to-SkiaGL performance by GPU-based color space conversioni. r=gw280 2014-11-06 23:28:00 +01:00
Jonathan Watt
62df77dfd3 Bug 1083755 - Port the CAIRO_COORD_MAX code in nsRenderingContext::FillRect to DrawTargetCairo::FillRect. r=Bas, a=kwierso 2014-11-06 22:07:36 +00:00
Jonathan Watt
5618e5a199 No bug - Get rid of some unnecessary nsRenderingContext.h includes and nsRenderingContext forward declarations.
--HG--
extra : rebase_source : 2e682062b0c4fe3c1e916ed7c7b7ca98ec3b54d3
2014-11-06 22:07:35 +00:00
Kartikaya Gupta
91f9a6243c Bug 1093686 - Add some debug logging code for PositionedEventTargeting.cpp. r=roc 2014-11-06 08:05:51 -05:00
Milan Sreckovic
f3f7972bd9 Bug 1092262 - Doxygen docs for APZ prefs. r=kats 2014-11-05 11:04:32 -05:00
Andrew Osmond
b183596bb6 Bug 1077301 - Ensure EGL images are released when destroying the texture. r=nical 2014-11-05 08:17:00 +01:00
John Daggett
34ee28c220 Bug 475891 - support unicode-range when matching userfonts (non-linux). r=jfkthame 2014-11-06 13:42:50 +09:00
Benoit Jacob
e32a9df909 Bug 1093863 - Blacklist D3D on dual Intel/AMD not advertised as such in the registry - r=jrmuizel CLOSED TREE 2014-11-05 17:43:33 -05:00
Sotaro Ikeda
e71b403d69 Bug 1093728 - Add AddTextureClient() to CanvasClientSharedSurface::Update() r=nical 2014-11-05 08:15:48 -08:00
Jacek Caban
d356da397a Bug 1092151 - Don't use dllimport/dllexport for OTS in non-shared gkmedias builds. r=glandium 2014-11-05 11:27:13 +01:00
Jonathan Watt
a1988a8d67 Bug 1093066 - Get rid of gfxContext's Stroke() methods. r=mattwoodrow 2014-11-05 09:16:37 +00:00
Robert O'Callahan
f25127a553 Bug 1080205. Part 2: Add test. r=tn
--HG--
extra : rebase_source : 9f8a41ae255e132e572fdb5012f851554fde69d9
2014-10-30 16:33:55 +13:00
Robert O'Callahan
477cc185d8 Bug 1083635. Part 5: ClientLayerManager::BeginTransactionWithTarget should assert if we're not going to take a snapshot. r=mattwoodrow
--HG--
extra : rebase_source : 07cea353735743670cc82031bcbe738932f56829
2014-10-21 10:32:10 +13:00
Benoit Jacob
6b6641ff65 Bug 1021265 - Add AppNotes about blacklisting DisplayLink - r=jrmuizel 2014-11-04 18:17:11 -05:00
Benoit Girard
0856397303 Bug 1089380 - Remove ClipRectInLayersCoordinates. r=mattwoodrow
--HG--
extra : rebase_source : d20c08c804f45f2a6baee9063d0e73bf755054ae
2014-10-31 16:34:30 -04:00
Benoit Jacob
393eed7845 Bug 1021265 - Fix bustage - no review on a CLOSED TREE 2014-11-04 14:47:15 -05:00
Benoit Jacob
91f53aaba7 Bug 1021265 - regard d3d11 as broken with displaylink on versions <= 8.6.1.36484, and fall back to basic layers - r=jrmuizel 2014-11-03 17:55:00 -05:00
Phil Ringnalda
b76de1946d Back out 293c48ec288c (bug 1086642) for Android and OS X 10.8 ONLY NOT SEEN ON 10.6 bustage
CLOSED TREE
2014-11-03 20:44:19 -08:00
Matt Woodrow
e7fbe9edd5 Bug 1086642 - Simplify invalid reigon by area. r=jrmuizel 2014-11-04 15:12:06 +13:00
Benoit Girard
ecaae00e52 Backout 60fe2b1ab1ba for split-opacity-layers-1.html reftest failure.
--HG--
extra : rebase_source : 83a753f924f85b90e2d5ad07877dc3ebdbc1b8df
2014-11-03 13:37:54 -05:00
Benoit Girard
ad9eff32dd Bug 1089380 - Remove ClipRectInLayersCoordinates. r=mattwoodrow
--HG--
extra : rebase_source : 6793ed284fa8190c0d4e43e189ca4eb2d020d4f0
2014-10-31 16:34:30 -04:00
Jonathan Watt
e2a6f100a2 Bug 1092222, part 2 - Add CCWCorner, CCWCorner and CWCorner methods to BaseRect. r=roc 2014-11-03 10:01:58 +00:00
Jonathan Watt
94f1c27476 Bug 1092222, part 1 - Get rid of gfxContext::GraphicsLineCap and gfxContext::GraphicsLineJoin. r=roc 2014-11-03 10:01:57 +00:00
Jacek Caban
8f5ffaf898 Bug 1092130 - Fixed build errors found by mingw after bug 1076698 landed (-Werror=missing-braces errors). r=cpearce 2014-11-03 10:28:52 +01:00
Jonathan Watt
bf157904e6 Bug 1091787, part 3 - Remove gfxContext::RoundedRectangle. r=mattwoodrow 2014-11-02 15:41:08 +00:00
Jeff Muizelaar
d8f2b6aa90 Bug 1092582. Add support to ANGLE for using IDXGIKeyedMutex. 2014-11-01 14:11:02 -04:00
Bas Schouten
98c98dd037 Bug 1064864. Ensure the copying bounds are sane. r=jrmuizel
This prevents things from going really bad on some drivers.

--HG--
extra : rebase_source : c237cf3e6a6174696ebe6d41562a30c8cc0e564d
2014-11-01 14:02:20 -04:00
stefanh@inbox.com
2bc420fb57 Bug 1085134 - Native theming for Mac OS X disclosure buttons, widget part. r=mstange, roc. 2014-11-01 17:13:27 +01:00
Jonathan Watt
40c32c8b77 Bug 1091794 - Replace gfxCornerSizes with Moz2D's RectCornerRadii. r=mattwoodrow 2014-11-01 10:45:10 +00:00
Jonathan Watt
8d978a8274 Bug 651021 - Make nsRenderingContext a stack class. r=jrmuizel 2014-10-31 20:08:49 +00:00
Kartikaya Gupta
6a8c4ea069 Bug 1091283 - Allow using the existing gtest input helpers on APZCTreeManager as well. r=botond
Thanks to the magic of templates we can reuse the code we have for dispatching
common gestures into the AsyncPanZoomController.
2014-10-31 15:31:35 -04:00
Kartikaya Gupta
bb29793fb8 Bug 1091283 - Ensure that pinch gesture events actually get processed. r=botond
Currently only pinch gesture events getting created in the GestureEventListener
code will make it to AsyncPanZoomController::HandleGestureEvent. Any pinch
gesture events that the widget code dispatches into the APZCTreeManager get
ignored, which shouldn't be happening. We don't have any production code that
exercises these code paths at the moment, but fixing it up also reduces the
APIs exposed into the testing code.
2014-10-31 15:29:36 -04:00
Botond Ballo
3dd807a0a7 Bug 1066888 - Documentation tweaks for overscroll physics improvements. r=kats. DONTBUILD for doc changes
--HG--
extra : rebase_source : 08df59b26c6ce334c96c5ec5b635c940c8548f08
extra : amend_source : 7c1c0799b0fcc747134cad8b56a202f830b50ae3
2014-10-31 14:10:36 -04:00
Botond Ballo
519cbdc4c1 Bug 1066888 - Update gtests for overscroll physics improvements. r=kats 2014-10-31 12:05:29 -04:00
Botond Ballo
6f42175366 Bug 1066888 - Overscroll physics improvements. r=kats
This patch unifies the physics governing the overscroll phase of a fling
with the snap-back animation. The unified physics are spring-based, like the
physics governing the snap-back animation before, except we allow for
oscillations.
2014-10-31 12:06:31 -04:00
Jeff Muizelaar
998117ee39 Bug 1066312. Use IDXGIKeyedMutex for synchronization with D3D11 angle. r=jgilbert
This currently does nothing because the ANGLE we're using doesn't have keyed mutex
support.

--HG--
extra : rebase_source : 9ab74710c22c5330809206f1bb16677af5944bad
2014-10-31 10:57:32 -04:00
Nicolas Silva
1d051c1f6c Bug 1074382 - Add some gfxCriticalError logging in the initialization of D3D9. r=milan 2014-10-30 18:20:23 +01:00
Jonathan Watt
5559a5b51f Bug 1090614 follow-up to add back the Clip() change. r=mattwoodrow 2014-10-31 11:26:28 +00:00
Jonathan Watt
6ec5c9c594 Bug 1076910 - Add some error checks to gfxUtils::EncodeSourceSurface. r=Bas 2014-10-31 11:16:45 +00:00
Robert O'Callahan
3cfafda3dc Bug 1073252. Fix bustage in part 4, in a CLOSED TREE 2014-10-31 22:40:15 +13:00
Robert O'Callahan
4fbed12e68 Bug 1073252. Part 4: Flip hasAlpha to isOpaque for consistency. r=mattwoodrow
--HG--
extra : rebase_source : a553b4c36feb555b23cbe140a05df09f0dc2656d
2014-10-30 15:32:41 +13:00
Robert O'Callahan
a0533f3910 Bug 1073252. Part 2: Store opaque flag in LayerRenderState. r=nical
--HG--
extra : rebase_source : a0fefe94dd52a6f365c34bffcd806e094c62d76e
2014-10-30 15:32:41 +13:00
Robert O'Callahan
9a3660fcb8 Bug 1073252. Part 1: Track opaqueness of gralloc TextureClient/Host. r=nical
--HG--
extra : rebase_source : de08e7a128bad27250cae94386e8ffea5fa26d6d
2014-10-30 15:32:40 +13:00
Robert O'Callahan
6f87fb940a Bug 1073252. Part 0: Add IsOpaque(SurfaceFormat). r=bas
--HG--
extra : rebase_source : 8aa2b0203db462573cd60046985d03a10a402fc9
2014-10-30 15:31:54 +13:00
Ryan VanderMeulen
aa31867de0 Merge inbound to m-c. a=merge 2014-10-30 16:03:53 -04:00
Mason Chang
ae8fbf549b bug 1087048. Dispatch touch events after vsync aligned composites. r=benwa 2014-10-30 08:48:42 -07:00
Kartikaya Gupta
8dd5f13491 Bug 1091049 - Follow-up to fix non-unified build error. r=me 2014-10-30 11:48:54 -04:00
Carsten "Tomcat" Book
333ae64da2 Merge mozilla-central to b2g-inbound 2014-10-30 15:51:48 +01:00
Kartikaya Gupta
7c61bb1c83 Bug 1091049 - Add fling curving to accelerate fast flicks. r=botond 2014-10-30 10:38:10 -04:00
Kartikaya Gupta
04f4bd9e01 Bug 1091049 - Rename gComputedTimingFunction to gZoomAnimationFunction. r=botond 2014-10-30 10:38:09 -04:00
Carsten "Tomcat" Book
9d59e3af81 merge mozilla-inbound to mozilla-central a=merge 2014-10-30 14:45:37 +01:00
Jonathan Watt
8abc039367 Bug 1090494, part 4 - Add AppendRectToPath() and MakePathForRect() helpers to Moz2D's PathHelpers.h. r=mattwoodrow 2014-10-30 09:34:10 +00:00
Jonathan Watt
0ba6bb3617 Bug 1090494, part 3 - Remove the old unused variants of AppendRoundedRectToPath and MakePathForRoundedRect. r=mattwoodrow 2014-10-30 09:34:10 +00:00
Jonathan Watt
a425c5fd02 Bug 1090494, part 2 - Convert the consumers of AppendRoundedRectToPath and MakePathForRoundedRect to use the new RectCornerRadii API. r=mattwoodrow 2014-10-30 09:34:10 +00:00
Jonathan Watt
666fd8696b Bug 1090494, part 1 - Add a RectCornerRadii struct to Moz2D's PathHelpers.h and add variants of AppendRoundedRectToPath and MakePathForRoundedRect that use it. r=mattwoodrow 2014-10-30 09:34:09 +00:00
Mike Hommey
21ec48314e Bug 1077148 part 4 - Add and use new moz.build templates for Gecko programs and libraries. r=gps
There are, sadly, many combinations of linkage in use throughout the tree.
The main differentiator, though, is between program/libraries related to
Gecko or not. Kind of. Some need mozglue, some don't. Some need dependent
linkage, some standalone.

Anyways, these new templates remove the need to manually define the
right dependencies against xpcomglue, nspr, mozalloc and mozglue
in most cases.

Places that build programs and were resetting MOZ_GLUE_PROGRAM_LDFLAGS
or that build libraries and were resetting MOZ_GLUE_LDFLAGS can now
just not use those Gecko-specific templates.
2014-10-30 13:06:12 +09:00
Ryan VanderMeulen
5c7fb7c44e Merge m-c to b2g-inbound. a=merge 2014-10-29 16:53:59 -04:00
Mason Chang
86707b4bd0 bug 1083530. Part 2 Refactor GeckoTouchDispacher to use mozilla::Timestamp instead of nsecs_t. r=mwu 2014-10-29 13:37:06 -07:00
Kartikaya Gupta
2932ae98a9 Bug 1091128 - Ensure that large negative velocities are also clamped to the velocity cap. r=botond 2014-10-29 15:40:02 -04:00
Jeff Gilbert
6fcb35d440 Bug 1088345 - Misc cleanup. - r=kamidphish 2014-10-27 18:58:03 -07:00
Jeff Gilbert
f22d51c4cc Bug 1088345 - (ANGLE) Don't treat STENCIL_INDEX8 as INT for MSAA reasons. - r=kamidphish 2014-10-27 13:06:14 -07:00
Jeff Gilbert
bf69677207 Bug 1088345 - Handle AA better. - r=kamidphish 2014-10-25 18:32:46 -07:00
Jeff Gilbert
a095bc6ede Bug 1088345 - Handle possibly-invalid enums for queries. - r=kamidphish 2014-10-23 18:55:49 -07:00
Jeff Gilbert
a25184ab43 Bug 1088345 - Improve glGetError handling. - r=kamidphish 2014-10-24 16:52:35 -07:00
Bas Schouten
fc6eaaa812 Bug 1085187: Properly deal with sampling restriction when using DataSourceSurfaces. r=jrmuizel 2014-10-29 23:40:38 +01:00
Nicholas Nethercote
8173a128c4 Bug 1089446 - Remove gfx/tests/process-textruns.pl, which is ancient and unused. r=roc.
--HG--
extra : rebase_source : 81a688c2404ae3849e4e4ebd1fe934928fe38b2b
2014-10-28 15:04:03 -07:00
Mason Chang
e91695b082 Bug 1088898. Correctly set mLastCompose in force composites. r=benwa 2014-10-28 19:32:36 -07:00
Nicolas Silva
e61028b3de Bug 1089364 - Add some missing D3D11 error checks. r=Bas 2014-10-27 13:52:17 +01:00
Nicolas Silva
b51bf9c156 Bug 1077301 - Simplify the gralloc texture code. r=sotaro 2014-10-16 19:08:32 +02:00
Jeff Muizelaar
eab2390ae2 Bug 1085046. Update ANGLE to get Intel D3D11 texture upload performance work around.
--HG--
extra : rebase_source : a02e0a31b22dc189d3d2d49f7066d723f2231460
2014-10-28 23:04:32 -04:00
Jonathan Watt
794c8c3581 Bug 1085529, part 1 - Add an AutoPopClips helper to Moz2D. r=mattwoodrow 2014-10-26 01:15:25 +01:00
Jonathan Watt
d60d47b89b Bug 1088753 - Remove gfxContext::NewSubPath(). r=Bas 2014-10-29 01:59:36 +00:00
Jonathan Watt
573c478337 Bug 949661 - Make PathBuilderCG::Arc use ArcToBezier instead of CGPathAddArc to work around a CG stroke dashing bug. r=jrmuizel 2014-10-29 01:59:36 +00:00
Jonathan Watt
e1aac1f2de Bug 1089397 - Port the code that uses gfxContextPathAutoSaveRestore to Moz2D. r=mattwoodrow 2014-10-28 14:40:51 +00:00
Jonathan Watt
87577ff1b9 Bug 1089177, part 2 - Port gfxFontMissingGlyphs to Moz2D. r=mattwoodrow 2014-10-28 14:40:42 +00:00
Jonathan Watt
eaccc7b58c Bug 1089177, part 1 - Expose PatternFromState to help with Moz2D porting. r=mattwoodrow 2014-10-28 14:40:39 +00:00
Jeff Muizelaar
b1829c324e Bug 1072847 - Initialize mSurface. r=BenWa
--HG--
extra : rebase_source : abd536b8cd2e91c28ea0cd09e21a12da1e8dcee1
2014-10-28 10:08:25 -04:00
Jeff Gilbert
159d08b25b Bug 912196 - (ANGLE) Fix CopyTexImage. - r=kamidphish 2014-10-08 16:35:05 -07:00
Jeff Gilbert
73063eea67 Bug 912196 - Fixes for D3D11 ANGLE. - r=kamidphish 2014-10-08 16:32:50 -07:00
Jeff Gilbert
6d71006fe1 Bug 912196 - Workaround no-alpha-with-ANGLE in WebGL, not GLContext. - r=kamidphish 2014-10-08 16:30:01 -07:00
Jeff Gilbert
d9cca5ff4a Bug 1088417 - Make asserts fuzzy where they're failing. - r=nical 2014-10-24 13:36:01 -07:00
Jeff Gilbert
2043e264c3 Bug 1088417 - Switch from REPEAT to CLAMP for D3D11. - r=nical 2014-10-23 17:10:58 -07:00
Jeff Gilbert
cdb795285e Bug 1088417 - DecomposeIntoNoRepeatRects for D3D11. - r=nical 2014-10-23 17:08:06 -07:00
Benoit Jacob
0ee47443f6 Bug 1089413 - Only test resource sharing on d3d feature level >= 10. r=jmuizelaar, a=sledru 2014-10-27 10:36:00 -04:00
Ryan VanderMeulen
b7bf3af5f5 Bug 922976 - Disable 394751.xhtml on B2G for frequent failures. 2014-10-27 14:53:10 -04:00
Ehsan Akhgari
5ca3c3f4aa Bug 1088838 - Don't export CompositorChild.h, CompositorParent.h and ShadowLayersManager.h twice; r=BenWa 2014-10-27 08:57:36 -04:00
Kartikaya Gupta
3198447f08 Bug 1088954 - Cleanup print 64-bit integers and remove a stray printf. r=botond 2014-10-24 14:45:00 +02:00
Benoit Jacob
7178daef7e Bug 1083071 - Avoid touching D3D11 at all, even to test if it works, if D3D11 layers are blacklisted. r=Bas, r=jmuizelaar 2014-10-26 18:46:09 -04:00
Ryan VanderMeulen
6ba3d37edf Backed out changeset 4d4abe4bee7f (bug 1083071) for bustage. 2014-10-26 18:44:40 -04:00
Benoit Jacob
c566c7fdc7 Bug 1083071 - Avoid touching D3D11 at all, even to test if it works, if D3D11 layers are blacklisted. r=Bas, r=jmuizelaar 2014-10-26 08:01:00 -04:00
Jonathan Watt
f605de8de4 Bug 1085321 - Remove gfxContext::Arc/NegativeArc. r=Bas 2014-10-26 17:57:49 +00:00
Phil Ringnalda
9a85d9269c Back out 2 changesets (bug 1085529) for win8 chrome reftest failures
Backed out changeset 758840ac2f47 (bug 1085529)
Backed out changeset 3fa71a8dc29c (bug 1085529)
2014-10-25 22:02:57 -07:00
Jonathan Watt
624f27b684 Bug 1085529, part 1 - Add an AutoPopClips helper to Moz2D. r=mattwoodrow 2014-10-26 01:15:25 +01:00
Jeff Muizelaar
9107b16c3b Bug 1089199. Fix ANGLE mingw build again
--HG--
extra : rebase_source : 0c87b90882eb5f25a8402deb4f14a2563f6db10e
2014-10-25 15:28:57 -04:00
Carsten "Tomcat" Book
2852dcfa01 Merge mozilla-central to mozilla-inbound 2014-10-30 15:13:45 +01:00
Jonathan Kew
bb57714366 Bug 1090869 - Don't collect output glyphs when checking for features involving <space>. r=jdaggett 2014-10-30 09:54:22 +00:00
Ryan VanderMeulen
90671fadf9 Backed out changeset 5ff4c7dded93 (bug 1077301) for making bug 1084118 return with a near perma-fail vengeance. 2014-10-24 14:25:25 -04:00
Kartikaya Gupta
d4806a4bec Bug 1083395 - Follow-up to fix non-unified bustage. r=me on a CLOSED TREE 2014-10-24 14:02:52 -04:00
Kartikaya Gupta
ca8ea48cfe Bug 1083395 - Move some APZC functions that are no longer needed in production down to the test subclass. r=botond 2014-10-24 13:29:35 -04:00
Kartikaya Gupta
37462f931d Bug 1083395 - Move to a single input queue owned by the APZCTM instead of many queues owned by APZC instances. r=botond 2014-10-24 13:29:34 -04:00
Kartikaya Gupta
57f4c2fbd1 Bug 1083395 - Replace the touch block balance with an input block identifier. r=botond 2014-10-24 13:29:30 -04:00
Kartikaya Gupta
5a0eedafd5 Bug 1083395 - Extract an InputQueue class from the APZC input code. r=botond 2014-10-24 13:29:03 -04:00
Kartikaya Gupta
94d77a737b Bug 1083395 - Extract helpers function from the input-handling codepath. r=botond 2014-10-24 13:29:03 -04:00
Markus Stange
e1612eaf91 Bug 1055634 - Propagate font smoothing background colors to layers. r=roc 2014-10-24 18:32:23 +02:00
Markus Stange
5c0a6d7612 Bug 1055622 - Add support for specifying the font smoothing background color to Moz2D. r=Bas, r=jrmuizel 2014-10-24 18:32:23 +02:00
Markus Stange
75adc33b54 Bug 1074842 - Let SourceSurfaceCGBitmapContext take ownership of the data when DrawTargetCG is destroyed. r=jrmuizel 2014-10-24 18:32:22 +02:00
Jonathan Watt
c8ab6c8c58 Bug 1088625, part 4 - Remove the includes from nsRenderingContext.h that are no longer necessary 2014-10-24 16:43:42 +01:00
Jonathan Watt
429f5cd892 Bug 1088625, part 3 - Remove nsRenderingContext's SetFont, FontMetrics and SetTextRunRTL methods now that no one uses them any more. r=mstange 2014-10-24 16:28:15 +01:00
Jonathan Watt
de96658fd4 Bug 1088599 - Move nsRenderingContext::GetBoundingMetrics to nsLayoutUtils. r=mstange 2014-10-24 16:28:14 +01:00
Jonathan Watt
d2f842ced0 Bug 1088550 - Move nsRenderingContext's remaining GetWidth methods to nsLayoutUtils. r=mstange 2014-10-24 16:28:13 +01:00
Jonathan Watt
7e863a5326 Bug 1088071, part 2 - Move the nsRenderingContext::DrawString code to nsLayoutUtils::DrawUniDirString. r=jfkthame 2014-10-24 11:00:23 +01:00
Jonathan Watt
7a555fcc3b Bug 1087982, part 3 - Get rid of the ASCII variants of nsRenderingContext::DrawString/GetWidth. r=jfkthame 2014-10-24 11:00:23 +01:00