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

Unified Diff: Source/core/html/canvas/WebGLContextAttributes.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/WebGLBuffer.idl ('k') | Source/core/html/canvas/WebGLContextAttributes.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/WebGLContextAttributes.h
diff --git a/Source/core/html/canvas/WebGLContextAttributes.h b/Source/core/html/canvas/WebGLContextAttributes.h
index d609920e0773689b961d761465cc55f3a1f712fd..eedefceaeb1d4232868c8fda87e946e007c2b97e 100644
--- a/Source/core/html/canvas/WebGLContextAttributes.h
+++ b/Source/core/html/canvas/WebGLContextAttributes.h
@@ -34,6 +34,8 @@
namespace WebCore {
+class WebGLShareGroup;
+
class WebGLContextAttributes : public CanvasContextAttributes, public ScriptWrappable {
public:
virtual ~WebGLContextAttributes();
@@ -71,6 +73,10 @@ public:
bool preserveDrawingBuffer() const;
void setPreserveDrawingBuffer(bool);
+ // Which share group this context uses.
+ PassRefPtr<WebGLShareGroup> group() const;
+ void setGroup(PassRefPtr<WebGLShareGroup>);
+
// Fetches a copy of the attributes stored in this object in a
// form that can be used to initialize a GraphicsContext3D.
GraphicsContext3D::Attributes attributes() const;
@@ -81,6 +87,7 @@ protected:
private:
GraphicsContext3D::Attributes m_attrs;
+ RefPtr<WebGLShareGroup> m_shareGroup;
};
} // namespace WebCore
« no previous file with comments | « Source/core/html/canvas/WebGLBuffer.idl ('k') | Source/core/html/canvas/WebGLContextAttributes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698