Commit Graph

15175 Commits

Author SHA1 Message Date
Jeremy Chen
9f5bb0123c Bug 1195653 - Part1.5: Send isMask info to LayerScope viewer by TexturePacket. r=dglastonbury (v3) 2015-09-29 23:32:00 +02:00
Jeremy Chen
87d1978674 Bug 1195653 - Part1.4: Generated file diffs from patched LayerScopePacket.proto. r=dglastonbury (v1, carry r+) 2015-09-29 23:24:00 +02:00
Jeremy Chen
c1fd9341a3 Bug 1195653 - Part1.3: Add isMask attribute field to LayerScopePacket.proto. r=dglastonbury (v2, carry r+) 2015-09-29 23:23:00 +02:00
Jeremy Chen
c6d838a300 Bug 1195653 - Part1.2: Use sSentTextureIds instead of sTextureIdList and move HasTextureIdBeenSent into SendTextureSource. r=dglastonbury (v3, carry r+) 2015-09-29 23:21:00 +02:00
Jeremy Chen
ac3f5eaf25 Bug 1195653 - Part1.1: Dump SecondaryEffects (EffectTypes::MASK) on Layerscope viewer. r=dglastonbury (v2, carry r+) 2015-09-29 23:19:00 +02:00
John Daggett
f1a6d52792 Bug 1201318 - revise OSX system font handling. r=mstange
Rework system font lookup under OSX so that the style system passes around the same "meta" name used by Webkit, -apple-system. This makes it so that the hidden system fonts used aren't exposed to authors. It also allows us to handle the two optical sizes of font families used under OSX 10.11, which uses San Francisco as the new UI font, with one family for text sizes and another for larger, display sizes. The patch here:

  - moves system font lookup into gfxMacPlatformFontList
  - assigns the font family name to "-apple-system"
  - derives FindFamily to take a gfxFontStyle parameter to allow size-based lookups
  - maintains a list of hidden system font families (not exposed to authors)
  - maintains a mapping from -apple-system to the underlying hidden font families
2015-10-08 15:04:08 +09:00
Markus Stange
e487648280 Bug 1201318 - Factor out AddFamily. r=jdaggett 2015-09-03 13:44:43 -04:00
Markus Stange
e252d50cde Bug 1201318 - Use nsAutoReleasePool from nsCocoaUtils.h. r=jdaggett 2015-09-02 22:04:50 -04:00
Botond Ballo
ad6d7f2ade Bug 1212664 - Perform y-inversion correctly when dumping compositor surface. r=jrmuizel 2015-10-07 19:58:23 -04:00
David Anderson
60c1cbf0c5 Disable screen and multiply mix-blend-mode support in the D3D11 and OGL compositors. (bug 1135271, r=mattwoodrow) 2015-10-07 16:38:19 -07:00
David Anderson
4e6f0b3e1d Pass the correct moz2d backend in CanvasClients. (bug 1212499, r=mattwoodrow) 2015-10-07 16:34:41 -07:00
David Anderson
0011f60b88 Fix inactive scroll frames sometimes creating very large, incorrect hit regions. (bug 1190112, r=tn) 2015-10-07 12:08:53 -07:00
Benoit Girard
49f6bfe259 Bug 1199885 - Part 10: Add APZTeeManager API to start an async scroll. r=kats 2015-09-28 17:00:21 -04:00
Benoit Girard
24d0310d3f Bug 1199885 - Part 9: Let APZC handle the drag events. r=kats 2015-09-28 14:44:37 -04:00
Benoit Girard
2f4adb8867 Bug 1199885 - Part 8: Add FindScrollNode to locate the scrollbar thumb. r=kats 2015-09-28 14:44:37 -04:00
Benoit Girard
5343d8a7c2 Bug 1199885 - Part 5: Make mRootLayerTreeID const to prove that there's no data races. r=kats 2015-09-28 14:44:36 -04:00
Benoit Girard
5480e3ec92 Bug 1199885 - Part 4: Let the hit testing tree know about the scroll thumb. r=kats 2015-09-28 14:44:36 -04:00
Benoit Girard
4c168e7c49 Bug 1199885 - Part 3: Add 'apz.drag.enabled' preference for async scrollbars. r=kats 2015-09-28 14:44:36 -04:00
Benoit Girard
d525698d71 Bug 1199885 - Part 2: Add AsyncDragMetrics. r=kats 2015-09-28 14:43:50 -04:00
Nicholas Nethercote
0c9936d9d3 Bug 1211324 (part 5) - Remove GraphicsFilter and gfxGraphicsFilter. r=mattwoodrow. 2015-10-05 17:18:10 -07:00
Nicholas Nethercote
e6cc09cd51 Bug 1211324 (part 4) - Replace GraphicsFilter constants with gfx::Filter equivalents. r=mattwoodrow.
The conversion is as follows:

