Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(728)

Unified Diff: Source/core/html/canvas/WebGLSharedObject.cpp

Issue 1151163002: Oilpan: eagerly finalize WebGLRenderingContext objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/canvas/WebGLSharedObject.cpp
diff --git a/Source/core/html/canvas/WebGLSharedObject.cpp b/Source/core/html/canvas/WebGLSharedObject.cpp
index 0a8cd15f3837a0f1be59bdfc70fa4d7f5a2edce8..e9bf52bd27e6e1d3fcfec998ff3cf49a90a37b2d 100644
--- a/Source/core/html/canvas/WebGLSharedObject.cpp
+++ b/Source/core/html/canvas/WebGLSharedObject.cpp
@@ -56,7 +56,13 @@ void WebGLSharedObject::detachContextGroup()
WebGraphicsContext3D* WebGLSharedObject::getAWebGraphicsContext3D() const
{
- return m_contextGroup ? m_contextGroup->getAWebGraphicsContext3D() : nullptr;
+ if (!m_contextGroup)
+ return nullptr;
+
+#if ENABLE(OILPAN) && defined(ADDRESS_SANITIZER)
+ WebGLContextGroup::UnpoisonScope scope(m_contextGroup);
+#endif
+ return m_contextGroup->getAWebGraphicsContext3D();
}
} // namespace blink
« Source/core/html/canvas/WebGLContextGroup.cpp ('K') | « Source/core/html/canvas/WebGLObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698