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

Unified Diff: Source/core/html/canvas/WebGLShareGroup.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
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

Powered by Google App Engine
This is Rietveld 408576698