From 8f6c1412894b970610779a741286fe284fadf9a7 Mon Sep 17 00:00:00 2001 From: sotaro Date: Wed, 15 Mar 2017 21:14:17 +0900 Subject: [PATCH] Bug 1347443 - Fix IsAccelAngleSupported() for RenderThread r=nical --- gfx/gl/GLLibraryEGL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/gl/GLLibraryEGL.cpp b/gfx/gl/GLLibraryEGL.cpp index 6cfcf9797ff7..67ed053da66d 100644 --- a/gfx/gl/GLLibraryEGL.cpp +++ b/gfx/gl/GLLibraryEGL.cpp @@ -8,13 +8,13 @@ #include "gfxConfig.h" #include "gfxCrashReporterUtils.h" #include "gfxUtils.h" -#include "mozilla/layers/CompositorThread.h" #include "mozilla/Preferences.h" #include "mozilla/Assertions.h" #include "mozilla/Telemetry.h" #include "mozilla/Tokenizer.h" #include "mozilla/ScopeExit.h" #include "mozilla/Unused.h" +#include "mozilla/webrender/RenderThread.h" #include "nsDirectoryServiceDefs.h" #include "nsDirectoryServiceUtils.h" #include "nsIGfxInfo.h" @@ -151,7 +151,7 @@ static bool IsAccelAngleSupported(const nsCOMPtr& gfxInfo, nsACString* const out_failureId) { - if (CompositorThreadHolder::IsInCompositorThread()) { + if (wr::RenderThread::IsInRenderThread()) { // We can only enter here with WebRender, so assert that this is a // WebRender-enabled build. #ifndef MOZ_ENABLE_WEBRENDER