зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1278238 - Remove kDrawTarget. r=Bas
This commit is contained in:
Родитель
2e8d4b9af9
Коммит
fb6235e5e5
|
@ -129,7 +129,6 @@ CreateDrawTargetForSurface(gfxASurface *aSurface)
|
|||
if (!drawTarget) {
|
||||
NS_RUNTIMEABORT("CreateDrawTargetForSurface failed in plugin");
|
||||
}
|
||||
aSurface->SetData(&kDrawTarget, drawTarget, nullptr);
|
||||
return drawTarget;
|
||||
}
|
||||
|
||||
|
|
|
@ -946,8 +946,6 @@ gfxPlatform::~gfxPlatform()
|
|||
#endif
|
||||
}
|
||||
|
||||
cairo_user_data_key_t kDrawTarget;
|
||||
|
||||
already_AddRefed<DrawTarget>
|
||||
gfxPlatform::CreateDrawTargetForSurface(gfxASurface *aSurface, const IntSize& aSize)
|
||||
{
|
||||
|
@ -957,7 +955,6 @@ gfxPlatform::CreateDrawTargetForSurface(gfxASurface *aSurface, const IntSize& aS
|
|||
gfxWarning() << "gfxPlatform::CreateDrawTargetForSurface failed in CreateDrawTargetForCairoSurface";
|
||||
return nullptr;
|
||||
}
|
||||
aSurface->SetData(&kDrawTarget, drawTarget, nullptr);
|
||||
return drawTarget.forget();
|
||||
}
|
||||
|
||||
|
|
|
@ -68,8 +68,6 @@ BackendTypeBit(BackendType b)
|
|||
} \
|
||||
} while (0)
|
||||
|
||||
extern cairo_user_data_key_t kDrawTarget;
|
||||
|
||||
enum eCMSMode {
|
||||
eCMSMode_Off = 0, // No color management
|
||||
eCMSMode_All = 1, // Color manage everything
|
||||
|
|
Загрузка…
Ссылка в новой задаче