Commit Graph

191 Commits

Author SHA1 Message Date
Nicholas Nethercote
110c0b0c35 Bug 1239864 (part 4) - Use the new rect iterators in gfx/. r=nical. 2016-01-18 17:20:58 -08:00
Nicholas Nethercote
b1d88be3bd Bug 1239864 (part 1) - Add new, nicer rect-iterators for nsRegion and nsIntRegion. r=roc.
This requires renaming the existing nsIntRegion::RectIterator as
nsIntRegion::OldRectIterator to make way for the new nsIntRegion::RectIterator.
This doesn't require many knock-on changes because most existing uses of
that type use the nsIntRegionRectIterator typedef.
2016-01-14 18:36:11 -08:00
Kartikaya Gupta
2b6aedaa55 Bug 1226826 - Record paint times in the checkerboard event. r=botond 2016-01-15 16:19:59 -05:00
Nigel Babu
ca51f1ac3d Backed out 4 changesets (bug 1226826) for widespread bustage
Backed out changeset 95d373bec568 (bug 1226826)
Backed out changeset bb9970d440a4 (bug 1226826)
Backed out changeset 6c1fa0dc6bd7 (bug 1226826)
Backed out changeset 400ebf504171 (bug 1226826)
2016-01-14 08:33:11 +05:30
Kartikaya Gupta
c312cf4e59 Bug 1226826 - Record paint times in the checkerboard event. r=botond 2016-01-13 15:46:08 -05:00
Nicholas Nethercote
6b299ad225 Bug 1209812 (part 6) - Convert all gfxImageFormat values to SurfaceFormat equivalents. r=jrmuizel.
This patch:

- Makes the following substitutions (plus necessary namespace qualifiers:

    gfxImageFormat::ARGB32      --> SurfaceFormat::A8R8G8B8_UINT32
    gfxImageFormat::RGB24       --> SurfaceFormat::X8R8G8B8_UINT32
    gfxImageFormat::A8          --> SurfaceFormat::A8
    gfxImageFormat::RGB16_565   --> SurfaceFormat::R5G6B5_UINT16
    gfxImageFormat::Unknown     --> SurfaceFormat::UNKNOWN

- Changes gfxImageFormat to be a typedef to gfx::SurfaceFormat. This will be
  removed soon.

- Removes gfxCairoFormatToImageFormat() and gfxImageFormatToCairoFormat() and
  replace calls to them with CairoFormatToGfxFormat() and
  GfxFormatToCairoFormat().

- Removes ParamTraits<gfxImageFormat>.

- Add namespace qualifiers to SurfaceFormat instances where necessary.
2016-01-07 20:57:38 -08:00
Kartikaya Gupta
36bf103636 Bug 1219352 - Pack the FrameMetrics booleans. r=botond 2016-01-06 20:50:01 -05:00
Kartikaya Gupta
9382f48fdf Bug 1219352 - Rearrange fields in FrameMetrics. r=botond
This patch:
- Maintains a consistent ordering between the lists of fields in the
  FrameMetrics constructor, operator==, IPC read/write functions, and the
  actual order of fields in FrameMetrics. As part of this, missing default
  initializers are added to the FrameMetrics constructor, and fields omitted
  from the operator== are explicitly noted.
- Moves all the boolean values to the end of the set of field (for better
  packing).
- Moves the scroll id and parent scroll id to the front of the list, so that
  the operator== can fail faster in the common case.
2016-01-06 20:50:01 -05:00
Bill McCloskey
502696760b Bug 1236266 - Use release assert in IPC serialization for regions (r=jmuizelaar) 2016-01-06 10:22:54 -08:00
Nigel Babu
3ddeb5fc07 Backed out changeset ad7bcc14bc9c (bug 1236266) for causing perma leaks 2016-01-06 14:02:58 +05:30
Bill McCloskey
0d1af2d1df Bug 1236266 - Use release assert in IPC serialization for regions (r=jmuizelaar) 2016-01-05 21:59:46 -08:00
David Anderson
a9ae6c3924 Annotate FrameMetrics that are created for ScrollInfoLayers. (bug 1192919 part 1, r=kats) 2015-12-21 09:36:36 -05:00
Nicolas Silva
6a9d93c630 Bug 1228952 - Move texture metadata out of the BufferTextureClient/Host's buffer. r=Sotaro 2015-12-16 19:50:58 +01: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
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