Commit f9370828 authored by kbr's avatar kbr Committed by Commit bot

Remove now-incorrect assert in WebGLContextGroup.

BUG=537054, 666061
TBR=zmo@chromium.org
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2548153002
Cr-Commit-Position: refs/heads/master@{#436180}
parent bdd3719e
...@@ -30,7 +30,13 @@ namespace blink { ...@@ -30,7 +30,13 @@ namespace blink {
WebGLContextGroup::WebGLContextGroup() : m_numberOfContextLosses(0) {} WebGLContextGroup::WebGLContextGroup() : m_numberOfContextLosses(0) {}
gpu::gles2::GLES2Interface* WebGLContextGroup::getAGLInterface() { gpu::gles2::GLES2Interface* WebGLContextGroup::getAGLInterface() {
ASSERT(!m_contexts.isEmpty()); // During an Oilpan GC where WebGL objects become unreachable at the same
// time the context does, the m_contexts set can be fully cleared out
// before WebGLObjects' destructors run. Since the calling code handles
// this gracefully, explicitly test for this possibility.
if (m_contexts.isEmpty())
return nullptr;
// Weak processing removes dead entries from the HeapHashSet, so it's // Weak processing removes dead entries from the HeapHashSet, so it's
// guaranteed that this will not return null for the reason that a // guaranteed that this will not return null for the reason that a
// WeakMember was nulled out. // WeakMember was nulled out.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment