Commit Graph

604 Commits

Author SHA1 Message Date
Ryan VanderMeulen
41b12d46e3 Backed out changeset 4e63305fe592 (bug 1191040) for Linux gtest crashes.
CLOSED TREE
2015-08-07 16:24:59 -04:00
Matt Woodrow
2b069a812f Bug 1191040 - Ensure that we only compute the tile size once. r=BenWa 2015-08-07 15:37:56 -04:00
Matt Woodrow
6fa6ea7eec Bug 1150944 - Add a flags parameter to GLContextProvider functions instead of a bool. r=jgilbert 2015-07-29 16:35:55 -04:00
Matt Woodrow
b06b49037f Bug 1150944 - Fix gfxPrefs unit test to not rely on skia-gl pref. r=mstange 2015-07-29 16:35:55 -04:00
Wes Kocher
2d40eac90e Backed out 6 changesets (bug 1150944, bug 1034370) for build failures in WebGLContext.cpp CLOSED TREE
Backed out changeset e2a6160242e5 (bug 1150944)
Backed out changeset 1c510537d20b (bug 1150944)
Backed out changeset 7ae813666ed5 (bug 1150944)
Backed out changeset 2f29ac2e31cd (bug 1150944)
Backed out changeset bf7681b1567e (bug 1150944)
Backed out changeset 79c6b8d014d2 (bug 1034370)
2015-07-29 14:16:17 -07:00
Matt Woodrow
738c3246e7 Bug 1150944 - Add a flags parameter to GLContextProvider functions instead of a bool. r=jgilbert 2015-07-29 16:35:55 -04:00
Matt Woodrow
d73157f84a Bug 1150944 - Fix gfxPrefs unit test to not rely on skia-gl pref. r=mstange 2015-07-29 16:35:55 -04:00
Bobby Holley
59c4d9cf6c Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
Kartikaya Gupta
74edb2a1fe Bug 1186004 - Split the asyncPanZoom reftest sandbox condition into asyncPan and asyncZoom. r=mstange 2015-07-22 23:42:08 -04: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
Robert O'Callahan
9117630ce9 Bug 1143575. Store composition time in Compositor. r=nical
We'll need this later so ImageHost can select the correct image to use.

Adding a TimeStamp parameter to BeginFrame is a bit annoying since BeginFrame
is overridden by every subclass. It's a bit more convenient to just call a
separate non-virtual method just before we call BeginFrame.
2015-07-07 15:38:38 +12:00
Tom Klein
257e8fcd9f Bug 1143303 - extend D2D circle workaround to work for small circles. r=bas 2015-07-06 22:46:00 +02:00
Lynn Tran
f6656f6e1f Bug 1031443 - Allow panning in the pinching state even if zooming is
disabled;r=botond
2015-07-01 14:58:32 -04:00
Benoit Girard
6864124fbc Bug 1132467 - Adjust qcms lut inverse binary search of non monotonic TRC. r=jrmuizel 2015-06-04 19:30:52 -04:00
Ryan VanderMeulen
43e01dd99d Bug 1179287 - Skip TestTiledLayerBuffer due to Linux PGO bustage.
CLOSED TREE
2015-07-01 13:42:48 -04:00
Nicolas Silva
cf06c34790 Bug 1179287 - Attempt to fix a gcc warning by removing the line in the test that may have caused it. CLOSED TREE 2015-07-01 18:22:17 +02:00
Nicolas Silva
a2edb251f4 Bug 1170189 - Simplify the client-side tiling code. r=BenWa 2015-07-01 13:50:58 +02:00
Nathan Froyd
8780083336 Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan
This conversion was done with the script:

  find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl' | \
    egrep -v 'cairo-win32-refptr.h|RefPtr.h|TestRefPtr.cpp' | \
    xargs sed -i -e 's/mozilla::TemporaryRef</already_AddRefed</g' \
                 -e 's/TemporaryRef</already_AddRefed</g'

Manual fixups were performed in the following instances:

- We handled mfbt/RefPtr.h manually so as to not convert TemporaryRef itself
  into already_AddRefed.

- The following files had explicit Move() calls added to make up for the lack
  of a copy constructor on already_AddRefed:

  dom/base/ImageEncoder.cpp
  dom/media/MediaTaskQueue.{h,cpp}
  dom/media/webaudio/PannerNode.cpp