- GraphicsFilter::FILTER_NEAREST == gfx::Filter::POINT
- GraphicsFilter::FILTER_GOOD    == gfx::Filter::GOOD
- GraphicsFilter::FILTER_BEST    == gfx::Filter::LINEAR

Also typedef GraphicsFilter to gfx::Filter; this will be removed in the next
patch.

These changes mean ToFilter() and ThebesFilter() are no longer needed.
2015-10-05 17:12:46 -07:00
Nicholas Nethercote
4461b88439 Bug 1211324 (part 3) - Remove GraphicsFilter::FILTER_FAST and replace it with FILTER_BEST. r=mattwoodrow.
This may sound like an odd change but it's what the current code effectively
already does due to the way ToFilter() and ThebesFilter() are defined.
2015-10-05 16:59:32 -07:00
Nicholas Nethercote
147a5bb519 Bug 1211324 (part 2) - Make gfx::FILTER::GOOD convert to GraphicsFilter::FILTER_GOOD. r=mattwoodrow. 2015-10-04 22:37:47 -07:00
Nicholas Nethercote
453c05c3e7 Bug 1211324 (part 1) - Remove BILINEAR and GAUSSIAN filter constants.
These aren't used meaningfully.
2015-10-04 20:05:28 -07:00
Nicholas Nethercote
dc47baadd4 Bug 1208945 - Rename Color::{To,From}ARGB() so they aren't easily confused with {To,From}ABGR(). r=Bas. 2015-09-24 18:16:50 -07:00
Carsten "Tomcat" Book
012753246e Backed out changeset 79746e93020a (bug 1011020) for causing bug 1212267 2015-10-07 12:17:02 +02:00
James Kitchener
2d242c0078 Bug 1011020 - Add the ability to fall back to not snapping, if snapping results in a zero area rect r=roc - relanding with correct bug number on a CLOSED TREE 2015-10-05 05:00:00 +02:00
Carsten "Tomcat" Book
2ad41b895f Backed out 1 changesets (bug 1101020) for landing with wrong bugnumber on a CLOSED TREE
Backed out changeset 18d4a0ca8cc1 (bug 1101020)
2015-10-07 09:24:27 +02:00
James Kitchener
329cc53de4 Bug 1101020 - Add the ability to fall back to not snapping, if snapping results in a zero area rect r=roc 2015-10-07 11:18:08 +05:30
Robert O'Callahan
4d19fecd08 Bug 1195152. Pass correct YUV type when converting shared YUV image to RGB. r=nical 2015-10-06 16:36:10 +13:00
Kevin Wern
afb6de1fdd Bug 1202050 - Use UntransformTo in a few more places in APZ code. r=botond
We previously believed these matrices could only be 2D, but it turns out
they can potentially be 3D projective transforms, so we need to use
UntransformTo() when applying them.

