Index: Source/core/html/canvas/WebGLShareGroup.h |
diff --git a/Source/core/html/canvas/EXTFragDepth.h b/Source/core/html/canvas/WebGLShareGroup.h |
similarity index 73% |
copy from Source/core/html/canvas/EXTFragDepth.h |
copy to Source/core/html/canvas/WebGLShareGroup.h |
index 57da19e2a91bd811c4231dacff183a0e3fcf2dae..8b284c5e2e58e66f39228ab33941cba92b9cf2d2 100644 |
--- a/Source/core/html/canvas/EXTFragDepth.h |
+++ b/Source/core/html/canvas/WebGLShareGroup.h |
@@ -23,28 +23,30 @@ |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef EXTFragDepth_h |
-#define EXTFragDepth_h |
+#ifndef WebGLShareGroup_h |
+#define WebGLShareGroup_h |
-#include "bindings/v8/ScriptWrappable.h" |
-#include "core/html/canvas/WebGLExtension.h" |
#include "wtf/PassRefPtr.h" |
+#include "wtf/RefCounted.h" |
+#include "wtf/RefPtr.h" |
namespace WebCore { |
-class EXTFragDepth : public WebGLExtension, public ScriptWrappable { |
+class WebGLContextGroup; |
+ |
+class WebGLShareGroup : public RefCounted<WebGLShareGroup> { |
public: |
- static PassRefPtr<EXTFragDepth> create(WebGLRenderingContext*); |
- static bool supported(WebGLRenderingContext*); |
- static const char* getExtensionName(); |
+ static PassRefPtr<WebGLShareGroup> create(PassRefPtr<WebGLContextGroup>); |
- virtual ~EXTFragDepth(); |
- virtual ExtensionName getName() const; |
+ virtual ~WebGLShareGroup(); |
+ PassRefPtr<WebGLContextGroup> contextGroup() const; |
private: |
- explicit EXTFragDepth(WebGLRenderingContext*); |
+ WebGLShareGroup(PassRefPtr<WebGLContextGroup>); |
+ |
+ RefPtr<WebGLContextGroup> m_contextGroup; |
}; |
} // namespace WebCore |
-#endif // EXTFragDepth_h |
+#endif // WebGLShareGroup_h |