Bug 1028786, part 2 - Get rid of the Thebes backed gfxContext in gfxPlatformGtk.cpp. r=mattwoodrow

--HG--
extra : rebase_source : 2920a2b3d862180a15d5a037741744ea5766b5b1
This commit is contained in:
Jonathan Watt 2014-06-23 23:48:59 +01:00
parent f66d49576a
commit 5f2f65ee2a

View File

@ -16,6 +16,7 @@
#include "gfxPangoFonts.h"
#include "gfxContext.h"
#include "gfxUserFontSet.h"
#include "gfxUtils.h"
#include "gfxFT2FontBase.h"
#include "mozilla/gfx/2D.h"
@ -125,9 +126,7 @@ gfxPlatformGtk::CreateOffscreenSurface(const IntSize& size,
}
if (newSurface && needsClear) {
nsRefPtr<gfxContext> tmpCtx = new gfxContext(newSurface);
tmpCtx->SetOperator(gfxContext::OPERATOR_CLEAR);
tmpCtx->Paint();
gfxUtils::ClearThebesSurface(newSurface);
}
return newSurface.forget();