[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc
andreas.kling at nokia.com
andreas.kling at nokia.com
Wed Dec 22 13:32:16 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit 4c91f91c5c590f67268c036c09fe5f327054101f
Author: andreas.kling at nokia.com <andreas.kling at nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Sun Sep 19 00:23:33 2010 +0000
2010-09-18 Andreas Kling <andreas.kling at nokia.com>
Reviewed by Oliver Hunt.
Gradient: Pre-reserve space for 2 color stops
https://bugs.webkit.org/show_bug.cgi?id=46044
Most gradients have only 2 color stops, pre-reserve space for these in m_stops
to avoid growing the vector dynamically in the common case.
* platform/graphics/Gradient.h:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67801 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 5a1c203..723cc24 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,15 @@
+2010-09-18 Andreas Kling <andreas.kling at nokia.com>
+
+ Reviewed by Oliver Hunt.
+
+ Gradient: Pre-reserve space for 2 color stops
+ https://bugs.webkit.org/show_bug.cgi?id=46044
+
+ Most gradients have only 2 color stops, pre-reserve space for these in m_stops
+ to avoid growing the vector dynamically in the common case.
+
+ * platform/graphics/Gradient.h:
+
2010-09-18 Dimitri Glazkov <dglazkov at chromium.org>
Unreviewed, rolling out r67792.
diff --git a/WebCore/platform/graphics/Gradient.h b/WebCore/platform/graphics/Gradient.h
index 6052aef..5f9416a 100644
--- a/WebCore/platform/graphics/Gradient.h
+++ b/WebCore/platform/graphics/Gradient.h
@@ -142,7 +142,7 @@ namespace WebCore {
FloatPoint m_p1;
float m_r0;
float m_r1;
- mutable Vector<ColorStop> m_stops;
+ mutable Vector<ColorStop, 2> m_stops;
mutable bool m_stopsSorted;
mutable int m_lastStop;
GradientSpreadMethod m_spreadMethod;
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list