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

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

Issue 17230006: Implement WEBGL_shared_resources Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | « Source/core/html/canvas/WebGLContextAttributes.cpp ('k') | Source/core/html/canvas/WebGLContextGroup.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/WebGLContextGroup.h
diff --git a/Source/core/html/canvas/WebGLContextGroup.h b/Source/core/html/canvas/WebGLContextGroup.h
index e888083f38fd8bcf2064758872fc00d3cf686e0f..1d2bc7738e21c479554a635e07653fd17b49bc6c 100644
--- a/Source/core/html/canvas/WebGLContextGroup.h
+++ b/Source/core/html/canvas/WebGLContextGroup.h
@@ -45,6 +45,7 @@ public:
static PassRefPtr<WebGLContextGroup> create();
virtual ~WebGLContextGroup();
+ // Adds the context to this group.
void addContext(WebGLRenderingContext*);
void removeContext(WebGLRenderingContext*);
@@ -55,6 +56,8 @@ public:
void loseContextGroup(WebGLRenderingContext::LostContextMode);
+ void cancelAcquireSharedResource(const WebGLRenderingContext*, long);
+
private:
friend class WebGLObject;
@@ -62,6 +65,8 @@ public:
void detachAndRemoveAllObjects();
+ long m_acquireRequestCount;
+
HashSet<WebGLRenderingContext*> m_contexts;
HashSet<WebGLSharedObject*> m_groupObjects;
};
« no previous file with comments | « Source/core/html/canvas/WebGLContextAttributes.cpp ('k') | Source/core/html/canvas/WebGLContextGroup.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698