Bug 1388240 - update the DXGITextureHostD3D11::Lock() comment for non-compositor use case. r=nical

MozReview-Commit-ID: ERo8DHpau6c
This commit is contained in:
JerryShih 2017-09-28 21:43:00 +08:00
Родитель 6cbc21aa58
Коммит b2d91d1a05
1 изменённых файлов: 5 добавлений и 5 удалений

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

@ -873,9 +873,9 @@ bool
DXGITextureHostD3D11::Lock()
{
if (!mProvider) {
// Make an early return here if we call SetCompositor() with an incompatible
// compositor. This check tries to prevent the problem where we use that
// incompatible compositor to compose this texture.
// Make an early return here if we call SetTextureSourceProvider() with an
// incompatible compositor. This check tries to prevent the problem where we
// use that incompatible compositor to compose this texture.
return false;
}
@ -886,8 +886,8 @@ bool
DXGITextureHostD3D11::LockWithoutCompositor()
{
// Unlike the normal Lock() function, this function may be called when
// mCompositor is nullptr such as during WebVR frame submission. So, there is
// no 'mCompositor' checking here.
// mProvider is nullptr such as during WebVR frame submission. So, there is
// no 'mProvider' checking here.
if (!mDevice) {
mDevice = DeviceManagerDx::Get()->GetCompositorDevice();
}