Bug 1066811: Add a SupportsD2D1() method to the Moz2D factory. r=jrmuizel

This commit is contained in:
Bas Schouten 2014-09-14 23:51:26 +02:00
parent 8565d2e38c
commit fe785efe5b
2 changed files with 7 additions and 0 deletions

View File

@ -1193,6 +1193,7 @@ public:
static void SetDirect3D11Device(ID3D11Device *aDevice);
static ID3D11Device *GetDirect3D11Device();
static ID2D1Device *GetD2D1Device();
static bool SupportsD2D1();
#endif
static TemporaryRef<GlyphRenderingOptions>

View File

@ -580,6 +580,12 @@ Factory::GetD2D1Device()
{
return mD2D1Device;
}
bool
Factory::SupportsD2D1()
{
return !!D2DFactory1();
}
#endif
TemporaryRef<GlyphRenderingOptions>