Skip to content

Instantly share code, notes, and snippets.

$ fio -v ~/dev/fioscenarios/gcclike
2.0.8
gcclike: (g=0): rw=randrw, bs=4K-9K/1800K-1800K, ioengine=sync, iodepth=1
...
gcclike: (g=0): rw=randrw, bs=4K-9K/1800K-1800K, ioengine=sync, iodepth=1
2.0.8
Starting 8 processes
gcclike: Laying out IO file(s) (1 file(s) / 256MB)
gcclike: Laying out IO file(s) (1 file(s) / 256MB)
gcclike: Laying out IO file(s) (1 file(s) / 256MB)
[global]
description=Trying to simulate WebKit compilation on 8 cores
[gcclike]
numjobs=8
# average header size 4k, average cpp file size 9.5k, average object file size 1.8M
bssplit=4k/40:9k/40,1800k/100
direct=1
ioengine=sync
rw=randrw
$ fio ~/dev/fioscenarios/gcclike
gcclike: (g=0): rw=randrw, bs=4K-9K/1800K-1800K, ioengine=sync, iodepth=1
...
gcclike: (g=0): rw=randrw, bs=4K-9K/1800K-1800K, ioengine=sync, iodepth=1
2.0.8
Starting 8 processes
gcclike: Laying out IO file(s) (1 file(s) / 256MB)
gcclike: Laying out IO file(s) (1 file(s) / 256MB)
gcclike: Laying out IO file(s) (1 file(s) / 256MB)
gcclike: Laying out IO file(s) (1 file(s) / 256MB)
--- a/Source/WebCore/platform/graphics/freetype/SimpleFontDataFreeType.cpp
+++ b/Source/WebCore/platform/graphics/freetype/SimpleFontDataFreeType.cpp
@@ -65,8 +65,12 @@ void SimpleFontData::platformInit()
m_fontMetrics.setAscent(ascent);
m_fontMetrics.setDescent(descent);
+#if !PLATFORM(EFL)
// Match CoreGraphics metrics.
m_fontMetrics.setLineSpacing(lroundf(ascent) + lroundf(descent) + lroundf(lineGap));
+#else
@drott
drott / gist:4249716
Created December 10, 2012 10:05
enabling subpixel
diff --git a/Source/WTF/wtf/Platform.h b/Source/WTF/wtf/Platform.h
index 1603019..e345bb4 100644
--- a/Source/WTF/wtf/Platform.h
+++ b/Source/WTF/wtf/Platform.h
@@ -828,8 +828,8 @@
#endif
#if !defined(ENABLE_SUBPIXEL_LAYOUT)
-#if PLATFORM(CHROMIUM)
-#define ENABLE_SUBPIXEL_LAYOUT 1
@drott
drott / gist:4215546
Created December 5, 2012 13:35
quick & dirty font metrics on c#
Code (adapted from http://msdn.microsoft.com/en-us/library/xwf9s90b.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1 - this links also explains about the em/fontDesignUnits to Pixel conversion)
static void Main(string[] args)
{
int ascent;
float ascentPixel;
int descent;
float descentPixel;
int lineSpacing;
float lineSpacingPixel;
EVENT type 15 (RawButtonPress)
device: 12 (12)
detail: 1
valuators:
flags:
EVENT type 22 (RawTouchBegin)
device: 12 (12)
detail: 62