Commit Graph

178 Commits

Author SHA1 Message Date
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
Sunny Sidhu
ae5c61f89f Bug 1220873 - Make Layer::mVisibleRegion a LayerIntRegion. r=botond 2015-11-29 02:07:55 -05:00
David Anderson
36deedccc3 Add IPC helpers to marshal DXGI_ADAPTER_DESC. (bug 1225283 part 1, r=mattwoodrow) 2015-11-18 12:11:52 -08:00
Wes Kocher
f39e9198ef Backed out 2 changesets (bug 1225283) for Windows build bustage CLOSED TREE
Backed out changeset a2dc8e863533 (bug 1225283)
Backed out changeset 5f456b78cccc (bug 1225283)
2015-11-17 14:41:42 -08:00
David Anderson
b7c3f43287 Add IPC helpers to marshal DXGI_ADAPTER_DESC. (bug 1225283 part 1, r=mattwoodrow) 2015-11-17 13:38:12 -08:00
Chris Peterson
2eaf342ffb Bug 1215900 - Fix clang's -Wimplicit-fallthrough warnings in gfx/ipc/GfxMessageUtils.h. r=mstange
GfxMessageUtils.h:968:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:969:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:970:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:971:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:972:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:973:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:974:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:975:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:976:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:977:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
GfxMessageUtils.h:981:9 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-10-17 22:53:03 -07: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
Sotaro Ikeda
c32fc36944 Bug 1186793 - Replace nsBaseHashtable::EnumerateRead() calls in gfx/ with iterators r=njn 2015-09-29 07:49:41 -07:00
Nicholas Nethercote
7700404de3 Bug 1208300 (part 4) - Remove gfxRGBA and some related things. r=jwatt.
Hooray!
2015-09-24 19:24:16 -07:00
Chris Peterson
dd2fcb9b7d Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
"Kearwood \"Kip\" Gilbert"
6bae174df6 Bug 1157984 - Part 1: Extend gfx::2d classes to support both float and double precision,r=jrmuizel
- Implemented templates for Coord, Point, Point3D, Point4D, Size, Margin
  and Rect to create double precision versions.
