gecko-dev/layout
Avi Halachmi 8ba2f637aa Bug 838758: Cache GradientStops instead of gfxPattern. r=jrmuizel
Our gfxPattern cache is currently way too specific, which causes lots of
unnecessary cache misses. The only thing that we actually need to key on is the
color stops.

This switches the cache to hold GradientStops instead of gfxPatterns. This
improves our cache hit rate and is simpler. It also avoids doing caching when
not using Azure, which currently has no benefit.

Average paint times results (in ms)
(on windows 7 x64, i7-3630qm, HD4000)
-------------------------------------
m-c
open: 3.5 close: 3.3

m-c cache-key
open: 2.6 close: 2.4

ux
open: 7.3 close: 5.2

ux cache-key
open: 6.9 close: 5.3
2013-02-15 20:54:49 +02:00
..
analysis
base Bug 838758: Cache GradientStops instead of gfxPattern. r=jrmuizel 2013-02-15 20:54:49 +02:00
build Bug 838501 - Refactor SVGElementFactory so that it uses a hashtable rather than a set of if tests to match tags to creation functions. r=dholbert 2013-02-08 20:24:47 +00:00
doc Bug 806068 part 2: Change in-tree usage of -moz-initial to initial. r=dholbert 2012-10-30 16:57:36 +01:00
forms Backed out changeset 2c860c4bb820 (bug 840902) on a CLOSED TREE 2013-02-15 09:05:36 +00:00
generic bug 841430 - nuke nsIEditorDocShell r=bz 2013-02-13 17:39:30 -05:00
inspector Bug 841407 - Replace usage of enablePrivilege in inspector tests. r=bholley 2013-02-15 09:34:46 -05:00
ipc Backed out changeset 2c860c4bb820 (bug 840902) on a CLOSED TREE 2013-02-15 09:05:36 +00:00
mathml Backed out changeset 2c860c4bb820 (bug 840902) on a CLOSED TREE 2013-02-15 09:05:36 +00:00
media Bug 830247: rollup of changes to media/webrtc/trunk, and backouts of some temp patches r=ted,derf 2013-02-09 23:16:10 -05:00
printing bug 841436 - remove nolonger needed qi from nsIDocShell to nsIDocShellTreeItem r=bz 2013-02-12 17:02:51 -05:00
reftests Bug 827227 - Fixed int overflow when scaling border-image-width. r=dbaron 2013-02-14 11:57:20 -08:00
style Bug 838758: Cache GradientStops instead of gfxPattern. r=jrmuizel 2013-02-15 20:54:49 +02:00
svg Backed out changeset 2c860c4bb820 (bug 840902) on a CLOSED TREE 2013-02-15 09:05:36 +00:00
tables Backed out changeset 2c860c4bb820 (bug 840902) on a CLOSED TREE 2013-02-15 09:05:36 +00:00
tools bug 841436 - remove nolonger needed qi from nsIDocShell to nsIDocShellTreeItem r=bz 2013-02-12 17:02:51 -05:00
xul bug 841436 - remove nolonger needed qi from nsIDocShell to nsIDocShellTreeItem r=bz 2013-02-12 17:02:51 -05:00
Makefile.in Bug 833879 - Move layout/xul/base/src/tree/ to layout/xul/tree, layout/xul/base/src/grid to layout/xul/grid. r=roc 2013-02-04 07:11:49 -05:00