summaryrefslogtreecommitdiff
path: root/boilerplate
AgeCommit message (Collapse)AuthorFilesLines
2009-09-14[build] Add a default message for when GLEW isn't builtChris Wilson1-8/+0
And it appears I touched the build system again and autoregenerated the feature headers.
2009-09-14Add a private copy of GLEWChris Wilson1-0/+8
This appears to be the simplest mechanism to build libglew at the moment - should a system copy be unavailable. Fortunately libglew is now distributed under a permissive licence. If you want to pass 'make -C src check' you have to use the system copy, or spend quite a bit of time cairo-fying libglew.
2009-09-13[configure] --enable-symbol-lookupChris Wilson1-0/+7
There you go Joonas, I don't always ignore your suggestions! This is simple patch to allow the user to disable symbol loops in case the auto-detection fails on some obscure (perhaps OpenBSD) platform. Or in case the user really wants to trim a few bytes from a library only used during tracing!
2009-09-08[build] Improve handling of missing test apparatusChris Wilson4-0/+13
Improve detection, reporting and disabling of test backends when we lack the required libraries and utilities.
2009-09-05[configure] Add option to disable trace.Chris Wilson1-0/+7
Some environments may be broken beyond our capabilities to detect, or maybe the user is just insane and doesn't want to build my nice shiny cairo-trace. Whatever, give them the option to choose: $ ./configure --disable-trace
2009-09-05[boilerplate] Support wildcard ? in CAIRO_TEST_TARGET{,_EXCLUDE}.M Joonas Pihlaja1-4/+6
Useful for running tests only for a given content type.
2009-09-05[boilerplate] Support giving content in CAIRO_TEST_TARGET{,_EXCLUDE}.M Joonas Pihlaja1-4/+57
Sometimes it's convenient to run the regression or performance tests against a given target with a given content. Now we accept an optional content specifier as a suffix .<content> on a target name, where <content> is rgb or rgba.
2009-09-03[boilerplate] Handle errors whilst creating GL surfaceChris Wilson1-5/+6
2009-09-02[boilerplate/test] Use numerical equality not string equalityChris Wilson1-1/+1
test == != -eq
2009-09-02[constructors] Guard against being called without any input files.M Joonas Pihlaja1-1/+6
The make-cairo-(test|boilerplate)-constructors scripts ought never to be called without arguments lest we are left constructorless.
2009-09-01[boilerplate] Use xlib as fallback reference for xcbChris Wilson1-1/+12
And exercise RGB code-paths.
2009-08-29[boilerplate] Runtime library checkChris Wilson21-3/+78
For the purposes of benchmarking it is useful to run cairo-perf against a different library from the one it was compiled against. In order to do so, we need to check that the runtime library contains the required entry points for our targets - which we can check by using dlsym.
2009-08-29Add skia backendVladimir Vukicevic3-0/+61
Originally written by Vladimir Vukicevic to investigate using Skia for Mozilla, it provides a nice integration with a rather interesting code base. By hooking Skia underneath Cairo it allows us to directly compare code paths... which is interesting. [updated by Chris Wilson]
2009-08-29Add xml surfaceChris Wilson1-0/+10
A very simple surface that produces a hierarchical DAG in a simple XML format. It is intended to be used whilst debugging, for example with the automatic regression finding tools of cairo-sphinx, and with test suites that just want to verify that their code made a particular Cairo call.
2009-08-29Introduce cairo_tee_surface_tChris Wilson1-0/+8
Add a new surface type that multiplies it input onto several output surfaces. The only limitation is that it requires a master surface that is used whenever we need to query surface options, such as font options and extents.
2009-08-29[script] Emit surface contentChris Wilson1-1/+1
Include the desired content with the creation info.
2009-08-29[script] Introduce cairo_script_context_tChris Wilson2-23/+8
cairo_script_context_t is an encapsulation object for interfacing with the output - multiple surfaces can share the same context, meaning that they write to the same destination file/stream.
2009-08-06[boilerplate/test] Convert make-*-constructors to shellChris Wilson3-176/+28
Remove the intermediate C program that was a nuisance whilst cross-compiling and replace it with a simple shell script that is just a combination of cat + sed.
2009-07-31[boilerplate] Conditionally tweak the xlib surfaceChris Wilson1-2/+8
Prior to introduction of the buggy members to the surface, we obviously cannot set them. However, the boilerplate code is meant to compile against older revisions of the library so we need to check for the existence prior to use.
2009-07-31[boilerplate] Update fallbacks after disabling RENDERChris Wilson1-0/+5
The xlib surface caches flags based on RENDER version, so after disabling render to force fallbacks, we need to ensure that the flags are reset.
2009-07-24[boilerplate] Fix compilation against old revisions (as old as 1.9.2!)Chris Wilson6-16/+44
2009-07-23[drm] Add an accelerated image surface.Chris Wilson3-0/+113
Use the DRM interface to h/w accelerate composition on image surfaces. The purpose of the backend is simply to explore what such a hardware interface might look like and what benefits we might expect. The use case that might justify writing such custom backends are embedded devices running a drm compositor like wayland - which would, for example, allow one to write applications that seamlessly integrated accelerated, dynamic, high quality 2D graphics using Cairo with advanced interaction (e.g. smooth animations in the UI) driven by a clutter framework... In this first step we introduce the fundamental wrapping of GEM for intel and radeon chipsets, and, for comparison, gallium. No acceleration, all we do is use buffer objects (that is use the kernel memory manager) to allocate images and simply use the fallback mechanism. This provides a suitable base to start writing chip specific drivers.
2009-07-23Remove clip handling from generic surface layer.Chris Wilson8-105/+128
Handling clip as part of the surface state, as opposed to being part of the operation state, is cumbersome and a hindrance to providing true proxy surface support. For example, the clip must be copied from the surface onto the fallback image, but this was forgotten causing undue hassle in each backend. Another example is the contortion the meta surface endures to ensure the clip is correctly recorded. By contrast passing the clip along with the operation is quite simple and enables us to write generic handlers for providing surface wrappers. (And in the future, we should be able to write more esoteric wrappers, e.g. automatic 2x FSAA, trivially.) In brief, instead of the surface automatically applying the clip before calling the backend, the backend can call into a generic helper to apply clipping. For raster surfaces, clip regions are handled automatically as part of the composite interface. For vector surfaces, a clip helper is introduced to replay and callback into an intersect_clip_path() function as necessary. Whilst this is not primarily a performance related change (the change should just move the computation of the clip from the moment it is applied by the user to the moment it is required by the backend), it is important to track any potential regression: ppc: Speedups ======== image-rgba evolution-20090607-0 1026085.22 0.18% -> 672972.07 0.77%: 1.52x speedup ▌ image-rgba evolution-20090618-0 680579.98 0.12% -> 573237.66 0.16%: 1.19x speedup ▎ image-rgba swfdec-fill-rate-4xaa-0 460296.92 0.36% -> 407464.63 0.42%: 1.13x speedup ▏ image-rgba swfdec-fill-rate-2xaa-0 128431.95 0.47% -> 115051.86 0.42%: 1.12x speedup ▏ Slowdowns ========= image-rgba firefox-periodic-table-0 56837.61 0.78% -> 66055.17 3.20%: 1.09x slowdown ▏
2009-07-23[vg] Compile fixes for EGL boilerplateChris Wilson1-10/+9
2009-07-21Merge commit 'anholt/gl'Chris Wilson3-1/+183
Conflicts: boilerplate/Makefile.sources boilerplate/cairo-boilerplate.c build/configure.ac.features src/cairo.h util/cairo-script/Makefile.am
2009-07-20Cross-compilation fix for boilerplate/testPierre Tardy1-1/+1
2009-07-17Add OpenVG backend.Chris Wilson3-0/+381
Based on the work by Øyvind Kolås and Pierre Tardy -- many thanks to Pierre for pushing this backend for inclusion as well as testing and reviewing my initial patch. And many more thanks to pippin for writing the backend in the first place! Hacked and chopped by myself into a suitable basis for a backend. Quite a few issues remain open, but would seem to be ready for testing on suitable hardware.
2009-07-15Fix build under distcheckChris Wilson2-11/+18
Need to play a little dance to get the sources included and paths correct whilst building source files with objdir != srcdir under distcheck.
2009-07-14[boilerplate] Add make-...-constructors to .gitignoreChris Wilson1-0/+1
2009-07-05[boilerplate] Add missing header file.Chris Wilson1-0/+49
Deleted so many, and forgot to add just this little one. Sigh.
2009-07-04Remove the defunct test-meta surfaceChris Wilson2-38/+35
Replace the internal test-meta surface will the freshly exported, real meta-surface.
2009-07-04[boilerpate] Move target definition to backends.Chris Wilson35-1579/+931
By moving the backend target definition out of the massive amlagamated block in cairo-boilerplate.c and into each of the cairo-boilerplate-backend.c, we make it much easier to add new targets as the information need only be entered in a single file and not scattered across three. However, updating the target interface means trawling across all the files -- except given that I found it difficult maintaining the single massive array I do not see this as an increase in the maintenance burden.
2009-07-04[boilerplate] Read whole RGB lines at a timeChris Wilson1-6/+7
Rather than read+unpack each pixel, read in a whole RGB packed line and unpack the whole line in a single pass.
2009-07-03Export meta-surfaceChris Wilson2-6/+14
The meta-surface is a vital tool to record a trace of drawing commands in-memory. As such it is used throughout cairo. The value of such a surface is immediately obvious and should be applicable for many applications. The first such case is by cairo-test-trace which wants to record the entire graph of drawing commands that affect a surface in the event of a failure.
2009-06-30[boilerplate] Only include null-test-surface >= cairo-1.9.3Chris Wilson1-1/+9
2009-06-28[boilerplate] Propagate original error from create_from_png()Chris Wilson1-0/+2
During cairo_boilerplate_get_image_surface_from_png() the original status returned by cairo_image_surface_create_from_png() could have been masked by inappropriate context construction when flattening or extracting. Simply check after creating the surface from the png file, and return immediately if in error.
2009-06-28[test] Disable fallback16 testingChris Wilson1-2/+2
Only use the RGB16_565 surface as a source during testing. We presume that pixman is itself rigorously tested and the output is equivalent to the image surface. Enabling this test surface would require too large of a burden to maintain the reference images for the 16-bit backend.
2009-06-27[test] Add group-unalignedChris Wilson31-232/+241
Test case for: Bug 22441 -- Unexpected shift with push_group and pop_group https://bugs.freedesktop.org/show_bug.cgi?id=22441 This is a test that demonstrates the error in the pdf backend when using groups on surfaces with non-integer sizes. In order to create such a surface, we need to update the boilerplate to use doubles instead of integers when specifying the surface size.
2009-06-21[boilerplate] Implement a reference xlib surfaceChris Wilson3-2/+74
Create an xlib target that uses a separate display, specified by CAIRO_REFERENCE_DISPLAY, that can be used as a reference implementation for the normal display. So this can be used by cairo-trace-test to create a reference surface that mimics exactly the true surface, but if it targets an Xvfb display will be entirely rendered in software. If CAIRO_REFERENCE_DISPLAY is not set, the reference surface degrades into an xlib-fallback surface which is a close approximation (but still has behavioural differences).
2009-06-19[test] Experiment with reference targetsChris Wilson2-113/+146
Specify another boilerplate target to use as the reference for this target. We then use this in cairo-test-trace in preference to using the image surface. Still not perfect, though the framework is improving.
2009-06-19[boilerplate] Missing static on pdf user data key.Chris Wilson1-1/+1
2009-06-19Revert "[test] Make the xlib-fallback use the image refs."M Joonas Pihlaja1-1/+1
This reverts commit 903b39c30448d62e2cbf9d075c5256a333bd5d8f. The xlib-fallback actually renders mostly via traps at the moment, so staying with xlib refs is the right thing to do.
2009-06-18[boilerplate] Check for connect() in libsocket.M Joonas Pihlaja1-0/+2
Solaris requires -lsocket to be able to talk to the any2ppm daemon over unix domain sockets.
2009-06-16Import Qt backend by MozillaVladimir Vukicevic6-0/+189
Written by Vladimir Vukicevic to enable integration with Qt embedded devices, this backend allows cairo code to target QPainter, and use it as a source for other cairo backends. This imports the sources from mozilla-central: http://mxr.mozilla.org/mozilla-central/find?text=&kind=text&string=cairo-qpainter renames them from cairo-qpainter to cairo-qt, and integrates the patch by Oleg Romashin: https://bugs.freedesktop.org/attachment.cgi?id=18953 And then attempts to restore 'make check' to full functionality. However: - C++ does not play well with the PLT symbol hiding, and leaks into the global namespace. 'make check' fails at check-plt.sh - Qt embeds a GUI into QApplication which it requires to construct any QPainter drawable, i.e. used by the boilerplate to create a cairo-qt surface, and this leaks fonts (cairo-ft-fonts no less) causing assertion failures that all cairo objects are accounted for upon destruction. [Updated by Chris Wilson] Acked-by: Jeff Muizelaar <jeff@infidigm.net> Acked-by: Carl Worth <cworth@cworth.org>
2009-06-15Expose _cairo_null_surface_create() via a test surfaceChris Wilson3-0/+35
Using a null surface is a convenient method to measure the overhead of the performance testing framework, so export it although as a test-surface so that it will only be available in development builds and not pollute distributed libraries.
2009-06-12[boilerplate] Make array of targets const.Chris Wilson2-6/+6
Protect the boilerplate targets from unexpected modifications.
2009-06-12[boilerplate] Export cairo_boilerplate_get_image_target()Chris Wilson2-0/+20
A routine to scan the compiled list of targets and return the entry corresponding to the image backend.
2009-06-09[boilerplate] Print out known targets on error.Chris Wilson1-1/+14
Improve the 'Cannot find target ...' error message for an incorrect CAIRO_TEST_TARGET by actually listing the targets that have been compiled into the test suite.
2009-06-06[boilerplate] Minor typo in win32-printingChris Wilson1-1/+1
2009-06-02[perf] Benchmark tracesChris Wilson2-0/+19
Add a variant of cairo-perf that measures the time to replay traces.