- A redundant overload for MediaTaskQueue::Dispatch was deleted.

- A few manual fixups were required in mfbt/tests/TestRefPtr.cpp.

- Comments, using declarations, and forward declarations relating to
  TemporaryRef in dom/canvas/ and gfx/layers/ were changed to refer to
  already_AddRefed.
2015-06-17 10:00:52 -04:00
Tom Klein
c6ccb89700 Bug 853889 - Check single-box orientaton in _cairo_bentley_ottmann_tessellate_rectangular_traps and _cairo_bentley_ottmann_tessellate_boxes. r=jmuizelaar
The fix for _cairo_bentley_ottmann_tessellate_boxes is from cairo upstream
commit 11b6c49c103d53526e9805c8906fde5dbb2eb884.
2015-06-18 13:15:00 -04:00
Kartikaya Gupta
e1f765d245 Bug 1163832 - Add an API to flush pending APZ repaint requests and dispatch a notification upon completion. r=botond 2015-06-19 08:25:41 -04:00
Ryan VanderMeulen
7ee39929dd Backed out changeset 264d12cfb073 (bug 853889) for Android 853889-1.html reftest failures.
CLOSED TREE
2015-06-17 11:43:23 -04:00
Tom Klein
88da7434fe Bug 853889 - Check orientation of single trapezoid in _cairo_bentley_ottmann_tessellate_rectangular_traps. r=jmuizelaar 2015-06-15 16:57:00 +02:00
Jeff Muizelaar
8979bb4dcc Bug 1170983 - Re-enable gfx gtests that were skipped on Windows. r=ted
We can run these now that we don't split out gkmedias.

This also changes a test to avoid MSVC codegening a divide by 0
2015-06-04 14:34:46 -04:00
Botond Ballo
9f74606e9e Bug 1158424 - Rename FrameMetrics::mIsRoot to mIsRootContent. r=kats 2015-06-08 16:01:26 -04:00
Botond Ballo
139bfb7eec Bug 1169690 - Gtests. r=kats 2015-06-03 19:38:50 -04:00
Kartikaya Gupta
ab4e9df8c8 Bug 1169695 - Remove as many manual calls to spin the task queue as possible. r=botond 2015-06-01 14:36:12 -04:00
Kartikaya Gupta
f027bf1442 Bug 1169695 - Ensure timed tasks are dispatched appropriately when advancing the time. r=botond 2015-06-01 14:36:12 -04:00
Kartikaya Gupta
20fc09e280 Bug 1169695 - Store task run-at times in the task queue. r=botond 2015-06-01 14:36:12 -04:00
Kartikaya Gupta
274473db15 Bug 1169695 - Advance the stored time when sampling the transform for a future frame. r=botond 2015-06-01 14:36:12 -04:00
Kartikaya Gupta
128b19e82e Bug 1169695 - Make the test timestamp privately held by the MockContentControllerDelayed. r=botond 2015-06-01 14:36:12 -04:00
Kartikaya Gupta
6fb9cce5fe Bug 1169689 - Make sure we don't end up with a spurious velocity if we're not going to be panning. r=botond
This patch also removes an unnecessary call to StartTouch, since the start pos
is not used when computing the pan delta any more.
2015-06-01 09:51:16 -04:00
Amanda Sambath
b345b707d0 Bug 1158120 - Replace gfxIntSize by mozilla::gfx::IntSize in gfx/tests. r=nical 2015-05-28 13:02:44 +02:00
Timothy Nikkel
1a9c38ddfb Bug 1168630. Part 6. Modify the test for bug 1119497 based on the new assumption of always having a root APZC. r=botond
Part 5 adds an assert that we always return an APZC from GetAPZCAtPoint. The test for bug 1119497 fails this assumption because it does not give it's layer tree a root AZPC. In all non-test code we ensure that there is always a root APZC and many things would break without such. So we modify the test to always have a root APZC more like actual code.

