]>
Commit | Line | Data |
---|---|---|
3815090b ER |
1 | https://bugzilla.mozilla.org/show_bug.cgi?id=722975 |
2 | https://bug722975.bugzilla.mozilla.org/attachment.cgi?id=595000 | |
3 | ||
4 | --- firefox/gfx/thebes/gfxPlatform.cpp~ 2012-02-07 11:59:39.717184907 +0000 | |
5 | +++ firefox/gfx/thebes/gfxPlatform.cpp 2012-02-07 13:06:01.084668445 +0000 | |
6 | @@ -446,6 +446,7 @@ | |
7 | static_cast<SourceSurface*>(srcBuffer)->Release(); | |
8 | } | |
9 | ||
10 | +#ifdef MOZ_TREE_CAIRO | |
11 | void SourceSnapshotDetached(cairo_surface_t *nullSurf) | |
12 | { | |
13 | gfxImageSurface* origSurf = | |
14 | @@ -453,6 +454,7 @@ | |
15 | ||
16 | origSurf->SetData(&kSourceSurface, NULL, NULL); | |
17 | } | |
18 | +#endif | |
19 | ||
20 | RefPtr<SourceSurface> | |
21 | gfxPlatform::GetSourceSurfaceForSurface(DrawTarget *aTarget, gfxASurface *aSurface) | |
22 | @@ -522,6 +524,7 @@ | |
23 | imgSurface->Stride(), | |
24 | format); | |
25 | ||
26 | + #ifdef MOZ_TREE_CAIRO | |
27 | cairo_surface_t *nullSurf = | |
28 | cairo_null_surface_create(CAIRO_CONTENT_COLOR_ALPHA); | |
29 | cairo_surface_set_user_data(nullSurf, | |
30 | @@ -530,6 +533,7 @@ | |
31 | NULL); | |
32 | cairo_surface_attach_snapshot(imgSurface->CairoSurface(), nullSurf, SourceSnapshotDetached); | |
33 | cairo_surface_destroy(nullSurf); | |
34 | + #endif | |
35 | } | |
36 | ||
37 | srcBuffer->AddRef(); |