зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1366502 - Make sure the RenderTextureHost is released in render thread. r=sotaro.
The RenderTextureHost might calls some thread-specific functions(e.g. OpenGL calls) in ~RenderTextureHost(). Add a checking here to prevent this problem. MozReview-Commit-ID: 62QlavmXOig
This commit is contained in:
Родитель
ef71dedff2
Коммит
3c7cfd03af
|
@ -4,6 +4,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "RenderTextureHost.h"
|
||||
#include "RenderThread.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace wr {
|
||||
|
@ -15,6 +16,7 @@ RenderTextureHost::RenderTextureHost()
|
|||
|
||||
RenderTextureHost::~RenderTextureHost()
|
||||
{
|
||||
MOZ_ASSERT(RenderThread::IsInRenderThread());
|
||||
MOZ_COUNT_DTOR(RenderTextureHost);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче