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

Unified Diff: Source/core/html/canvas/WebGLRenderingContext.h

Issue 14217005: Limit the number of WebGL contexts that are active at any given time (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased to latest master Created 7 years, 8 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
« no previous file with comments | « no previous file | Source/core/html/canvas/WebGLRenderingContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/WebGLRenderingContext.h
diff --git a/Source/core/html/canvas/WebGLRenderingContext.h b/Source/core/html/canvas/WebGLRenderingContext.h
index b10a174bebe6732e40c43f426d7b5e1aa69e1993..289d61e5f6975922010654b610dd7aa0b2be3b56 100644
--- a/Source/core/html/canvas/WebGLRenderingContext.h
+++ b/Source/core/html/canvas/WebGLRenderingContext.h
@@ -773,6 +773,16 @@ public:
bool supportsDrawBuffers();
friend class WebGLStateRestorer;
+ friend class WebGLRenderingContextEvictionManager;
+
+ static Vector<WebGLRenderingContext*>& activeContexts();
+ static Vector<WebGLRenderingContext*>& forciblyEvictedContexts();
+
+ static void activateContext(WebGLRenderingContext*);
+ static void deactivateContext(WebGLRenderingContext*, bool addToInactiveList);
+ static void willDestroyContext(WebGLRenderingContext*);
+ static void forciblyLoseOldestContext(const String& reason);
+ static IntSize oldestContextSize();
};
} // namespace WebCore
« no previous file with comments | « no previous file | Source/core/html/canvas/WebGLRenderingContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698