The test is testing that we don't return the layer below (with an APZC) the topmost child layer (without an APZC). So checking if we hit the root APZC still makes the test test the same thing.
2015-05-31 14:44:41 -05:00
Tom Klein
d98692ef21 Bug 1063486 - Track current point in _cairo_path_bounder_curve_to r=jmuizelaar 2015-05-30 16:07:48 +01:00
Kartikaya Gupta
5cc523e77d Bug 1166871 - Add a test. r=botond 2015-05-29 11:04:22 -04:00
Mike Hommey
4245f5c436 Bug 991983 - Define SOURCES as SourcePath. r=gps 2015-05-28 07:34:15 +09:00
Kartikaya Gupta
7aa49999e1 Back out 2 csets for bug 1163832 for emulator crashtest failures. r=me
CLOSED TREE
2015-05-22 07:51:55 -04:00
Kartikaya Gupta
f1ab324875 Bug 1163832 - Add an API to flush pending APZ repaint requests and dispatch a notification upon completion. r=botond 2015-05-22 06:42:08 -04:00
Nathan Froyd
bb51644dac Bug 1160485 - remove implicit conversion from RefPtr<T> to TemporaryRef<T>; r=ehsan
Having this implicit conversion means that we can silently do extra
refcounting when it's completely unnecessary.  It's also an obstacle to
making RefPtr more nsRefPtr-like, so let's get rid of it.
2015-05-01 09:14:16 -04:00
Carsten "Tomcat" Book
48757dfc62 Backed out changeset 81a47807c54a (bug 1134549) for crashtest failures on CLOSED TREE 2015-05-20 16:12:33 +02:00
Milan Sreckovic
aaa4588e78 Bug 1162530 - Part 1: Add versioning to graphics blocklist. r=jmuizelaar 2015-05-15 10:42:10 -04:00
Tom Klein
f281189d16 Bug 1134549 - Switch FlattenBezier from floats to doubles. r=bas 2015-05-20 11:44:05 +01:00
Botond Ballo
204ebfa9c1 Bug 1159985 - Gtest. r=kats 2015-05-11 22:25:34 -04:00
Botond Ballo
862002f1de Bug 1159985 - In APZ gtests, allow panning in both directions. r=kats 2015-05-11 22:06:03 -04:00
Botond Ballo
9ed09c5f13 Bug 1163845 - Unify handling of time in APZ gtests. r=kats 2015-05-15 12:45:27 -04:00
John Daggett
cee8206ade Bug 1056479 p3 - fixup various reftests for Linux. r=jfkthame 2015-05-13 14:11:25 +09:00
Carsten "Tomcat" Book
296c0d4c9a Backed out changeset 194a4c39c2a9 (bug 1056479) 2015-05-12 12:21:02 +02:00
John Daggett
6c2b8ccc78 Bug 1056479 p3 - fixup various reftests for Linux. r=jfkthame 2015-05-12 17:44:20 +09:00
Carsten "Tomcat" Book
1dea6c6eeb Backed out 10 changesets (bug 1056479) for bustage on a CLOSED TREE
Backed out changeset d5b1f2b78915 (bug 1056479)
Backed out changeset bcc65b714dd6 (bug 1056479)
Backed out changeset 0b35e8a463d2 (bug 1056479)
Backed out changeset 0933391809c9 (bug 1056479)
Backed out changeset 93bd67204fac (bug 1056479)
Backed out changeset 5260b93eb0b9 (bug 1056479)
Backed out changeset 130bea3f8623 (bug 1056479)
Backed out changeset 408e078cc18d (bug 1056479)
Backed out changeset a651c240979d (bug 1056479)
Backed out changeset d74ae8fcaac9 (bug 1056479)
2015-05-12 08:25:19 +02:00
John Daggett
7154781e42 Bug 1056479 p3 - fixup various reftests for Linux. r=jfkthame 2015-05-12 14:51:17 +09:00
Kartikaya Gupta
0a1d70ba2d Bug 1160566 - Make FrameMetrics.mCompositionBounds private and add a getter/setter for it. r=botond 2015-05-07 14:44:03 -04:00
Thibaud Backenstrass
9b0d9a3113 Bug 1158122 - Remove most occurences of nsIntRect in gfx/tests. r=nical 2015-05-07 11:08:01 +02:00
Botond Ballo
d13f22b156 Bug 1152051 - Gtest. r=Cwiiis,kats 2015-04-29 19:38:02 -04:00
Kartikaya Gupta
0e82b5c03a Bug 1148350 - Add a test. r=botond 2015-04-30 14:30:38 -04:00
Kartikaya Gupta
2efdaa8793 Bug 1159398 - Set the controller thread when running APZ gtests. r=dvander 2015-04-29 07:22:27 -04:00
Ying-Ruei Liang (KK)
73bcc83422 Bug 1143522 - Convert Layer::mClipRect to ParentLayerIntRect. r=botond
Change interface of getter/setter for mClipRect,
also necessary modification for codes that use these resources.

