зеркало из https://github.com/mozilla/gecko-dev.git
Bug 454407, use offscreen buffer instead of image buffer for drag feedback, r+sr=roc
This commit is contained in:
Родитель
6de3035c87
Коммит
d9a1db2b70
|
@ -73,7 +73,7 @@
|
|||
#include "nsIPrefService.h"
|
||||
|
||||
#include "gfxContext.h"
|
||||
#include "gfxImageSurface.h"
|
||||
#include "gfxPlatform.h"
|
||||
|
||||
#define DRAGIMAGES_PREF "nglayout.enable_drag_images"
|
||||
|
||||
|
@ -596,9 +596,9 @@ nsBaseDragService::DrawDragForImage(nsPresContext* aPresContext,
|
|||
aScreenDragRect->height = destSize.height;
|
||||
}
|
||||
|
||||
nsRefPtr<gfxImageSurface> surface =
|
||||
new gfxImageSurface(gfxIntSize(destSize.width, destSize.height),
|
||||
gfxImageSurface::ImageFormatARGB32);
|
||||
nsRefPtr<gfxASurface> surface =
|
||||
gfxPlatform::GetPlatform()->CreateOffscreenSurface(gfxIntSize(destSize.width, destSize.height),
|
||||
gfxASurface::ImageFormatARGB32);
|
||||
if (!surface)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче