Commit Graph

15775 Commits

Author SHA1 Message Date
Nicholas Nethercote
aa1114c018 Bug 1229237 (part 1) - Make nsIWidget::{Create,CreateChildren}() take a LayoutDeviceIntRect. r=botond. 2015-11-16 00:35:18 -08:00
David Anderson
952f898e0a Add page scroll support for APZ wheel events. (bug 1228028, r=kats) 2015-12-02 17:05:11 -08:00
Nicholas Nethercote
8b37b54cb9 Bug 1229202 (part 7) - Pass a DrawTarget to gfxXlibNativeRenderer::DrawDirect(). r=mattwoodrow. 2015-12-02 15:32:17 -08:00
Nicholas Nethercote
c3e366a61d Bug 1229202 (part 6) - Remove two nasty matrix reinterpret_casts. r=mattwoodrow. 2015-12-02 15:32:17 -08:00
Nicholas Nethercote
df58dbdde9 Bug 1229202 (part 5) - Remove an unneeded gfxContextAutoSaveRestore. r=mattwoodrow. 2015-12-02 15:32:16 -08:00
Nicholas Nethercote
5169a5a9d8 Bug 1229202 (part 3) - Make gfxContextAutoDisableSubpixelAntialiasing take a DrawTarget instead of a gfxContext. r=mattwoodrow. 2015-12-02 15:32:16 -08:00
Nicholas Nethercote
386f2f87f8 Bug 1229202 (part 2) - Remove gfxQuartzSurface::GetCGContextWithClip, which is unused. r=mattwoodrow. 2015-12-02 15:32:16 -08:00
Markus Stange
1d6f787817 Bug 1021845 - Don't skip checkerboarding layers during compositing, even if the layer's visible region is empty. r=botond 2015-11-24 14:27:10 +01:00
Markus Stange
1337a55b67 Bug 1021845 - Before compositing, clip the visible region of a layer to the layer's clip rect. r=mattwoodrow 2015-12-02 22:54:03 +01:00
Nathan Froyd
999dd36c0c Bug 1218454 - part 2 - don't #include nsContentUtils.h from CallbackObject.h; r=bz
We used to need nsContentUtils.h here for nsCxPusher, but since that got
moved to ScriptSettings.h, we no longer need nsContentUtils.h for
anything.
2015-10-26 12:14:47 -04:00
Wes Kocher
28ff98bc37 Backed out changeset a52fb149b9ee (bug 1072501) for talos e10s failures resulting in crashes with UpdateFromSurface in the signature CLOSED TREE 2015-12-02 11:59:07 -08:00
David Anderson
c04f14d8d0 Create a D3D11 content device even if D2D is blocked. (bug 1217665 part 11, r=jrmuizel) 2015-12-02 11:31:18 -08:00
David Anderson
13786e0039 Add an NPN_GetValue query to find the browser's DXGI adapter. (bug 1217665 part 10, r=aklotz,mattwoodrow) 2015-12-02 11:31:17 -08:00
David Anderson
beab29bfb1 Implement the DidComposite NPAPI callback. (bug 1217665 part 8, r=mattwoodrow) 2015-12-02 11:31:17 -08:00
David Anderson
abcad45b30 Implement the direct DXGI drawing model for plugins. (bug 1217665 part 7, r=mattwoodrow) 2015-12-02 11:31:17 -08:00
David Anderson
cd154b137b Implement the direct bitmap drawing model for plugins. (bug 1217665 part 6, r=mattwoodrow) 2015-12-02 11:31:17 -08:00
David Anderson
69d7cd8b55 Allow asynchronous D3D11 TextureClients on the main thread. (bug 1217665 part 5, r=nical) 2015-12-02 11:31:17 -08:00
David Anderson
eb1c23137f Add a new Image class that wraps drawable TextureClients. (bug 1217665 part 4, r=nical) 2015-12-02 11:31:17 -08:00
David Anderson
ef32b589ef Revive NPAPI async drawing: stub code. (bug 1217665 part 1, r=aklotz) 2015-12-02 11:31:16 -08:00
Jeff Muizelaar
a1e681b721 Revert "Bug 1207288. Ask ANGLE for the correct output version. r=jgilbert"
This reverts commit cb6196bdba35
CLOSED TREE
2015-12-02 12:43:00 -05:00
Mason Chang
0a8cbe971b Bug 990017. Prevent skia accelerated canvas backends from rendering content. r=jmuizelaar 2015-12-02 09:11:52 -08:00
Bas Schouten
18b7acb05b Bug 1072501: Unmap file mapping on source surface destruction. r=milan 2015-12-01 16:41:08 +01:00
Jeff Muizelaar
85d1772383 Bug 1219890. Use ES3 when appropriate. r=jgilbert
This enables the use of WebGL2 on top of ANGLE.
2015-12-02 10:21:08 -05:00
Jeff Muizelaar
e74625404f Bug 1219890. Make assignment operator and copy constructor default. r=jgilbert 2015-12-02 10:21:03 -05:00
Jeff Muizelaar
fff731cc5f Bug 1219890. Construct context arguments on the stack. r=jgilbert
We do this so that we can change some of the for es3
2015-12-02 10:20:56 -05:00
Jeff Muizelaar
b30c9f6295 Bug 1207288. Ask ANGLE for the correct output version. r=jgilbert 2015-12-02 10:14:43 -05:00
Bogdan Postelnicu
53c7b0d16b Bug 1228510 - initialize 2 more variables. r=bas 2015-11-27 00:32:00 +01:00
Robert O'Callahan
1ed2fac306 Bug 1224976. Recover from singular-matrix cairo errors. r=mattwoodrow 2015-11-16 17:35:23 +13:00
Mike Hommey
7c7870bb0b Bug 1225682 - Don't use nsAuto{,C}String as class member variables in gfx/. r=jrmuizel 2015-12-02 11:04:37 +09:00
David Anderson
522d634f56 Remove "bad APZ pref" warnings in about:support. (bug 1214170 part 3, r=kats) 2015-12-01 13:49:01 -08:00
David Anderson
b05b8ccf46 Add APZ support for mousewheel delta multiplier prefs. (bug 1214170 part 2, r=kats) 2015-12-01 13:46:07 -08:00
David Anderson
5a4ffc917f Add APZ support for mousewheel.acceleration prefs. (bug 1214170 part 1, r=kats) 2015-12-01 13:45:49 -08:00
Wes Kocher
a791549970 Backed out changeset b336ed16226d (bug 1072501) for windows t-e10s failures 2015-12-01 12:45:17 -08:00
Jeff Muizelaar
5fb197d22d Bug 1225280. Update ANGLE to chromium/2572. 2015-12-01 14:49:06 -05:00
Kartikaya Gupta
be6581e034 Back out bug 1222524 for causing problems like bug 1227770 and bug 1227789. r=backout 2015-12-01 14:21:57 -05:00
Bas Schouten
1d461874ab Bug 1072501: Unmap file mapping on source surface destruction. r=milan 2015-12-01 16:41:08 +01:00
Markus Stange
76279855d1 Bug 1198021 - When the ContentClient of a ClientTiledPaintedLayer changes, don't destroy the old content client until after the layer transaction has been sent. r=nical 2015-11-27 16:09:18 +01:00
Milan Sreckovic
97390b374c Bug 1228287 - Make sure we can't do SkiaGL without the pref set. r=benwa 2015-11-26 11:00:00 +01:00
Lee Salzman
5d13d0b031 Bug 1225977 - fix DrawTargetSkia::MaskSurface with non-zero offset. r=jmuizelaar 2015-11-19 10:25:15 -05:00
Lee Salzman
2733e0ce4c Bug 1215774 - use abort() to abort on error in Cairo. r=jmuizelaar 2015-11-20 15:24:31 -05:00
Nicholas Nethercote
fef09fc527 Bug 1228125 (part 3) - Remove nsIWidget::GetClientBoundsUntyped(). r=botond. 2015-11-25 20:55:36 -08:00
Nicholas Nethercote
bae167ebf7 Bug 1228125 (part 1) - Remove nsIWidget::GetBoundsUntyped(). r=botond.
This requires adding a new overloading of LayoutDevicePixel::ToAppUnits and a
new PixelCastJustification: LayoutDeviceIsParentLayerForRCDRSF.
2015-11-25 20:32:47 -08:00
L. David Baron
d9abd9a142 Bug 1228934 - Remove style, weight, and stretch parameters from nsFont constructor. r=jdaggett 2015-11-30 16:23:09 -08:00
L. David Baron
948c4c9858 Bug 1228501 patch 5 - Remove NS_FONT_DECORATION_* constants. r=jdaggett
Decorations in Gecko are associated with the CSS 'text-decoration'
property, so the constants should live in nsStyleConsts.h, as they
largely already do (since the names defined there are the vast majority
of the uses).
2015-11-30 14:02:26 -08:00
L. David Baron
607e0cb978 Bug 1228501 patch 4 - Remove nsStyleFont::CalcFontDifference, which now duplicates the list of tests in nsFont::Equals. r=jdaggett 2015-11-30 14:02:25 -08:00
L. David Baron
6ef55cfb63 Bug 1228501 patch 3 - Remove nsFont::BaseEquals. r=jdaggett
BaseEquals and Equals were made the same by patch 2, so BaseEquals can
be removed.

