Chromium Code Reviews| Index: Source/core/html/canvas/WebGLContextGroup.h |
| diff --git a/Source/core/html/canvas/WebGLContextGroup.h b/Source/core/html/canvas/WebGLContextGroup.h |
| index 6c2f995354013332bda0e70ba332cefb2c2f7aec..73a3f6a740c3c40d82cfdf68480931d1ffd397c5 100644 |
| --- a/Source/core/html/canvas/WebGLContextGroup.h |
| +++ b/Source/core/html/canvas/WebGLContextGroup.h |
| @@ -58,13 +58,19 @@ public: |
| void loseContextGroup(WebGLRenderingContextBase::LostContextMode); |
| - private: |
| +private: |
| friend class WebGLObject; |
| WebGLContextGroup(); |
| void detachAndRemoveAllObjects(); |
| + // Oilpan: this object is not on the heap, but keeps bare pointers |
|
haraken
2014/07/03 04:40:29
FIXME: Oilpan: ?
sof
2014/07/03 07:25:48
Prefixed.
|
| + // to garbage collected objects in the two hash sets below. The |
| + // objects are responsible for managing their registration with |
| + // WebGLContextGroup, and vice versa, the WebGLContextGroup takes |
| + // care of detaching the group objects if the set of |
| + // WebGLRenderingContextBase contexts becomes empty. |
| HashSet<WebGLRenderingContextBase*> m_contexts; |
| HashSet<WebGLSharedObject*> m_groupObjects; |
| }; |