2015-06-11 13:43:40 -07:00
Nicholas Nethercote
69d088e45f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Chris Peterson
eeff0eb6dd Bug 1194948 - Build gfx/ipc in unified mode and mark as FAIL_ON_WARNINGS. r=BenWa 2015-08-13 20:46:47 -07:00
David Anderson
c8c028f108 Don't mix GPU adapters across processes. (bug 1183910 part 10, r=jmuizelaar) 2015-08-10 20:27:06 -07:00
Carsten "Tomcat" Book
5e2ac88ac9 Backed out 2 changesets (bug 1183910) for bustage on a CLOSED TREE
Backed out changeset 9617a34de78f (bug 1183910)
Backed out changeset d8f79432c768 (bug 1183910)
2015-08-06 12:09:52 +02:00
David Anderson
c3db0be862 Don't mix GPU adapters across processes. (bug 1183910 part 10, r=jmuizelaar) 2015-08-06 02:42:04 -07:00
David Anderson
fa120e53db Use the same graphics device parameters across processes. (bug 1183910 part 7, r=mattwoodrow) 2015-08-02 13:59:33 -07:00
Birunthan Mohanathas
47ed3a3675 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
David Anderson
fbc36ddf40 Bug 1148582 - Add mask layers to FrameMetrics for ancestor scroll frame clips. r=mattwoodrow 2015-06-21 12:27:31 -04:00
Markus Stange
375ab11d1c Back out bug 1148582 for static analysis bustage. 2015-07-01 01:20:59 -04:00
David Anderson
5c1379c69a Bug 1148582 - Add mask layers to FrameMetrics for ancestor scroll frame clips. r=mattwoodrow 2015-06-21 12:27:31 -04:00
Botond Ballo
9f74606e9e Bug 1158424 - Rename FrameMetrics::mIsRoot to mIsRootContent. r=kats 2015-06-08 16:01:26 -04:00
David Anderson
4e48dd98d0 Fix asynchronously scrolling containerful subframes. (bug 1148582 part 6.1, r=tn) 2015-06-02 16:34:46 -07:00
Amanda Sambath
bd1658f736 Bug 1158120 - Replace nsIntSize by mozilla::gfx::IntSize in gfx/ipc directory part 2. r=nical 2015-05-29 14:39:19 +02:00
Amanda Sambath
75b34b9b82 Bug 1158120 - Replace gfxIntSize by mozilla::gfx::IntSize in gfx/ipc. r=nical 2015-05-28 13:58:41 +02:00
Timothy Nikkel
46196aa3a9 Bug 1168630. Part 3. Add IsLayersIdRoot to frame metrics. r=botond
This field tells us if this frame metrics should be considered the root APZC for its layers id. Without this there doesn't seem to be a way to compute this from just the layers tree.
2015-05-31 14:44:41 -05:00
David Anderson
1266e0674b Move the APZ scroll frame clip onto FrameMetrics. (bug 1148582 part 3, r=mstange,tn) 2015-05-26 12:40:24 -07:00
Thibaud Backenstrass
64c0507ea8 Bug 1158122 - Remove all occurences of nsIntRect in gfx/ipc/. r=nical 2015-05-07 11:07:23 +02:00
Nicolas Silva
d93b5d5970 Bug 1155621 - Make nsIntRect and nsIntPoint typedefs of mozilla::gfx::IntRect and mozilla::gfx::IntPoint. r=Bas 2015-04-21 17:04:57 +02:00
Bob Owen
734bb8f7d2 Bug 1119878 Part 2: Change IPC code to hold ProcessID instead of ProcessHandle. r=billm, r=dvander, r=aklotz, r=cpearce 2015-04-01 09:40:35 +01:00
David Anderson
6ce41e0151 Clamp APZ wheel event deltas to the size of a page scroll. (bug 1146676, r=kats) 2015-03-24 14:59:41 -07:00
Kushan Joshi
dec35f3d87 Bug 1101627 - Add touch action regions. r=kats 2015-03-24 09:13:24 -04:00
Botond Ballo
f1eb3ec205 Bug 1036967 - Introduce ScaleFactors2D. r=kats,Bas 2015-03-06 13:53:47 -05:00
Kartikaya Gupta
e475723c6e Bug 1137267 - Remove unneeded flags to track touch listeners and touch caret. r=smaug,dvander,botond 2015-03-10 09:29:25 -04:00
dvander@alliedmods.net
82c3273e96 Don't async scroll overflowed single-line text boxes in APZ. (bug 1126090 part 6, r=botond) 2015-03-06 14:26:59 -08:00
Benoit Girard
82b32b06ae Bug 1135857 - Remove ContentClientIncremental. r=mattwoodrow 2015-02-23 18:22:06 -05:00
Kartikaya Gupta
d750a7cdbd Bug 1131840 - Replace the shouldForceDispatchToContent flag with a bitset enum. r=roc,botond 2015-02-16 21:30:02 -05:00
Masatoshi Kimura
f1b5ace064 Bug 1111290 - Part 3: Remove TypedEnum.h and fold TypedEnumInternal.h into TypedEnumBits.h. r=waldo 2015-01-26 07:22:11 +09:00
Masatoshi Kimura
e4e75cdb99 Bug 1111290 - Part 2: Non-mechanical changes. r=waldo 2015-01-26 07:22:08 +09:00
Bas Schouten
3f38d493f1 Bug 1088414: Use a single synchronization texture for D3D11. r=jrmuizel
This patch adds a cross platform 'sync object' that is used to synchronize the drawing of individual textures. For the D3D11 implementation all textures that are written to will have one pixel copied into the D3D11 sync texture while holding its lock. The compositor will then, before composition acquire and release sync once, this should ensure all drawing on the content side has completed.
2014-12-13 01:50:47 +00:00
Wes Kocher
014909a0f9 Backed out changeset 2cd43e5ae2c1 (bug 1088414) for breaking non-Windows builds on a CLOSED TREE 2014-12-12 18:11:59 -08:00
Bas Schouten
6948db9c90 Bug 1088414: Use a single synchronization texture for D3D11. r=jrmuizel
This patch adds a cross platform 'sync object' that is used to synchronize the drawing of individual textures. For the D3D11 implementation all textures that are written to will have one pixel copied into the D3D11 sync texture while holding its lock. The compositor will then, before composition acquire and release sync once, this should ensure all drawing on the content side has completed.
2014-12-13 01:50:47 +00:00
Nicolas Silva
5f1af8a225 Bug 1101636 - Cleanup the CompositorType enum. r=jrmuizel 2014-11-26 02:00:34 +01:00
David Anderson
ff5c3e1a83 Add APZ handling for desktop scroll wheel events. (bug 1086162 part 1, r=kats) 2014-11-17 20:56:18 -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