(operator== is also defined as an inlined call to Equals.)
2015-11-30 14:02:25 -08:00
L. David Baron
f7211c91ad Bug 1228501 patch 2 - Remove nsFont::decorations member variable. r=jdaggett
The member variable was always set to 0 or to NS_FONT_DECORATION_NONE,
which is 0.

Although this does leave a gap in the structure, I don't see any
opportunities for reordering members to actually shrink nsFont.
2015-11-30 14:02:25 -08:00
L. David Baron
e4cafbd2d6 Bug 1228501 patch 1 - Remove decorations parameter to nsFont constructors. r=jdaggett
The removed parameter is always 0.
2015-11-30 14:02:25 -08:00
Nathan Froyd
fc966276f4 Bug 1225486 - don't include mozilla/ToString.h in {BasePoint,nsRegion}.h; r=jrmuizel 2015-10-26 11:04:14 -04:00
David Anderson
37116588aa Include vendor and device ids in content process DXGI adapter matching. (bug 1228905, r=jrmuizel) 2015-11-30 12:46:22 -08:00
Mats Palmgren
9679b91a37 Backout bug 1226627 part 2 (rev 673461c0b772) for Talos regressions on Android. r=me 2015-11-30 13:06:39 +01:00
Carsten "Tomcat" Book
af6c337f83 Backed out changeset e1fd92eeb5ba (bug 1228501) 2015-11-30 12:10:40 +01:00
Carsten "Tomcat" Book
90424f1df5 Backed out changeset 3a3cd254f508 (bug 1228501) 2015-11-30 12:10:38 +01:00
Carsten "Tomcat" Book
6667066ec5 Backed out changeset 6c478d7a9467 (bug 1228501) 2015-11-30 12:10:37 +01:00
Carsten "Tomcat" Book
5722e54038 Backed out changeset ec79945130ff (bug 1228501) 2015-11-30 12:10:35 +01:00
Carsten "Tomcat" Book
260b08a968 Backed out changeset cce90c9b7d1d (bug 1228501) 2015-11-30 12:10:34 +01:00
Nicolas Silva
7fb80e2067 Bug 1200595 - Another build fix on a CLOSED TREE. 2015-11-30 10:44:08 +01:00
Nicolas Silva
06ebb27869 Bug 1200595 - Build fix on a CLOSED TREE. 2015-11-30 10:40:45 +01:00
Nicolas Silva
66a679bc41 Bug 1200595 - Consolidate the TextureClient's destruction logic. r=mattwoodrow 2015-11-20 14:25:03 +01:00
Nicolas Silva
8828befa44 Bug 1200595 - Merge TextureClient and ClientTexture back into TextureClient. r=mattwoodrow 2015-11-20 14:25:00 +01:00
Nicolas Silva
f2205e6424 Bug 1200595 - DIB TextureData implementation. r=Bas 2015-11-20 14:24:58 +01:00
Nicolas Silva
9bcc2b4503 Bug 1200595 - SharedSurface TextureData implementation. r=jgilbert 2015-11-20 14:24:55 +01:00
Nicolas Silva
63682dfd1d Bug 1200595 - AndroidSurface TextureData implementation. r=mattwoodrow 2015-11-20 14:24:52 +01:00
Nicolas Silva
0bb3cc2e42 Bug 1200595 - EGLImage TextureData implementation. r=mattwoodrow 2015-11-20 14:24:49 +01:00
Nicolas Silva
28748f8e2d Bug 1200595 - MacIOSurface TextureData implementation. r=mattwoodrow 2015-11-20 14:24:46 +01:00
Nicolas Silva
2c4afc645f Bug 1200595 - D3D9 TextureData implementation. r=Bas 2015-10-19 14:46:17 +02:00
Nicolas Silva
0070dde8c7 Bug 1200595 - D3D11 TextureData implementation. r=Bas 2015-10-15 17:53:37 +02:00
Nicolas Silva
40a0e6b07c Bug 1200595 - Gralloc TextureData implementation. r=sotaro 2015-10-15 17:53:37 +02:00
Nicolas Silva
1b2356caf5 Bug 1200595 - Buffer TextureData implementation. r=mattwoodrow 2015-10-15 17:53:33 +02:00
Nicolas Silva
edbc24e486 Bug 1200595 - Introduce TextureData and implement it for X11. r=mattwoodrow, Bas, sotaro 2015-10-13 18:48:48 +02:00
L. David Baron
c3b8687f98 Bug 1228501 patch 5 - Remove NS_FONT_DECORATION_* constants. r=jdaggett
Decorations in Gecko are associated with the CSS 'text-decoration'
property, so the constants should live in nsStyleConsts.h, as they
largely already do (since the names defined there are the vast majority
of the uses).
2015-11-29 23:15:37 -08:00
L. David Baron
9f6dab38dc Bug 1228501 patch 4 - Remove nsStyleFont::CalcFontDifference, which now duplicates the list of tests in nsFont::Equals. r=jdaggett 2015-11-29 23:15:26 -08:00
L. David Baron
1fdf2bf7dd Bug 1228501 patch 3 - Remove nsFont::BaseEquals. r=jdaggett
BaseEquals and Equals were made the same by patch 2, so BaseEquals can
be removed.

