Loading libs/hwui/WebViewFunctorManager.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ #include <private/hwui/WebViewFunctor.h> #include "Properties.h" #include "renderthread/RenderThread.h" #include <log/log.h> #include <utils/Trace.h> Loading Loading @@ -90,6 +91,10 @@ void WebViewFunctor::destroyContext() { mHasContext = false; ATRACE_NAME("WebViewFunctor::onContextDestroyed"); mCallbacks.onContextDestroyed(mFunctor, mData); // grContext may be null in unit tests. auto* grContext = renderthread::RenderThread::getInstance().getGrContext(); if (grContext) grContext->resetContext(); } } Loading libs/hwui/renderthread/RenderThread.h +1 −0 Original line number Diff line number Diff line Loading @@ -123,6 +123,7 @@ private: friend class RenderProxy; friend class DummyVsyncSource; friend class android::uirenderer::TestUtils; friend class android::uirenderer::WebViewFunctor; RenderThread(); virtual ~RenderThread(); Loading Loading
libs/hwui/WebViewFunctorManager.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ #include <private/hwui/WebViewFunctor.h> #include "Properties.h" #include "renderthread/RenderThread.h" #include <log/log.h> #include <utils/Trace.h> Loading Loading @@ -90,6 +91,10 @@ void WebViewFunctor::destroyContext() { mHasContext = false; ATRACE_NAME("WebViewFunctor::onContextDestroyed"); mCallbacks.onContextDestroyed(mFunctor, mData); // grContext may be null in unit tests. auto* grContext = renderthread::RenderThread::getInstance().getGrContext(); if (grContext) grContext->resetContext(); } } Loading
libs/hwui/renderthread/RenderThread.h +1 −0 Original line number Diff line number Diff line Loading @@ -123,6 +123,7 @@ private: friend class RenderProxy; friend class DummyVsyncSource; friend class android::uirenderer::TestUtils; friend class android::uirenderer::WebViewFunctor; RenderThread(); virtual ~RenderThread(); Loading