Chromium Code Reviews| Index: Source/WebCore/html/canvas/WebGLRenderingContext.h |
| diff --git a/Source/WebCore/html/canvas/WebGLRenderingContext.h b/Source/WebCore/html/canvas/WebGLRenderingContext.h |
| index b7160f7d9157db3afb24c3222bf22e3b4cd7a155..6e565cff317ae6d492d2b49e01286ef842c94d65 100644 |
| --- a/Source/WebCore/html/canvas/WebGLRenderingContext.h |
| +++ b/Source/WebCore/html/canvas/WebGLRenderingContext.h |
| @@ -324,6 +324,8 @@ public: |
| virtual bool hasPendingActivity() const; |
| virtual void stop(); |
| + static void forceLostOldestContext(); |
|
Ken Russell (switch to Gerrit)
2013/04/16 02:57:52
The naming convention is getting confusing; I sugg
|
| + |
| private: |
| friend class EXTDrawBuffers; |
| friend class WebGLFramebuffer; |
| @@ -782,6 +784,13 @@ public: |
| bool supportsDrawBuffers(); |
| friend class WebGLStateRestorer; |
| + |
| + static Vector<WebGLRenderingContext*>& activeContexts(); |
| + static Vector<WebGLRenderingContext*>& inactiveContexts(); |
| + |
| + static void activateContext(WebGLRenderingContext*); |
| + static void deactivateContext(WebGLRenderingContext*, bool addToInactiveList); |
| + static void removeContext(WebGLRenderingContext*); |
|
Ken Russell (switch to Gerrit)
2013/04/16 02:57:52
"removeContext" is too generic a name. "willDestro
|
| }; |
| } // namespace WebCore |