mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 859377 (Part 4) - Make ClippedImage use gfxImageSurfaces on Windows. r=me
This commit is contained in:
parent
601260f1a0
commit
9497b33cd3
@ -228,9 +228,15 @@ ClippedImage::GetFrameInternal(const nsIntSize& aViewportSize,
|
||||
aFlags)) {
|
||||
// Create a surface to draw into.
|
||||
gfxImageSurface::gfxImageFormat format = gfxASurface::ImageFormatARGB32;
|
||||
nsRefPtr<gfxASurface> surface = gfxPlatform::GetPlatform()
|
||||
->CreateOffscreenSurface(gfxIntSize(mClip.width, mClip.height),
|
||||
gfxImageSurface::ContentFromFormat(format));
|
||||
|
||||
# if defined(XP_WIN)
|
||||
nsRefPtr<gfxASurface> surface =
|
||||
new gfxImageSurface(gfxIntSize(mClip.width, mClip.height), format);
|
||||
# else
|
||||
nsRefPtr<gfxASurface> surface = gfxPlatform::GetPlatform()
|
||||
->CreateOffscreenSurface(gfxIntSize(mClip.width, mClip.height),
|
||||
gfxImageSurface::ContentFromFormat(format));
|
||||
# endif
|
||||
|
||||
// Create our callback.
|
||||
nsRefPtr<gfxDrawingCallback> drawTileCallback =
|
||||
|
Loading…
Reference in New Issue
Block a user