(operator== is also defined as an inlined call to Equals.)
2015-11-29 23:15:02 -08:00
L. David Baron
664613f191 Bug 1228501 patch 2 - Remove nsFont::decorations member variable. r=jdaggett
The member variable was always set to 0 or to NS_FONT_DECORATION_NONE,
which is 0.

Although this does leave a gap in the structure, I don't see any
opportunities for reordering members to actually shrink nsFont.
2015-11-29 23:15:01 -08:00
L. David Baron
a4a35386a0 Bug 1228501 patch 1 - Remove decorations parameter to nsFont constructors. r=jdaggett
The removed parameter is always 0.
2015-11-29 23:15:01 -08:00
Sunny Sidhu
ae5c61f89f Bug 1220873 - Make Layer::mVisibleRegion a LayerIntRegion. r=botond 2015-11-29 02:07:55 -05:00
Mats Palmgren
3eed137d9a Bug 1226627 - Use fmin[f]/fmax[f] when clamping floating point values (perf). r=roc 2015-11-29 17:58:36 +01:00
Phil Ringnalda
79fa52c474 Bug 1218762 followup, annotate the assertion on Android since there's certainly no way to fix "an assertion failed, I'm not going to tell you which one" 2015-11-28 17:11:16 -08:00
Phil Ringnalda
23c5cb3817 Back out 1b0760c35953 (bug 1227210) for frequent Android R15 shutdown crashes 2015-11-27 22:58:13 -08:00
Xidorn Quan
c477ee820a Bug 1040668 part 10 - Implement emphasis mark rendering. r=jfkthame 2015-11-28 11:56:33 +11:00
Xidorn Quan
c073a335aa Bug 1040668 part 7 - Add NO_EMPHASIS_MARK flag in CompressedGlyph. r=jfkthame 2015-11-28 11:56:33 +11:00
Xidorn Quan
db8da6ef2c Bug 1040668 part 6 - Add some specifier on gfxTextRun and gfxShapedWord so that compilers are able to reason out certain optimizations. r=jfkthame 2015-11-28 11:56:33 +11:00
Xidorn Quan
dd323bcbe4 Bug 1040668 part 5 - Avoid unnecessary allocation inside EnsureComplexGlyph helper function. r=jfkthame
SetGlyphs does the allocation and copy it into the storage anyway.
2015-11-28 11:56:33 +11:00
Xidorn Quan
a571f9ad95 Bug 1040668 part 4 - Add helper function for ensuring a glyph is a complex glyph. r=jfkthame 2015-11-28 11:56:33 +11:00
Xidorn Quan
3c63bcf313 Bug 1040668 part 3 - Add helper function gfxTextRun::GetAdvanceForGlyph. r=jfkthame 2015-11-28 11:56:33 +11:00
Botond Ballo
39ada90f9b Bug 1208829 - Use the effective visible region to calculate the intermediate surface size. r=mstange 2015-11-19 15:43:44 -05:00
Botond Ballo
8fda4b88ac Bug 1208829 - Recompute visible regions during composition. r=mstange 2015-11-23 14:45:53 -05:00
Botond Ballo
f59482b8cb Bug 1208829 - Rename LayerManagerComposite::ApplyOcclusionCulling to PostProcessLayers, and clean it up a bit. r=mstange 2015-11-09 20:43:54 -05:00
Botond Ballo
6a9369d6f5 Bug 1208829 - Add utilities for converting between typed and untyped regions. r=mstange 2015-11-09 20:43:18 -05:00
Botond Ballo
cd91e2eec4 Bug 1208829 - static_assert that IntRegionTyped is instantiated with a proper unit type. r=mstange 2015-11-09 20:34:33 -05:00
Benoit Girard
cacbcc4ed6 Bug 1225178 - Don't start APZ drag if we don't have a displayport to handle it. r=kats 2015-11-23 13:59:14 -05:00
Randall Barker
cda88e8c60 Bug 1224015 - Part 3: ifdef changes to C++APZ so that they only apply to single process APZ. r=tnikkel
Added MOZ_SINGLE_PROCESS_APZ flag.
2015-11-26 20:51:13 -06:00
Randall Barker
d69cf0c491 Bug 1224015 - Part 2: Have nsDisplayResolution items adjust event coordinates for hit testing and dispatching to content r=tnikkel 2015-11-26 20:51:13 -06:00
Randall Barker
a3d7ead0d0 Bug 1224015 - Part 1: nsLayoutUtils functions do not account for nsPresShell resolution r=tnikkel 2015-11-26 20:51:13 -06:00
Kartikaya Gupta
79b65e66c0 Bug 1228133 - Guard against a race condition that could result in an illegal pointer access. r=BenWa
In this case the LayerTreeState pointer was being accessed outside the lock, and
was being deleted by another thread at the same time. This resulted in an illegal
pointer access which was causing crashes. Including the body of the
GetAPZCTreeManager function in the scope of the lock fixes the problem.
2015-11-26 19:20:04 -05:00
Carsten "Tomcat" Book
221ed2732b Merge mozilla-central to mozilla-inbound 2015-11-26 16:56:09 +01:00
Carsten "Tomcat" Book
d229b39c6e merge mozilla-inbound to mozilla-central a=merge 2015-11-26 16:54:27 +01:00
Bas Schouten
4d846c32cd Bug 1227210: Ensure the mask and the surface are in the right space when being blended. r=mattwoodrow 2015-11-26 15:51:49 +01:00
Lee Salzman
7a571c7f65 Bug 1228188 - ifdef around Skia GetMaxSurfaceSize usage. r=eihrul 2015-11-25 22:21:40 -05:00
John Daggett
6fefdb4029 Bug 1224975 - add telemetry for font loading. r=m_kato 2015-11-25 14:48:16 +09:00