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

Unified Diff: Source/core/html/canvas/WebGLObject.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/WebGLFramebuffer.cpp ('k') | Source/core/html/canvas/WebGLObject.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/WebGLObject.h
diff --git a/Source/core/html/canvas/WebGLObject.h b/Source/core/html/canvas/WebGLObject.h
index a3a9f86376b469d90cb4ce2007a631b3326a8a43..1b9bdd6bbd21a7e50ff0f78a23de127e01dbaf4a 100644
--- a/Source/core/html/canvas/WebGLObject.h
+++ b/Source/core/html/canvas/WebGLObject.h
@@ -56,9 +56,6 @@ public:
// object()==0 indicates the OpenGL resource is deleted.
bool isDeleted() { return m_deleted; }
- // True if this object belongs to the group or context.
- virtual bool validate(const WebGLContextGroup*, const WebGLRenderingContext*) const = 0;
-
protected:
WebGLObject(WebGLRenderingContext*);
@@ -72,6 +69,9 @@ protected:
virtual void detach();
+ // Warning!!!: This can only be used on object delete. Using it for
+ // other purposes will mess up shared resources because the changes
+ // will take place on the wrong context.
virtual GraphicsContext3D* getAGraphicsContext3D() const = 0;
private:
« no previous file with comments | « Source/core/html/canvas/WebGLFramebuffer.cpp ('k') | Source/core/html/canvas/WebGLObject.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698