The patch also removes the unused function APZCTreeManager::TransformCoordinateToGecko().
2015-10-05 11:47:01 -04:00
Jim Mathies
1137203dba Bug 1137944 - Add a pref to control plugin window hiding. r=roc 2015-10-06 14:23:24 -05:00
Jim Mathies
35c072f6bd Bug 1137944 - On Windows defer composition until we receive confirmation plugin window metrics have been updated. r=roc 2015-10-06 14:23:24 -05:00
Jim Mathies
1052af354d Bug 1137944 - Move plugin window metrics updates to a point during comososition where we know the remote layer tree is hooked up to the chrome layer tree. r=matt.woodrow 2015-10-06 14:23:24 -05:00
Jim Mathies
38a7f7db28 Bug 1137944 - Cache compositor plugin update data to avoid sending updates to the main thread when the data doesn't change. r=roc 2015-10-06 14:23:24 -05:00
Jim Mathies
4e5c5a80b6 Bug 1196539 - Apply plugin config using AutoResolveRefLayers during composition. r=matt.woodrow 2015-10-06 14:23:24 -05:00
Nicholas Nethercote
44a64010c3 Bug 1208365 (part 4) - Remove gfxPattern::GraphicsExtend. r=bas. 2015-09-25 00:59:13 -07:00
Nicholas Nethercote
7393d982fb Bug 1208365 (part 3) - Change gfxPattern::mExtend from a GraphicsExtend to a gfx::ExtendMode. r=bas.
At this point, the relationship between GraphicsExtend and gfx::ExtendMode is
as follows.

- EXTEND_REPEAT matches up with REPEAT.
- EXTEND_REFLECT matches up with REFLECT.
- EXTEND_PAD matches up with CLAMP.
- EXTEND_NONE has no matching value in gfx::ExtendMode.

The only use of EXTEND_NONE is with nsSVGGradientFrame::mExtend. That field
gets assigned EXTEND_NONE in the various constructors, and other values via
SetExtend(). And all uses of that field go immediately into ToExtend() calls,
which convert EXTEND_NONE to CLAMP. So it's safe to change this field to
gfx::ExtendMode and initialize it to CLAMP.
2015-09-25 00:58:23 -07:00
Nicholas Nethercote
eef391537b Bug 1208365 (part 2) - Remove gfxPattern::Extend(). r=bas.
It's unused.
2015-09-25 00:55:31 -07:00
Nicholas Nethercote
9daed6af96 Bug 1208365 (part 1) - Remove unused EXTEND_PAD_EDGE. r=Bas. 2015-09-25 00:53:20 -07:00
Milan Sreckovic
faa5c52d49 Bug 1207258 - Give back the ability to run direct write without D2D, but only with a *force* preference. r=dvander 2015-10-05 11:40:00 +02:00
David Anderson
049a46caef Remove ISurfaceAllocator::GetCompositorBackend. (bug 1211109 part 4, r=mattwoodrow) 2015-10-05 23:40:13 -07:00
David Anderson
e1d5f8bc99 Allow top-level window changes to the remembered compositor type. (bug 1211109 part 3, r=mattwoodrow) 2015-10-05 23:39:28 -07:00
David Anderson
07ff755338 Remove the static compositor backend variable. (bug 1211109 part 2, r=mattwoodrow) 2015-10-05 23:39:00 -07:00
David Anderson
da7ac92eb9 Log initialization failures in CompositorD3D11.cpp. (bug 1211109 part 1, r=mattwoodrow) 2015-10-05 23:38:40 -07:00
Jeff Muizelaar
3cfebaf6a8 Bug 1211774. Update to ANGLE 2522. 2015-10-05 13:48:44 -04:00
Kartikaya Gupta
392927aa59 Bug 1208973 - Ensure all code in TaskThrottler is threadsafe since it gets called from various threads. r=botond
Hat tip to :froydnj for describing the proof-of-lock technique used in this patch
in his blog at https://blog.mozilla.org/nfroyd/2015/09/17/compiler-enforced-locked-accesses/
2015-10-05 16:18:56 -04:00
Kartikaya Gupta
e52e99aa64 Bug 1208973 - Move function bodies into .cpp file, and remove an unused one. r=botond 2015-10-05 16:18:56 -04:00
Kartikaya Gupta
ff318fb9db Bug 1208973 - Refactor and add logging to TaskThrottler. r=botond 2015-10-05 16:18:56 -04:00
Kartikaya Gupta
3627a3da39 Bug 1203901 - Increase the long-tap threshold time for test_basic_pan.html. r=botond 2015-10-05 16:18:24 -04:00