diff options
author | Björn Bidar | 2015-06-13 17:23:06 +0200 |
---|---|---|
committer | Björn Bidar | 2015-06-13 17:23:06 +0200 |
commit | b070debb445daedfac831267dc38185089ae3fdb (patch) | |
tree | 849edc38101d679a963afaca7c143b1b15405534 /cairo-shared.patch | |
download | aur-b070debb445daedfac831267dc38185089ae3fdb.tar.gz |
initial import
Diffstat (limited to 'cairo-shared.patch')
-rw-r--r-- | cairo-shared.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/cairo-shared.patch b/cairo-shared.patch new file mode 100644 index 000000000000..8d60af87a45b --- /dev/null +++ b/cairo-shared.patch @@ -0,0 +1,42 @@ +--- a/gfx/thebes/gfxPlatform.cpp 2013-05-22 17:28:19.000000000 -0700 ++++ b/gfx/thebes/gfxPlatform.cpp 2013-05-23 21:20:16.000000000 -0700 +@@ -535,6 +535,7 @@ void SourceBufferDestroy(void *srcSurfUD + delete static_cast<SourceSurfaceUserData*>(srcSurfUD); + } + ++#if MOZ_TREE_CAIRO + void SourceSnapshotDetached(cairo_surface_t *nullSurf) + { + gfxImageSurface* origSurf = +@@ -542,6 +543,13 @@ void SourceSnapshotDetached(cairo_surfac + + origSurf->SetData(&kSourceSurface, NULL, NULL); + } ++#else ++void SourceSnapshotDetached(void *nullSurf) ++{ ++ gfxImageSurface* origSurf = static_cast<gfxImageSurface*>(nullSurf); ++ origSurf->SetData(&kSourceSurface, NULL, NULL); ++} ++#endif + + RefPtr<SourceSurface> + gfxPlatform::GetSourceSurfaceForSurface(DrawTarget *aTarget, gfxASurface *aSurface) +@@ -654,6 +662,7 @@ gfxPlatform::GetSourceSurfaceForSurface( + + } + ++#if MOZ_TREE_CAIRO + cairo_surface_t *nullSurf = + cairo_null_surface_create(CAIRO_CONTENT_COLOR_ALPHA); + cairo_surface_set_user_data(nullSurf, +@@ -662,6 +671,9 @@ gfxPlatform::GetSourceSurfaceForSurface( + NULL); + cairo_surface_attach_snapshot(imgSurface->CairoSurface(), nullSurf, SourceSnapshotDetached); + cairo_surface_destroy(nullSurf); ++#else ++ cairo_surface_set_mime_data(imgSurface->CairoSurface(), "mozilla/magic", (const unsigned char*) "data", 4, SourceSnapshotDetached, imgSurface.get()); ++#endif + } + + SourceSurfaceUserData *srcSurfUD = new SourceSurfaceUserData; |