* * *
Bundle mUseClipRect and mClipRect as Maybe<ParentLayerIntRect> mClipRect
2015-04-11 22:03:00 -04:00
Ryan VanderMeulen
d06790bb92 Merge inbound to m-c. a=merge 2015-04-14 10:06:03 -04:00
Alexandre Lissy
faad90247f Bug 1153574 - Re-enable Mulet reftests taskcluster-specific disables. r=ahal, a=test-only 2015-04-13 14:26:00 -04:00
Botond Ballo
61617910aa Bug 1152051 - During an overscroll animation, detect a peak even if a sample has a velocity of exaclty zero. r=Cwiiis 2015-04-08 19:59:14 -04:00
Nicolas Silva
17671eabdb Bug 1132854 - Remove the gfx::ToIntSize conversion helper. r=Bas 2015-04-07 16:08:57 +02:00
Jonathan Kew
98011eea67 Bug 1012640 - patch 1 - Add checks for IsOriginalCharSkipped() to the gfxSkipChar unit tests. r=roc 2015-04-07 09:27:18 +01:00
Nicolas Silva
360af5d1db Bug 1132854 - Remove useless ThebesIntSize conversion helper. r=Bas 2015-03-29 16:59:15 +02:00
Nicolas Silva
4a4a87a4a5 Bug 1132854 - Make nsIntSize a typedef of gfx::IntSize. r=Bas, roc 2015-03-29 16:59:08 +02:00
Martijn Wargers
88c59897fd Bug 1145553 - Remove remaining usage of enablePrivilege in crashtests; r=jmaher 2015-03-20 14:29:19 +01:00
Mason Chang
29c2dd4d26 Bug 1146691 - Create tests to check that the RefreshDriverVsyncObservers get vsync notifications. r=kats 2015-03-24 08:50:58 -07:00
Ehsan Akhgari
5cccea6f0f Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Wes Kocher
594f9bf623 Merge m-c to inbound a=merge CLOSED TREE 2015-03-20 18:01:17 -07:00
Kartikaya Gupta
8eac48cc93 Bug 1144831 - Remove the HandleLongTapUp callback and just use HandleSingleTap instead. r=botond 2015-03-20 14:26:52 -04:00
Alexandre Lissy
ae41759754 Bug 1144080 - Disable reftests on Mulet for TaskCluster. r=ahal 2015-03-20 00:45:00 +01:00
Kartikaya Gupta
202979f0b3 Bug 1144112 - Update the FlingStop tests to check if events are flowing properly after the fast-motion blocks are done. r=botond 2015-03-19 06:33:32 -04:00
Kartikaya Gupta
6b1c41259a Bug 1144112 - Only set the default allowed touch behaviour if the event is not consumed, to have the tests better reflect reality. r=botond 2015-03-19 06:33:32 -04:00
Nicolas Silva
b2f274f37f Bug 1142659 - Fix coverity warning in Layers::UserData test. r=jrmuizel 2015-03-17 15:50:06 +01:00
Botond Ballo
f6caac98dc Bug 1036967 - Use ScaleFactors2D instead of ScaleFactor where appropriate in APZ and surrounding code. r=kats 2015-03-06 13:54:10 -05:00
Jeff Muizelaar
36f2729dde Bug 1130978. Fix VisitEdges. r=kats
The code is broken because in the else case of VisitNextEdgeBetweenRect we
assume that r2->x1 < r1->x1. This is not always the case.

