Skip to content

Instantly share code, notes, and snippets.

class AnimationValue {
public:
AnimationValue(float keyTime, PassRefPtr<TimingFunction> timingFunction = 0)
: m_keyTime(keyTime)
{
if (timingFunction)
m_timingFunction = timingFunction;
}
virtual ~AnimationValue() { }
static inline size_t roundUpToAlignment(size_t value, unsigned alignment)
{
return ((value + alignment - 1) / alignment) * alignment;
}
uint8_t* ArgumentEncoder::grow(unsigned alignment, size_t size)
{
size_t alignedSize = roundUpToAlignment(m_bufferSize, alignment);
if (alignedSize + size > m_bufferCapacity) {
obj/debug/EventSenderProxyQt.o: In function `WTR::EventSenderProxy::updateTouchPoint(int, int, int)':
/home/igor/work/WebKit/WebKitBuild/Debug/Tools/WebKitTestRunner/../../../../Tools/WebKitTestRunner/qt/EventSenderProxyQt.cpp:325: undefined reference to `WTFReportAssertionFailure'
obj/debug/TestControllerQt.o: In function `WTR::TestControllerRunLoop::start(int)':
/home/igor/work/WebKit/WebKitBuild/Debug/Tools/WebKitTestRunner/../../../../Tools/WebKitTestRunner/qt/TestControllerQt.cpp:56: undefined reference to `WTFReportAssertionFailure'
obj/debug/TestInvocationQt.o: In function `WTR::TestInvocation::dumpPixelsAndCompareWithExpected(OpaqueWKImage const*, OpaqueWKArray const*)':
/home/igor/work/WebKit/WebKitBuild/Debug/Tools/WebKitTestRunner/../../../../Tools/WebKitTestRunner/qt/TestInvocationQt.cpp:76: undefined reference to `WTFReportAssertionFailure'
obj/debug/TestController.o: In function `WTR::TestController::shared()':
/home/igor/work/WebKit/WebKitBuild/Debug/Tools/WebKitTestRunner/../../../../Tools/Web
igor@Cygnus:~/work/PoC/cairogl$ LD_LIBRARY_PATH=/usr/local/lib/ ./cairo-gl_igor
ERR<27580>:elementary elm_win.c:1014 elm_win_add() Cannot create window.
OpenGL shader compilation failed. Shader:
varying float coverage;
attribute vec4 Vertex;
attribute vec4 Color;
attribute vec4 MultiTexCoord0;
attribute vec4 MultiTexCoord1;
uniform mat4 ModelViewProjectionMatrix;
void main()
#0 0xb4dfbcf5 in WTF::RefCountedBase::ref (this=0xad613db8) at ../../Source/WTF/wtf/RefCounted.h:53
#1 0xb4e391da in WTF::refIfNotNull<WebCore::SharedBuffer> (ptr=0xad613db8) at ../../Source/WTF/wtf/PassRefPtr.h:46
#2 0xb557a5a1 in WTF::RefPtr<WebCore::SharedBuffer>::operator= (this=0x8ab05a8, optr=0xad613db8) at ../../Source/WTF/wtf/RefPtr.h:123
#3 0xb56dc7ad in WebCore::BMPImageReader::setData (this=0x8ab05a0, data=0xad613db8) at ../../Source/WebCore/platform/image-decoders/bmp/BMPImageReader.h:72
#4 0xb56e42e3 in WebCore::ICOImageDecoder::decodeAtIndex (this=0xad614158, index=0) at ../../Source/WebCore/platform/image-decoders/ico/ICOImageDecoder.cpp:203
#5 0xb56e3f9e in WebCore::ICOImageDecoder::decode (this=0xad614158, index=0, onlySize=false)
at ../../Source/WebCore/platform/image-decoders/ico/ICOImageDecoder.cpp:168
#6 0xb56e3d74 in WebCore::ICOImageDecoder::frameBufferAtIndex (this=0xad614158, index=0) at ../../Source/WebCore/platform/image-decoders/ico/ICOImageDecoder.cpp:125
#7 0xb56a6818
<style>
.c12 { display: inherit; }
.c12:first-letter { overflow: hidden; content: counter(section); -webkit-transform: translate(100px, 100px); -webkit-transition: width 500ms, height 500ms, -webkit-transform 500ms, opacity 500ms, color 500ms, background 500ms, vertical-align 500ms;</style>
<script>
var nodes = Array();
var text = Array();
function boom() {
try { nodes[11] = document.createElement('rt'); } catch(e) {}
try { nodes[11].setAttribute('class', 'c12'); } catch(e) {}
try { document.documentElement.appendChild(nodes[11]); } catch(e) {}
void add(Glyph glyph, const SimpleFontData* font, float width, const FloatSize* offset = 0)
{
m_fontData.append(font);
#if USE(CAIRO) || (PLATFORM(WX) && defined(wxUSE_CAIRO) && wxUSE_CAIRO)
cairo_glyph_t cairoGlyph;
cairoGlyph.index = glyph;
m_glyphs.append(cairoGlyph);
#else
m_glyphs.append(glyph);
static int ComputeNormal( GLUtesselator *tess, GLdouble norm[3], int check )
/*
* If check==FALSE, we compute the polygon normal and place it in norm[].
* If check==TRUE, we check that each triangle in the fan from v0 has a
* consistent orientation with respect to norm[]. If triangles are
* consistently oriented CCW, return 1; if CW, return -1; if all triangles
* are degenerate return 0; otherwise (no consistent orientation) return
* SIGN_INCONSISTENT.
*/
{
if (_cairo_path_fixed_fill_is_rectilinear (path) &&
composite->clip != NULL &&
composite->clip->num_boxes == 1 &&
composite->clip->path == NULL) {
_cairo_gl_msaa_compositor_fill_rectilinear (const cairo_compositor_t *compositor,
cairo_composite_rectangles_t *composite,
const cairo_path_fixed_t *path,
cairo_fill_rule_t fill_rule,
double tolerance,
cairo_antialias_t antialias,
cairo_clip_t *clip)
{
cairo_gl_composite_t setup;
cairo_gl_surface_t *dst = (cairo_gl_surface_t *) composite->surface;