зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1388240 - update the DXGITextureHostD3D11::Lock() comment for non-compositor use case. r=nical
MozReview-Commit-ID: ERo8DHpau6c
This commit is contained in:
Родитель
6cbc21aa58
Коммит
b2d91d1a05
|
@ -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();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче