Bug 1276062 - show a log if there is no device for DrawTargetD2D1::Init(). r=bas

This commit is contained in:
JerryShih 2016-07-01 02:25:00 +02:00
Родитель d38fc6b22a
Коммит 5f9e6f5771
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -944,6 +944,7 @@ DrawTargetD2D1::Init(ID3D11Texture2D* aTexture, SurfaceFormat aFormat)
ID2D1Device* device = Factory::GetD2D1Device();
if (!device) {
gfxCriticalNote << "[D2D1.1] Failed to obtain a device for DrawTargetD2D1::Init().";
return false;
}
@ -1008,6 +1009,7 @@ DrawTargetD2D1::Init(const IntSize &aSize, SurfaceFormat aFormat)
ID2D1Device* device = Factory::GetD2D1Device();
if (!device) {
gfxCriticalNote << "[D2D1.1] Failed to obtain a device for DrawTargetD2D1::Init().";
return false;
}