https://bugs.webkit.org/show_bug.cgi?id=83023
Patch by Mark Pilgrim <pilgrim@chromium.org> on 2012-04-03
Reviewed by Kentaro Hara.
Source/WebCore:
* bindings/v8/V8Proxy.h:
* platform/chromium/PlatformSupport.h:
(PlatformSupport):
Source/WebKit/chromium:
* src/PlatformSupport.cpp:
(WebCore):
* src/WebFrameImpl.cpp:
(WebKit::WebFrameImpl::WebFrameImpl):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@113034
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-04-03 Mark Pilgrim <pilgrim@chromium.org>
+
+ Call incrementStatsCounter directly
+ https://bugs.webkit.org/show_bug.cgi?id=83023
+
+ Reviewed by Kentaro Hara.
+
+ * bindings/v8/V8Proxy.h:
+ * platform/chromium/PlatformSupport.h:
+ (PlatformSupport):
+
2012-04-03 Sami Kyostila <skyostil@chromium.org>
[chromium] Canvas2DLayerChromium::updateCompositorResources should flush after copying
#include <wtf/text/TextPosition.h>
#if defined(ENABLE_DOM_STATS_COUNTERS) && PLATFORM(CHROMIUM)
-#define INC_STATS(name) PlatformSupport::incrementStatsCounter(name)
+#define INC_STATS(name) webkitPlatformSupport()->incrementStatsCounter(name)
#else
#define INC_STATS(name)
#endif
static void stopSharedTimer();
// StatsCounters ------------------------------------------------------
- static void incrementStatsCounter(const char* name);
static void histogramCustomCounts(const char* name, int sample, int min, int max, int bucketCount);
static void histogramEnumeration(const char* name, int sample, int boundaryValue);
+2012-04-03 Mark Pilgrim <pilgrim@chromium.org>
+
+ Call incrementStatsCounter directly
+ https://bugs.webkit.org/show_bug.cgi?id=83023
+
+ Reviewed by Kentaro Hara.
+
+ * src/PlatformSupport.cpp:
+ (WebCore):
+ * src/WebFrameImpl.cpp:
+ (WebKit::WebFrameImpl::WebFrameImpl):
+
2012-04-03 Sami Kyostila <skyostil@chromium.org>
[chromium] Canvas2DLayerChromium::updateCompositorResources should flush after copying
// StatsCounters --------------------------------------------------------------
-void PlatformSupport::incrementStatsCounter(const char* name)
-{
- webKitPlatformSupport()->incrementStatsCounter(name);
-}
-
void PlatformSupport::histogramCustomCounts(const char* name, int sample, int min, int max, int bucketCount)
{
webKitPlatformSupport()->histogramCustomCounts(name, sample, min, max, bucketCount);
, m_identifier(generateFrameIdentifier())
, m_inSameDocumentHistoryLoad(false)
{
- PlatformSupport::incrementStatsCounter(webFrameActiveCount);
+ WebKit::Platform::current()->incrementStatsCounter(webFrameActiveCount);
frameCount++;
}