The fix is to have VisitNextEdgeBetweenRect return whether there's an overlap.
The calling code can than adjust x1 appropriately if r1 != r1_end && r2 != r2_end.
2015-03-11 01:18:30 -04: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
Kartikaya Gupta
940b657978 Bug 1137267 - Enable event-regions automatically when APZ is enabled, and allow the APZ code to assume event-regions are enabled always. r=botond,tn 2015-03-10 09:29:19 -04:00
Kearwood (Kip) Gilbert
bbc4c7b4e8 Bug 945584: Part 6 - Implementation of scroll snapping (v10 Patch), r=roc, r=kats
- Implemented CSS scroll snapping (http://dev.w3.org/csswg/css-snappoints/)
2015-02-19 15:53:30 -08:00
Botond Ballo
98b5ab7212 Bug 943537 - In the GeckoContentController interface, take the modifiers for tap events in 'widget modifier' format rather than 'DOM modifier' format. r=kats,mbrubeck 2015-03-02 16:38:07 -05:00
Kartikaya Gupta
60e1f7ed1c Bug 1092128 - Ensure that when touch-action is enabled the gtests always provide default touch behaviours where expected. r=botond 2015-03-02 11:51:45 -05:00
Kartikaya Gupta
719288c341 Bug 1092128 - Ensure the tests for touch action disabled actually disable touch action. r=botond 2015-03-02 11:50:38 -05:00
Benoit Girard
0c64c8efab Bug 1135677 - Deal with overflowing rects. r=bas 2015-02-23 14:09:56 -05:00
Abhishek Arya
5bce78f867 Bug 944579 - another crashtest. 2015-02-22 04:57:16 +00:00
Jesse Ruderman
d90353f9cd Bug 950000 - crashtest. 2015-02-22 02:41:58 +00:00
Abhishek Arya
a64762cc96 Bug 944579 - crashtest. 2015-02-22 02:41:58 +00:00
Jesse Ruderman
7a541782e3 Bug 593526 - crashtests. 2015-02-22 02:41:58 +00:00
Carsten "Tomcat" Book
dfaa08abd3 Backed out changeset e1bb91f60697 (bug 1129871) 2015-02-17 14:32:15 +01:00
Nicolas Silva
ec5da4e6eb Bug 1129871 - Favor passing tiles by ref rather than copy part 2. r=BenWa 2015-02-14 12:14:59 +01:00
Jeff Gilbert
0ef04109e7 Bug 1124394 - Support Core profiles for GLContext. - r=kamidphish 2015-02-12 19:00:41 -08:00
Kartikaya Gupta
a83100edb9 Bug 930939 - Move thread assertion code into APZThreadUtils and add more assertions. r=botond 2015-02-10 08:24:23 -05:00
Jeff Gilbert
31f494f506 Backout 80a88a3badba for causing bug 1130086. 2015-02-06 11:37:04 -08:00
Robert O'Callahan
7464c67b7f Bug 1129774. Part 5: Remove aContext parameter from nsIWidget::Create. r=jmathies 2015-02-05 20:35:25 +13:00
Jeff Muizelaar
a9ada8a443 Bug 1129064. Remove duplicate IsPlaceholderTile function. r=BenWa
The method version is cheaper because it doesn't need to make a copy of the
Tile.
2015-02-03 14:07:45 -05:00
Jeff Gilbert
67b77468dc Bug 1124394 - Support WebGL 2 with Core Profiles on Mac. - r=kamidphish 2015-02-04 16:34:55 -08:00
David Zbarsky
792f700e75 Bug 1125040: Use LayoutDeviceIntPoint for nsIWidget::WidgetToScreen r=botond 2015-02-04 15:21:03 -05:00
Wes Kocher
4a7262bb43 Backed out changeset 176166c0bae9 (bug 1124394) for b2g device bustage on a CLOSED TREE 2015-01-29 14:23:37 -08:00
Jeff Gilbert
c9fbfe90ae Bug 1124394 - Support WebGL on Core Profiles on Mac. - r=kamidphish 2015-01-29 00:44:19 -08:00
Mason Chang
5292206778 Bug 1098701. Part 1: gtest framework and tests. r=kats 2015-01-23 11:19:54 -08:00
Daniel Holbert
f5f030e6bd Bug 1123878: Add MOZ_OVERRIDE annotations in TestCompositor.cpp. r=BenWa 2015-01-20 13:17:27 -08:00
Surabhi Anand
b65688d9ee Bug 1120203 - Transitioning mPresShellResolution field of FrameMetrics to use getters/setters. r=kats 2015-01-16 16:15:52 -05:00
Kartikaya Gupta
3ea4913221 Bug 1119497 - Rename the HitTestResult enum values in light of the new hit-test code. rs=botond 2015-01-15 10:37:54 -05:00