Commit Graph
23 Commits
Author SHA1 Message Date
Milan Sreckovic fe9daf64d1 Bug 1387514: Upgrade BaseRect (derived classes) width and height direct member variable use to instead use Width()/SetWidth() and Height()/SetHeight() in .cpp files in gfx/*. r=milan
MozReview-Commit-ID: 1jESowJKdyp
2017-08-14 08:29:28 -04:00
Joel Maher 8306c518d7 Bug 1323238 - disable MOZ_GTEST_BENCH tests as we are not looking at the data. r=wlach
MozReview-Commit-ID: xYRHpWVaa7
2017-06-02 13:27:20 -04:00
Eric Rahm 969b07b97e Bug 1315464 - Dynamically allocate test regions. r=jrmuizel
Avoid allocating 720K on the stack.
2017-01-27 11:58:14 -08:00
Kartikaya Gupta 660f32b0bb Bug 1283826. r=mstange,Bas
MozReview-Commit-ID: HiwjHBlhmKk
2016-07-19 21:50:09 -04:00
Wes Kocher e879bcd002 Backed out changeset 7985dab6e65e (bug 1283826) for crashtest failures CLOSED TREE 2016-07-18 11:43:15 -07:00
Kartikaya Gupta 010464be5b Bug 1283826. r=mstange,Bas
MozReview-Commit-ID: HiwjHBlhmKk
2016-07-18 11:15:00 -04:00
Kartikaya Gupta 49d1b3001f Bug 1274589 - Rename RegionBuilder::Or to RegionBuilder::OrWith for consistency with the region classes. r=jrmuizel
MozReview-Commit-ID: CIzTVKXUVSs
2016-05-21 00:06:51 -04:00
Markus Stange b6bb649db3 Bug 1236043 - Add a TiledRegion class. r=jrmuizel
MozReview-Commit-ID: Fb0kBGo3yYo
2016-04-18 13:48:58 -04:00
Benoit Girard d278932802 Bug 1248044 - Add PingPongRegion for faster region operations for 2x memory usage. r=jrmuizel
MozReview-Commit-ID: KiIGiQYN33u
2015-08-27 16:06:38 -04:00
Benoit Girard 8e834cd7fa Bug 1258481 - Add a RegionBuilder for accumulating rects. r=jrmuizel
MozReview-Commit-ID: 6tI81iqj44V
2016-03-23 11:54:39 -04:00
Carsten "Tomcat" Book 98ca03ff63 Backed out changeset 5e60a574fcec (bug 1258481) for bustage on a CLOSED TREE 2016-03-23 16:53:24 +01:00
Benoit Girard f6674be17b Bug 1258481 - Add a RegionBuilder for accumulating rects. r=jrmuizel
MozReview-Commit-ID: 6AO9q6Ru833
2016-03-21 16:22:37 -04:00
Benoit Girard 7267061806 Bug 1256408 - Add graphics microbenchmarking. r=mstange
MozReview-Commit-ID: H4IRZuLy7do
2016-03-16 14:20:33 -04:00
Nicholas Nethercote 624839b661 Bug 1239864 (part 8) - Use the new rect iterators in gfx/. r=nical. 2016-01-18 17:20:58 -08:00
Thibaud Backenstrass de3d7846ad Bug 1158122 - Remove most occurences of nsIntRect in gfx/tests. r=nical 2015-05-07 11:08:01 +02:00
Jeff Muizelaar 48ae6bb571 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 eb7a28b9ee Bug 1023473 - Follow-up to convert tabs to spaces. r=me and DONTBUILD 2014-12-15 10:45:46 -05:00
Kartikaya Gupta 654160a15d Bug 1040986 - Add a Contains(x,y) method to nsRegion. r=jrmuizel 2014-07-22 13:33:46 -04:00
Jeff Muizelaar 543f2cc53b Bug 1023473. Pad out tile contents by one pixel. r=BenWa
This fixes reading unitialized data during texture filtering.
It's complicated because we can have regions of initialized data
and padding out a region is much harder than a rectangle.

We currently only take this path for tiled things because of
the artifacts that show up during the sampling that helps
in overscroll. It's also not a great long term solution because
it only works for software backends.
2014-07-18 14:25:34 -04:00
Jeff Muizelaar aada528247 Bug 1014654. Handle empty regions in SimplifyOutwardByArea(). 2014-05-22 12:36:32 -04:00
Jeff Muizelaar befcc06fcf Bug 945079 - Add a way to simplify regions based on the change in volume. r=mattwoodrow 2014-05-06 16:39:34 -04:00
Jeff Muizelaar be14e3c677 Bug 845874. Switch to Y-X banded regions. r=roc
Previously our region code was just a simple y,x sorted list of
non-intersecting rectangles. This can cause us to have simple regions
represented in a complex unoptimizable way.

Switching to pixman regions gives us a canonical region implementation.

There are some cases when this can cause performance regressions.

For example, with the old region code we end up with this region:
http://people.mozilla.org/~jmuizelaar/region-pre.html
which is represented like this:
http://people.mozilla.org/~jmuizelaar/region-post.html
with the new code.

We call SimplifyOutward(4) on this. With old regions we can't simplify it so we
end up taking the bounds and get 1 rect. With the new regions we have only 3
rects to start and so we do nothing. The difference between 3 rects and 1 rect
cause D2D to do a PushLayer() instead of a ClipRect() and that seems to be the
causes for the regression.
2013-11-18 13:01:54 -05:00
Benoit Girard f2587f39cc Bug 865902 - Port old gfx unit tests. r=milan 2013-04-25 19:02:13 -04:00